diff options
author | David Brownell <david-b@pacbell.net> | 2005-11-07 18:38:24 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 16:48:30 -0500 |
commit | 704aa0b7a9744d5f2b5c1fa68b826fcca73a2104 (patch) | |
tree | 6a6bce0781c506bf44457514550006102b0f182d /drivers/usb/host/isp116x-hcd.c | |
parent | baefbc39d8e23942cc10db92f5bc42e3476f6bc1 (diff) |
[PATCH] USB: wakeup flag updates (3/3) isp116x-hcd
This makes the ISP116x HCD use the driver model wakeup flags for its
controller, not the flags in the HCD glue (which will be removed).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 342cfadc999a..c95af116f9e7 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -1378,7 +1378,8 @@ static int isp116x_start(struct usb_hcd *hcd) | |||
1378 | 1378 | ||
1379 | val = 0; | 1379 | val = 0; |
1380 | if (board->remote_wakeup_enable) { | 1380 | if (board->remote_wakeup_enable) { |
1381 | hcd->can_wakeup = 1; | 1381 | if (!device_can_wakeup(hcd->self.controller)) |
1382 | device_init_wakeup(hcd->self.controller, 1); | ||
1382 | val |= RH_HS_DRWE; | 1383 | val |= RH_HS_DRWE; |
1383 | } | 1384 | } |
1384 | isp116x_write_reg32(isp116x, HCRHSTATUS, val); | 1385 | isp116x_write_reg32(isp116x, HCRHSTATUS, val); |
@@ -1428,7 +1429,7 @@ static int isp116x_bus_suspend(struct usb_hcd *hcd) | |||
1428 | hcd->state = HC_STATE_QUIESCING; | 1429 | hcd->state = HC_STATE_QUIESCING; |
1429 | val &= (~HCCONTROL_HCFS & ~HCCONTROL_RWE); | 1430 | val &= (~HCCONTROL_HCFS & ~HCCONTROL_RWE); |
1430 | val |= HCCONTROL_USB_SUSPEND; | 1431 | val |= HCCONTROL_USB_SUSPEND; |
1431 | if (hcd->remote_wakeup) | 1432 | if (device_may_wakeup(&hcd->self.root_hub->dev)) |
1432 | val |= HCCONTROL_RWE; | 1433 | val |= HCCONTROL_RWE; |
1433 | /* Wait for usb transfers to finish */ | 1434 | /* Wait for usb transfers to finish */ |
1434 | mdelay(2); | 1435 | mdelay(2); |