linux-stable/include/linux/usb
Elson Roy Serrao b93c2a68f3 usb: gadget: Properly configure the device for remote wakeup
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: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Elson 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-29 10:27:00 +02:00
..
audio-v2.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
audio-v3.h
audio.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
c67x00.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
ccid.h
cdc-wdm.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
cdc.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
cdc_ncm.h net/cdc_ncm: Increase NTB max RX/TX values to 64kb 2022-07-21 13:20:28 +02:00
ch9.h headers/deps: USB: Optimize <linux/usb/ch9.h> dependencies, remove <linux/device.h> 2022-01-05 16:21:44 +01:00
chipidea.h usb: chipidea: Add support for VBUS control with PHY 2022-08-31 09:07:52 +02:00
composite.h usb: gadget: Properly configure the device for remote wakeup 2023-03-29 10:27:00 +02:00
ehci-dbgp.h
ehci_def.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
ehci_pdriver.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
ezusb.h
functionfs.h
g_hid.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
gadget.h usb: gadget: Properly configure the device for remote wakeup 2023-03-29 10:27:00 +02:00
gadget_configfs.h
hcd.h xhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals 2023-03-29 08:56:35 +02:00
input.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
iowarrior.h
irda.h
isp116x.h
isp1301.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
isp1362.h
m66592.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
musb-ux500.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
musb.h ARM: omap2: make functions static 2023-01-09 17:00:54 +01:00
net2280.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
of.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
ohci_pdriver.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
onboard_hub.h usb: misc: Add onboard_usb_hub driver 2022-07-08 14:53:50 +02:00
otg-fsm.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
otg.h
pd.h usb: typec: Separate USB Power Delivery from USB Type-C 2022-06-12 06:49:47 +02:00
pd_ado.h
pd_bdo.h usb: typec: tcpm: Fix undefined behavior due to shift overflowing the constant 2022-04-21 18:33:56 +02:00
pd_ext_sdb.h
pd_vdo.h
phy.h
phy_companion.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
quirks.h
r8a66597.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
r8152.h
renesas_usbhs.h
rndis_host.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
role.h usb: roles: fix include/linux/usb/role.h compile issue 2022-01-25 18:30:15 +01:00
rzv2m_usb3drd.h usb: gadget: Add support for RZ/V2M USB3DRD driver 2023-01-25 15:48:16 +01:00
serial.h usb: serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
sl811.h
storage.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
tcpci.h usb: typec: tcpci: Add callback for evaluating contaminant presence 2023-01-17 17:29:23 +01:00
tcpm.h usb: typec: tcpm: Add callbacks to mitigate wakeups due to contaminant 2023-01-17 17:29:23 +01:00
tegra_usb_phy.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
typec.h usb: typec: Add partner PD object wrapper 2022-11-29 08:56:09 +01:00
typec_altmode.h usb: typec_altmode: add a missing "@" at a kernel-doc parameter 2022-06-29 21:00:16 +02:00
typec_dp.h usb: typec: altmodes/displayport: correct pin assignment for UFP receptacles 2022-08-18 21:20:07 +02:00
typec_mux.h usb: typec: mux: Add CONFIG guards for functions 2022-06-21 16:38:14 +02:00
typec_retimer.h usb: typec: Add support for retimers 2022-07-14 16:24:05 +02:00
typec_tbt.h
uas.h
ulpi.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00
usb338x.h USB: Follow-up to SPDX GPL-2.0+ identifiers addition - remove now useless comments 2022-06-10 11:24:37 +02:00
usb_phy_generic.h
usbnet.h SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
uvc.h usb: uvc: use v4l2_fill_fmtdesc instead of open coded format name 2023-01-31 09:40:43 +01:00
webusb.h usb: gadget: Use correct APIs and data types for UUID handling 2023-01-31 10:37:29 +01:00
xhci-dbgp.h USB: Follow-up to SPDX identifiers addition - remove now useless comments 2022-06-10 11:24:36 +02:00