summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJuha Yrj?l? <juha.yrjola@nokia.com>2005-10-16 15:47:04 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 16:47:45 -0700
commit4e67185a7ac3ecb1710e636e2f7e318e99298c7a (patch)
tree035fa1745baa6490425d44dc126c72ddc366497f /drivers
parentf37be9b9be3ebc02d2d075d7f53f7802f3e005db (diff)
downloadblackbird-op-linux-4e67185a7ac3ecb1710e636e2f7e318e99298c7a.tar.gz
blackbird-op-linux-4e67185a7ac3ecb1710e636e2f7e318e99298c7a.zip
[PATCH] add usb transceiver set_suspend() method
When a USB device is put into suspend mode, the current drawn from VBUS has to be less than 500 uA. Some transceivers need to be put into a special power-saving mode to accomplish this, and won't have a separate OTG driver handling that. This adds a suspend method to the "otg_transceiver" struct -- misnamed, it's not only for OTG -- and calls it from the OMAP UDC driver. Signed-off-by: Juha Yrj?l? <juha.yrjola@nokia.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/omap_udc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index de8a89ae4bc3..b42799bc747a 100644
--- a/drivers/usb/gadget/omap_udc.c
+++ b/drivers/usb/gadget/omap_udc.c
@@ -1788,8 +1788,12 @@ static void devstate_irq(struct omap_udc *udc, u16 irq_src)
udc->driver->suspend(&udc->gadget);
spin_lock(&udc->lock);
}
+ if (udc->transceiver)
+ otg_set_suspend(udc->transceiver, 1);
} else {
VDBG("resume\n");
+ if (udc->transceiver)
+ otg_set_suspend(udc->transceiver, 0);
if (udc->gadget.speed == USB_SPEED_FULL
&& udc->driver->resume) {
spin_unlock(&udc->lock);
OpenPOWER on IntegriCloud