]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: gadget: Convert epautoconf workaround to match_ep callback
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 9 Jun 2024 21:32:19 +0000 (23:32 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Fri, 5 Jul 2024 12:01:22 +0000 (14:01 +0200)
commit1918b8010c321c939fdedd6e461ccac87e0d3415
tree1b3992236cc3cf3cec7ab91fd552da830e016f93
parentbd7ec7b04f877b8b4a88d4367f100dc3f0af27a3
usb: dwc3: gadget: Convert epautoconf workaround to match_ep callback

Use the .match_ep() callback instead of workaround in core code.
Replace descriptor parsing with ch9 macros with the same effect.
Drop the SPL specific behavior, it is unclear why SPL should even
be special.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3
Link: https://lore.kernel.org/r/20240609213449.194762-6-marek.vasut+renesas@mailbox.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/usb/dwc3/gadget.c
drivers/usb/gadget/epautoconf.c