diff options
| author | Frank Li <[email protected]> | 2021-02-18 22:51:08 +0000 |
|---|---|---|
| committer | Peter Chen <[email protected]> | 2021-04-12 12:19:20 +0000 |
| commit | 2cf2581cd2290ccef674f1be5f7977d66702eedb (patch) | |
| tree | fa20b3bab591e194ba2eb4e372b03cf3145d6568 /drivers/usb/cdns3/cdns3-gadget.c | |
| parent | Merge 5.12-rc7 into usb-next (diff) | |
| download | kernel-2cf2581cd2290ccef674f1be5f7977d66702eedb.tar.gz kernel-2cf2581cd2290ccef674f1be5f7977d66702eedb.zip | |
usb: cdns3: add power lost support for system resume
If the controller lost its power during the system suspend, we need
to do all initialiation operations.
Signed-off-by: Peter Chen <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
| -rw-r--r-- | drivers/usb/cdns3/cdns3-gadget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c index 582bfeceedb4..44b7301b1888 100644 --- a/drivers/usb/cdns3/cdns3-gadget.c +++ b/drivers/usb/cdns3/cdns3-gadget.c @@ -3304,6 +3304,8 @@ static int cdns3_gadget_resume(struct cdns *cdns, bool hibernated) return 0; cdns3_gadget_config(priv_dev); + if (hibernated) + writel(USB_CONF_DEVEN, &priv_dev->regs->usb_conf); return 0; } |
