mbox series

[v3,0/7] Fix USB pipe configuration for RZ/G2L

Message ID 20240315183921.375751-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Fix USB pipe configuration for RZ/G2L | expand

Message

Biju Das March 15, 2024, 6:39 p.m. UTC
The USBHS IP found on RZ/G2L SoCs only has 10 pipe buffers compared
to 16 pipe buffers on RZ/A2M. Document renesas,rzg2l-usbhs family
compatible to handle this difference for RZ/G2L family SoCs.

This patch series aims to fix the USB pipe configuration for RZ/G2L
family SoCs.

For the backward compatibility SoC specific compatible is used
and will be removed the same after few kernel releases.

As the DTS update has a hard dependency on the driver fix, Got ack
from Geert for patch#7 to apply the DTS update together with the driver
fix.

v2->v3:
 * Added Rb tag from Geert for patch#1,#2 and #7
 * Added Ack tag from Geert for patch#7.
 * Added patch#3 for improving usbhsc_default_pipe[] for isochronous
   transfers
 * Added patch#4 for dropping has_new_pipe_configs from struct
   renesas_usbhs_driver_param
 * Updated commit description for patch#5
 * Dropped usbhsc_rzg2l_pipe[] and reusing the default_pipe[].
v1->v2:
 * Added Ack from Krzysztof Kozlowski for patch#1.
 * Added patch#2 for simplify obtaining device data.
 * Dropped using of_device_is_compatible() in probe.
 * Added usbhs_rzg2l_plat_info and replaced the device data for RZ/G2L
   from usbhs_rza2_plat_info->usbhs_rzg2l_plat_info.
 * Moved usbhsc_rzg2l_pipe table near to the user.
 * Updated commit description in patch#3
 * Added Rb tag from Geert for patch#4.
 * Updated commit description about ABI breakage in patch#5.
 * Updated commit header in patch#5 as it is RZ/G2L specific.

Biju Das (7):
  dt-bindings: usb: renesas,usbhs: Document RZ/G2L family compatible
  usb: renesas_usbhs: Simplify obtaining device data
  usb: renesas_usbhs: Improve usbhsc_default_pipe[] for isochronous
    transfers
  usb: renesas_usbhs: Drop has_new_pipe_configs from struct
    renesas_usbhs_driver_param
  usb: renesas_usbhs: Update usbhs pipe configuration for RZ/G2L family
  usb: renesas_usbhs: Remove trailing comma in the terminator entry for
    OF table
  arm64: dts: renesas: r9a07g0{43,44,54}: Update RZ/G2L family
    compatible

 .../bindings/usb/renesas,usbhs.yaml           |  6 +-
 arch/arm64/boot/dts/renesas/r9a07g043.dtsi    |  2 +-
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    |  2 +-
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    |  2 +-
 drivers/usb/renesas_usbhs/common.c            | 56 +++++++++++--------
 drivers/usb/renesas_usbhs/common.h            |  3 +
 drivers/usb/renesas_usbhs/rcar2.c             |  3 +-
 drivers/usb/renesas_usbhs/rcar3.c             |  6 +-
 drivers/usb/renesas_usbhs/rza.c               |  3 +-
 drivers/usb/renesas_usbhs/rza.h               |  1 +
 drivers/usb/renesas_usbhs/rza2.c              | 18 +++++-
 include/linux/usb/renesas_usbhs.h             |  1 -
 12 files changed, 70 insertions(+), 33 deletions(-)