aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJiebing Li <jiebing.li@intel.com>2010-12-09 10:37:43 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:43 +0000
commitcdda84b569996429b381ae0b47c62d342e90b37b (patch)
tree9f8c58e3289c9108c53707587d813a32801108e4 /drivers
parent9474d7c1e0b65d724de866032d8aa3ffe6ac106a (diff)
downloadmrst-s0i3-test-cdda84b569996429b381ae0b47c62d342e90b37b.tar.gz
mrst-s0i3-test-cdda84b569996429b381ae0b47c62d342e90b37b.tar.xz
mrst-s0i3-test-cdda84b569996429b381ae0b47c62d342e90b37b.zip
usb: langwell_udc: enable PHY Low Power Mode for Penwell
This patch enables PHY Low Power mode to save power for Penwell case. Signed-off-by: Jiebing Li <jiebing.li@intel.com> Signed-off-by: Hao Wu <hao.wu@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/langwell_udc.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c
index 2ba3ace094f..1466501a932 100644
--- a/drivers/usb/gadget/langwell_udc.c
+++ b/drivers/usb/gadget/langwell_udc.c
@@ -1218,8 +1218,7 @@ static int langwell_wakeup(struct usb_gadget *_gadget)
dev_info(&dev->pdev->dev, "device remote wakeup\n");
/* exit PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 0);
+ langwell_phy_low_power(dev, 0);
/* force port resume */
portsc1 |= PORTS_FPR;
@@ -1909,8 +1908,7 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)
return -EINVAL;
/* exit PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 0);
+ langwell_phy_low_power(dev, 0);
/* unbind OTG transceiver */
if (dev->transceiver)
@@ -2774,8 +2772,7 @@ static void handle_bus_suspend(struct langwell_udc *dev)
}
/* enter PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 1);
+ langwell_phy_low_power(dev, 1);
dev_dbg(&dev->pdev->dev, "<--- %s()\n", __func__);
}
@@ -2789,8 +2786,7 @@ static void handle_bus_resume(struct langwell_udc *dev)
dev->resume_state = 0;
/* exit PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 0);
+ langwell_phy_low_power(dev, 0);
#ifdef OTG_TRANSCEIVER
atomic_notifier_call_chain(&dev->iotg->iotg_notifier,
@@ -3362,8 +3358,7 @@ static int langwell_udc_suspend(struct pci_dev *pdev, pm_message_t state)
pci_set_power_state(pdev, PCI_D3hot);
/* enter PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 1);
+ langwell_phy_low_power(dev, 1);
dev_dbg(&dev->pdev->dev, "<--- %s()\n", __func__);
return 0;
@@ -3379,8 +3374,7 @@ static int langwell_udc_resume(struct pci_dev *pdev)
dev_dbg(&dev->pdev->dev, "---> %s()\n", __func__);
/* exit PHY low power suspend */
- if (dev->pdev->device != 0x0829)
- langwell_phy_low_power(dev, 0);
+ langwell_phy_low_power(dev, 0);
/* set device D0 power state */
pci_set_power_state(pdev, PCI_D0);