On Tue, Jun 03, 2025 at 07:16:32AM +0000, Minas Harutyunyan wrote:
For UTMI+ PHY, according to programming guide, first should be set PMUACTV bit then STOPPCLK bit. Otherwise, when the device issues Remote Wakeup, then host notices disconnect instead. For ULPI PHY, above mentioned bits must be set in reversed order: STOPPCLK then PMUACTV.
Fixes: 4483ef3c1685 ("usb: dwc2: Add hibernation updates for ULPI PHY") Cc: stable@vger.kernel.org Reported-by: Tomasz Mon tomasz.mon@nordicsemi.no Signed-off-by: Minas Harutyunyan Minas.Harutyunyan@synopsys.com
Changes in v4:
- Rebased on top of Linux 6.15-rc6
Changes in v3:
- Rebased on top of 6.15-rc4
Changes in v2:
- Added Cc: stable@vger.kernel.org
drivers/usb/dwc2/gadget.c | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-)
Fails to apply on top of 6.16-rc2 :(