Skip to content

usb: host: xhci-rcar: Avoid repeated matching

Geert Uytterhoeven linux-renesas-soc linux-usb 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: host: xhci-rcar: Remove SET_XHCI_PLAT_PRIV_FOR_RCAR() macrodrivers/usb/host/xhci-rcar.c+10 -90 replies
2/2usb: host: xhci-rcar: Split R-Car Gen2 and Gen3 .plat_start() handlingdrivers/usb/host/xhci-rcar.c+24 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] usb: host: xhci-rcar: Avoid repeated matching

Hi all,

On R-Car Gen2 and Gen3, the .plat_start() callback checks the XHCI's controller compatible value on each call, which happens multiple times during the lifetime of the device. This series fixes that by using separate .plat_start() callbacks, reducing source and binary size in the process.

This has been tested on R-Car H2 (Lager, disable pci2 first), and R-Car H3 ES2.0 (Salvator-XS).

Thanks for your comments

Geert Uytterhoeven (2):
usb: host: xhci-rcar: Remove SET_XHCI_PLAT_PRIV_FOR_RCAR() macro
usb: host: xhci-rcar: Split R-Car Gen2 and Gen3 .plat_start() handling

 drivers/usb/host/xhci-rcar.c | 70 +++++++++++++++++-------------------
 1 file changed, 33 insertions(+), 37 deletions(-)
Signature · 12 lines
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds