linux/drivers/usb/core
Stefan Eichenberger e4b5f41539 usb: core: replace usb_sndaddr0pipe macro with usb_sndctrlpipe
The usb_sndaddr0pipe macro is only used in the hub_set_address function.
Replace it with usb_sndctrlpipe which provides the same functionality
but would also consider the endpoint device number.

If the device has not been initialised, it is safe to use
usb_sndctrlpipe in this context because udev->devnum is set to 0.
Therefore, this change does not affect behaviour, but reduces code
complexity by reusing the existing macro.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250219083745.10406-1-eichest@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-03 10:23:19 +01:00
..
buffer.c - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
config.c USB: core: Add eUSB2 descriptor and parsing in USB core 2025-02-21 10:45:32 +01:00
devices.c USB: Remove remnants of Wireless USB and UWB 2023-08-09 14:17:06 +02:00
devio.c USB: core: remove dead code in do_proc_bulk() 2024-11-13 07:06:41 +01:00
driver.c USB: Optimize goto logic in API usb_register_driver() 2024-12-23 18:40:34 +01:00
endpoint.c usb: core: use sysfs_emit() instead of sprintf() 2024-10-29 04:33:49 +01:00
file.c USB: make usb class a const structure 2023-07-25 17:49:30 +02:00
generic.c USB: Replace own str_plural with common one 2025-01-15 18:28:12 +01:00
hcd-pci.c USB: Fix the issue of task recovery failure caused by USB status when S4 wakes up 2024-12-04 16:14:08 +01:00
hcd.c usb: hcd: Bump local buffer size in rh_string() 2025-01-17 15:26:33 +01:00
hub.c usb: core: replace usb_sndaddr0pipe macro with usb_sndctrlpipe 2025-03-03 10:23:19 +01:00
hub.h Merge 6.9-rc2 into usb-next 2024-04-01 17:02:18 +02:00
Kconfig usb: core: Kconfig: Improve USB authorization mode help 2024-02-17 16:38:35 +01:00
ledtrig-usbport.c usb: core: use sysfs_emit() instead of sprintf() 2024-10-29 04:33:49 +01:00
Makefile usb: misc: onboard_hub: rename to onboard_dev 2024-03-27 07:57:16 +01:00
message.c USB: document some API requirements on disconnection 2024-03-02 20:37:14 +01:00
notify.c
of.c usb: core: add missing of_node_put() in usb_of_has_devices_or_graph 2024-07-03 16:04:10 +02:00
otg_productlist.h
phy.c usb: core: add phy notify connect and disconnect 2024-01-27 17:36:14 -08:00
phy.h usb: core: add phy notify connect and disconnect 2024-01-27 17:36:14 -08:00
port.c USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
quirks.c USB: quirks: add USB_QUIRK_NO_LPM quirk for Teclast dist 2025-02-14 09:25:41 +01:00
sysfs.c usb: core: sysfs: Constify 'struct bin_attribute' 2024-12-24 08:56:04 +01:00
urb.c USB: Remove remnants of Wireless USB and UWB 2023-08-09 14:17:06 +02:00
usb-acpi.c ACPI: bus: change the prototype for acpi_get_physical_device_location 2024-12-19 20:59:35 +01:00
usb.c usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
usb.h USB: make to_usb_device_driver() use container_of_const() 2024-11-14 17:57:33 +01:00