linux/drivers/usb
Niklas Neronin 1c17190880 usb: xhci: set page size to the xHCI-supported size
[ Upstream commit 68c1f16716 ]

The current xHCI driver does not validate whether a page size of 4096
bytes is supported. Address the issue by setting the page size to the
value supported by the xHCI controller, as read from the Page Size
register. In the event of an unexpected value; default to a 4K page size.

Additionally, this commit removes unnecessary debug messages and instead
prints the supported and used page size once.

The xHCI controller supports page sizes of (2^{(n+12)}) bytes, where 'n'
is the Page Size Bit. Only one page size is supported, with a maximum
page size of 128 KB.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250306144954.3507700-10-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:28 +02:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-03-13 13:02:11 +01:00
c67x00 USB: c67x00: Remove unused declaration c67x00_hcd_msg_received() 2023-10-02 16:42:33 +02:00
cdns3 usb: cdnsp: fix L1 resume issue for RTL_REVISION_NEW_LPM version 2025-05-18 08:24:55 +02:00
chipidea usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling 2025-05-02 07:59:12 +02:00
class usb: usbtmc: Fix erroneous generic_read ioctl return 2025-05-18 08:24:55 +02:00
common usb: common: Switch to device_property_match_property_string() 2024-09-11 15:34:34 +02:00
core USB: VLI disk crashes if LPM is used 2025-05-02 07:59:13 +02:00
dwc2 usb: dwc2: gadget: remove of_node reference upon udc_stop 2025-02-21 14:01:30 +01:00
dwc3 usb: dwc3: gadget: Make gadget_wakeup asynchronous 2025-05-18 08:24:54 +02:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
gadget ALSA: ump: Fix a typo of snd_ump_stream_msg_device_info 2025-05-22 14:29:41 +02:00
host usb: xhci: set page size to the xHCI-supported size 2025-05-29 11:02:28 +02:00
image scsi: core: Add a dma_alignment field to the host and host template 2024-04-11 21:37:48 -04:00
isp1760 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
misc usb: misc: onboard_usb_dev: fix support for Cypress HX3 hubs 2025-05-18 08:24:55 +02:00
mon [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
mtu3 tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
musb usb: musb: Fix hardware lockup on first Rx endpoint request 2024-12-05 14:03:00 +01:00
phy usb: phy: generic: Use proper helper for property detection 2025-03-22 12:54:16 -07:00
renesas_usbhs usb: renesas_usbhs: Flush the notify_hotplug_work 2025-03-13 13:02:11 +01:00
roles usb: roles: set switch registered flag early on 2025-02-21 14:01:30 +01:00
serial USB: serial: simple: add OWON HDS200 series oscilloscope support 2025-05-02 07:59:11 +02:00
storage USB: storage: quirk for ADATA Portable HDD CH94 2025-05-02 07:59:09 +02:00
typec usb: typec: ucsi: displayport: Fix deadlock 2025-05-22 14:29:53 +02:00
usbip Merge 6.11-rc3 into usb-next 2024-08-12 18:49:00 +02:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00