From: Moiz Sonasath Date: Mon, 27 Jun 2011 15:01:01 +0000 (-0500) Subject: USB: OTG: Use work_queue in set_vbus for TWL6030 transciever X-Git-Tag: v3.1-rc1~234^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf54506b036412e05e6ea0f000d627d775e7afc;p=pandora-kernel.git USB: OTG: Use work_queue in set_vbus for TWL6030 transciever With this commit: cccad6d4b103e53fb3d1fc1467f654ecb572d047 usb: otg: notifier: switch to atomic notifier Following dumps are observed on attach/detach for MUSB HOST mode and on a detach for MUSB Device mode. BUG: sleeping function called from invalid context at kernel/mutex.c:85 where, the source is: twl6030_usb_irq ->atomic_notifier_call_chain ->musb_otg_notifications ->twl6030_set_vbus ->twl_i2c_write_u8 ->mutex_lock This patch moves the i2c writes in set_vbus function to a work-queue thereby avoiding I2C writes in atomic context. Tested HOST and Device mode functionality on OMAP4460 Signed-off-by: Moiz Sonasath Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed