usb: musb: Fix for handling overcurrent condition in host mode
authorRavi B <ravibabu@ti.com>
Mon, 28 Nov 2011 13:28:11 +0000 (18:58 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:41 +0000 (00:44 +0530)
commitd2ac0785e000a728fac9ad98e4652f821443bb7f
tree919f5836270373d37ab9d376460d3dc450acf53d
parent26a671a681b38b6cf4ca93f3251d1cdf8643a526
usb: musb: Fix for handling overcurrent condition in host mode

The overcurrent situation can occur in 2 scenarios
a) when usb device connected directly to musb root-port and device draw the
more current, further the VBUS_ERROR is generated and root-hub port change
status need to be notified to hub driver to handle over-current situation.
b) when usb device connected thrugh HUB, the hub status change will be
notified by hub through interrupt transfer and handled approperiately by HUB
driver.

This patch fixes (a), where root hub status change was not notified to hub driver.

Signed-off-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/usb/musb/musb_core.c