Commit b03d86bd authored by Elson Roy Serrao's avatar Elson Roy Serrao Committed by Carlos Llamas
Browse files

UPSTREAM: usb: gadget: Properly configure the device for remote wakeup



[ Upstream commit b93c2a68 ]

The wakeup bit in the bmAttributes field indicates whether the device
is configured for remote wakeup. But this field should be allowed to
set only if the UDC supports such wakeup mechanism. So configure this
field based on UDC capability. Also inform the UDC whether the device
is configured for remote wakeup by implementing a gadget op.

Reviewed-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Change-Id: I45920af2fe5171587ee801abf4c3d33f8832720f
Signed-off-by: default avatarElson Roy Serrao <quic_eserrao@quicinc.com>
Link: https://lore.kernel.org/r/1679694482-16430-2-git-send-email-quic_eserrao@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 4e8ef34e ("usb: dwc3: fix gadget mode suspend interrupt handler issue")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 7919af1d)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 49cb2707
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment