From: Hao Wu <hao.wu@xxxxxxxxx> This patch enables PHY Low Power mode to save power for Penwell case. Signed-off-by: Hao Wu <hao.wu@xxxxxxxxx> --- drivers/usb/gadget/langwell_udc.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c index 2ba3ace..1466501 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); -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html