aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/langwell_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/langwell_udc.c')
-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);