u-boot/drivers/usb
Siddharth Vadapalli c54c72dec7 usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket
The function cdns3_ep_config() calculates the maximum packet size based
on the Endpoint Type and the Gadget Speed and stores it in the variable
"max_packet_size". This value is then programmed in the USB Controller
for the corresponding Endpoint. This may result in a mismatch between
the maximum packet size programmed in the USB controller and the maximum
packet size seen by the UDC Core via "maxpacket" member of "struct usb_ep".
Additionally, since TD_SIZE is calculated in cdns3_ep_run_transfer() on the
basis of the maximum packet size stored in the "maxpacket" member of
"struct usb_ep", it may lead to an incorrect value of TD_SIZE when compared
with what the USB controller actually expects (max_packet_size).

Fix this.

Fixes: 7e91f6ccdc ("usb: Add Cadence USB3 host and gadget driver")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20241007121927.1680039-1-s-vadapalli@ti.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-10-11 14:32:38 +02:00
..
cdns3 usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket 2024-10-11 14:32:38 +02:00
common Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
dwc3 usb: dwc3: support USB 3.1 controllers 2024-08-11 19:45:36 +02:00
emul sandbox: Return error code from read/write/seek 2024-08-09 16:03:19 -06:00
eth drivers: usb: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
gadget usb: gadget: usbhs: Add Renesas USBHS device driver 2024-10-01 16:21:29 +02:00
host phy: Extend generic_setup_phy() with PHY mode and submode 2024-09-09 17:18:04 +02:00
isp1760 Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mtu3 usb: gadget: mtu3: Convert interrupt handling to usb_gadget_generic_ops 2024-07-05 14:08:35 +02:00
musb arm: ti: Remove omap4 platform support 2024-07-23 10:37:48 -06:00
musb-new usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set 2024-08-22 09:23:33 +02:00
phy drivers: usb: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
ulpi Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig usb: Drop old non-DM code 2024-09-18 13:00:59 -06:00