usb: dwc3: gadget: Check for disabled LPM quirk
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 14 Apr 2021 02:13:18 +0000 (19:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 13:58:33 +0000 (15:58 +0200)
commit475e8be53d0496f9bc6159f4abb3ff5f9b90e8de
treeda5f592cf5221d96d351f5f12e907d1c22b8bb9a
parent568262bf5492a9bb2fcc4c204b8d38fd6be64e28
usb: dwc3: gadget: Check for disabled LPM quirk

If the device doesn't support LPM, make sure to disable the LPM
capability and don't advertise to the host that it supports it.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/9e68527ff932b1646f92a7593d4092a903754666.1618366071.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c