aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hub.c
diff options
context:
space:
mode:
authorChristian Engelmayer <christian.engelmayer@frequentis.com>2013-04-03 06:18:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-03 14:38:53 -0400
commite6604a7fd71f9bd2890e07800e191167d7f5751b (patch)
tree5afe401f0fd5c82380b536beeba74829c69c6a04 /drivers/usb/host/ehci-hub.c
parente7d3b6e22c871ba36d052ca99bc8ceca4d546a60 (diff)
EHCI: Quirk flag for port power handling on overcurrent.
Commit 756aa6b3d536afe85e151138cb03a293998887b3 (ehci-hub: improved over-current recovery) added port power cycling on overcurrent indications as needed by the MPC8349 USB controller after resolving of the overcurrent situation in order to have the host state machine assert the correct port status again. Commit 81463c1d707186adbbe534016cd1249edeab0dac (EHCI: only power off port if over-current is active) solved a thus resulting issue of endless overcurrent changes in combination with the MAX4967 USB power supply chip that signals overcurrent when power is not enabled by only powering off a port if the overcurrent is currently active. Added quirks flag need_oc_pp_cycle in order to specify the needed behaviour as there is no common behaviour that can comply with both requirements. Activated the quirks handling for Freescale 83xx based boards. Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-hub.c')
-rw-r--r--drivers/usb/host/ehci-hub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index 7b04ca96b585..9ab4a4d9768a 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -840,7 +840,8 @@ static int ehci_hub_control (
840 * power switching; they're allowed to just limit the 840 * power switching; they're allowed to just limit the
841 * current. khubd will turn the power back on. 841 * current. khubd will turn the power back on.
842 */ 842 */
843 if ((temp & PORT_OC) && HCS_PPC(ehci->hcs_params)) { 843 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle))
844 && HCS_PPC(ehci->hcs_params)) {
844 ehci_writel(ehci, 845 ehci_writel(ehci,
845 temp & ~(PORT_RWC_BITS | PORT_POWER), 846 temp & ~(PORT_RWC_BITS | PORT_POWER),
846 status_reg); 847 status_reg);