diff options
author | Ken MacLeod <ken@bitsko.slc.ut.us> | 2009-08-06 15:18:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:33 -0400 |
commit | 7949f4e16456183bae0bc19ffe92072a27d0553e (patch) | |
tree | 2f0cc2bd462e48c5fd5cb830a76a8a6aca4799ff /drivers/usb/host/isp1362-hcd.c | |
parent | e792b1b0b83c276ca786b01cad662dc2e5d18843 (diff) |
USB: isp1362: fix pulldown register defines and conf logic
HCHWCFG_PULLDOWN_DS2 and HCHWCFG_PULLDOWN_DS1 were swapped. Incorrect
operator precedence in isp1362_hc_start() hid part of the problem.
This fixes a problem where Port 1 in Host mode fails to see disconnects.
Signed-Off-By: Ken MacLeod <ken@bitsko.slc.ut.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp1362-hcd.c')
-rw-r--r-- | drivers/usb/host/isp1362-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 5819e10a146c..16ba1eadf971 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c | |||
@@ -2563,7 +2563,7 @@ static int isp1362_hc_start(struct usb_hcd *hcd) | |||
2563 | hwcfg = HCHWCFG_INT_ENABLE | HCHWCFG_DBWIDTH(1); | 2563 | hwcfg = HCHWCFG_INT_ENABLE | HCHWCFG_DBWIDTH(1); |
2564 | if (board->sel15Kres) | 2564 | if (board->sel15Kres) |
2565 | hwcfg |= HCHWCFG_PULLDOWN_DS2 | | 2565 | hwcfg |= HCHWCFG_PULLDOWN_DS2 | |
2566 | (MAX_ROOT_PORTS > 1) ? HCHWCFG_PULLDOWN_DS1 : 0; | 2566 | ((MAX_ROOT_PORTS > 1) ? HCHWCFG_PULLDOWN_DS1 : 0); |
2567 | if (board->clknotstop) | 2567 | if (board->clknotstop) |
2568 | hwcfg |= HCHWCFG_CLKNOTSTOP; | 2568 | hwcfg |= HCHWCFG_CLKNOTSTOP; |
2569 | if (board->oc_enable) | 2569 | if (board->oc_enable) |