[PATCH v2 0/2] usb: dwc3: Fix build without driver model

Alban Bedel alban.bedel at aerq.com
Wed Apr 20 11:26:03 CEST 2022


Hi everyone,

Platform with DWC3 that need USB support in the SPL might not be able
to use the driver model there while the main u-boot is using driver model.
This series allow building with such a configuration, it first fix 2 warnings
when the core is built without driver model and then fix the SPL linking when
one of the glue driver is enabled for the main u-boot.

Changelog:

v2: Use __maybe_unused instead of an #ifdef

Alban Bedel (2):
  usb: dwc3: core: fix warnings when building without driver model
  usb: dwc3: Don't build DM drivers in SPL unless DM USB is available

 drivers/usb/dwc3/Makefile | 9 ++++++---
 drivers/usb/dwc3/core.c   | 5 ++---
 2 files changed, 8 insertions(+), 6 deletions(-)

-- 
2.32.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3627 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220420/429f713b/attachment.bin>


More information about the U-Boot mailing list