usb: dwc3: Add missing dependency on MISC uclass
Subsystems (2)
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Generic wrapper requires MISC uclass but dependency is not covered in Kconfig.
misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000
---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/dwc3/Kconfig +1 -1
@@ -39,7 +39,7 @@ config USB_DWC3_OMAP config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISC help Some platforms can reuse this DWC3 generic implementation.
Signature · 1 line
1.9.1
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Quoted 20 lines · Michal Simek
Generic wrapper requires MISC uclass but dependency is not covered in
Kconfig.misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000Signed-off-by Michal Simek <[email protected]>---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/dwc3/Kconfig +0
-0
drivers/usb/dwc3/Kconfig config USB_DWC3_OMAP · line 42
Quoted 5 lines
drivers/usb/dwc3/Kconfig +1
-1@@ -39,7 +39,7 @@ config USB_DWC3_OMAP config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISC
Platforms which do not select MISC will lose DWC3 now, did you verify that no platform is affected ?
Quoted 4 lines
drivers/usb/dwc3/Kconfig +0
-0help Some platforms can reuse this DWC3 generic implementation.
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Michal Simek
Generic wrapper requires MISC uclass but dependency is not covered in
Kconfig.misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000Signed-off-by Michal Simek <[email protected]>---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/dwc3/Kconfig +0
-0@@ -39,7 +39,7 @@ config USB_DWC3_OMAP
Quoted 7 lines
drivers/usb/dwc3/Kconfig config USB_DWC3_OMAP · line 42
Quoted 4 lines
drivers/usb/dwc3/Kconfig +1
-1config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISCPlatforms which do not select MISC will lose DWC3 now, did you verify that no platform is affected ?
This is what it is going to happen when MISC is not enabled.
Model: ZynqMP ZCU100 RevC Board: Xilinx ZynqMP I2C: ready DRAM: 2 GiB Cannot find uclass for id 39: please add the UCLASS_DRIVER() declaration
for this UCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Cannot find uclass for id 39: please add the UCLASS_DRIVER() declaration for this UCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Some drivers failed to bind
Error binding driver 'generic_simple_bus': -96
Some drivers failed to bind
initcall sequence 000000007ff9c3c8 failed at call 0000000008015728 (err=-96) ### ERROR ### Please RESET the board ###
It means if any platform is not enabling MISC then they have bigger problem then just missing DWC3.
Anyway only ZynqMP board enables it and all of them have MISC enabled.
[u-boot](wd)$ git log -n 1 --onelined452f27b3ea8 Prepare v2019.01-rc1
[u-boot](wd)$ git grep DWC3_GENERIC configs/avnet_ultra96_rev1_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig:82:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm017_dc3_defconfig:80:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu100_revC_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_rev1_0_defconfig:108:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revA_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revB_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revA_defconfig:88:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revC_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu106_revA_defconfig:97:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu111_revA_defconfig:90:CONFIG_USB_DWC3_GENERIC=y drivers/usb/dwc3/Kconfig:40:config USB_DWC3_GENERIC drivers/usb/dwc3/Makefile:10:obj-$(CONFIG_USB_DWC3_GENERIC)
+= dwc3-generic.o
Thanks,
Michal
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Quoted 64 lines · Michal Simek
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Michal Simek
Generic wrapper requires MISC uclass but dependency is not covered in
Kconfig.misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000Signed-off-by Michal Simek <[email protected]>---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/dwc3/Kconfig +0
-0@@ -39,7 +39,7 @@ config USB_DWC3_OMAPQuoted 7 lines
drivers/usb/dwc3/Kconfig config USB_DWC3_OMAP · line 42
Quoted 4 lines
drivers/usb/dwc3/Kconfig +1
-1config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISCPlatforms which do not select MISC will lose DWC3 now, did you verify that no platform is affected ?
This is what it is going to happen when MISC is not enabled.
Model: ZynqMP ZCU100 RevC Board: Xilinx ZynqMP I2C: ready DRAM: 2 GiB Cannot find uclass for id 39: please add the UCLASS_DRIVER() declarationfor this
UCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Cannot find uclass for id 39: please add theUCLASS_DRIVER()declaration for thisUCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Some drivers failed to bind
Error binding driver 'generic_simple_bus': -96
Some drivers failed to bind
initcall sequence000000007ff9c3c8failed at call 0000000008015728 (err=-96) ### ERROR ### Please RESET the board ###It means if any platform is not enabling MISC then they have bigger problem then just missing DWC3.
Anyway only ZynqMP board enables it and all of them have MISC enabled.
[u-boot](wd)$ git log -n 1 --oneline
d452f27b3ea8Prepare v2019.01-rc1
[u-boot](wd)$ git grepDWC3_GENERICconfigs/avnet_ultra96_rev1_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig:82:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm017_dc3_defconfig:80:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu100_revC_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_rev1_0_defconfig:108:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revA_defconfig:105:CONFIG_USB_DWC3_GENERIC=y
Quoted 8 lines
configs/xilinx_zynqmp_zcu102_revB_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revA_defconfig:88:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revC_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu106_revA_defconfig:97:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu111_revA_defconfig:90:CONFIG_USB_DWC3_GENERIC=y drivers/usb/dwc3/Kconfig:40:config
USB_DWC3_GENERICdrivers/usb/dwc3/Makefile:10:obj-$(CONFIG_USB_DWC3_GENERIC) += dwc3-generic.o
I wanted to apply this, but it doesn't apply to u-boot-usb/master .
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Quoted 74 lines · Marek Vasut
Quoted 64 lines · Michal Simek
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Michal Simek
Generic wrapper requires MISC uclass but dependency is not covered in
Kconfig.misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000Signed-off-by Michal Simek <[email protected]>---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/dwc3/Kconfig +0
-0@@ -39,7 +39,7 @@ config USB_DWC3_OMAPQuoted 7 lines
drivers/usb/dwc3/Kconfig config USB_DWC3_OMAP · line 42
Quoted 4 lines
drivers/usb/dwc3/Kconfig +1
-1config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISCPlatforms which do not select MISC will lose DWC3 now, did you verify that no platform is affected ?
This is what it is going to happen when MISC is not enabled.
Model: ZynqMP ZCU100 RevC Board: Xilinx ZynqMP I2C: ready DRAM: 2 GiB Cannot find uclass for id 39: please add the UCLASS_DRIVER() declarationfor this
UCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Cannot find uclass for id 39: please add theUCLASS_DRIVER()declaration for thisUCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Some drivers failed to bind
Error binding driver 'generic_simple_bus': -96
Some drivers failed to bind
initcall sequence000000007ff9c3c8failed at call 0000000008015728 (err=-96) ### ERROR ### Please RESET the board ###It means if any platform is not enabling MISC then they have bigger problem then just missing DWC3.
Anyway only ZynqMP board enables it and all of them have MISC enabled.
[u-boot](wd)$ git log -n 1 --oneline
d452f27b3ea8Prepare v2019.01-rc1
[u-boot](wd)$ git grepDWC3_GENERICconfigs/avnet_ultra96_rev1_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig:82:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm017_dc3_defconfig:80:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu100_revC_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_rev1_0_defconfig:108:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revA_defconfig:105:CONFIG_USB_DWC3_GENERIC=yQuoted 8 lines
configs/xilinx_zynqmp_zcu102_revB_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revA_defconfig:88:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revC_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu106_revA_defconfig:97:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu111_revA_defconfig:90:CONFIG_USB_DWC3_GENERIC=y drivers/usb/dwc3/Kconfig:40:config
USB_DWC3_GENERICdrivers/usb/dwc3/Makefile:10:obj-$(CONFIG_USB_DWC3_GENERIC) += dwc3-generic.o
Quoted 1 line
I wanted to apply this, but it doesn't apply to u-boot-usb/master .
Good thing on this is that "dwc3-generic: Handle the PHYs, the clocks and the reset lines" has done this change already.
(Before I sent this I was checking Jean's patches for DWC3 but didn't find this change :-()
Anyway please ignore this patch.
Thanks,
Michal
PATCH 1/1 usb: dwc3: Add missing dependency on MISC uclass
Quoted 75 lines · Michal Simek
Quoted 74 lines · Marek Vasut
Quoted 72 lines · Michal Simek
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Michal Simek
Generic wrapper requires MISC uclass but dependency is not covered in
Kconfig.misc 0 [ + ] dwc3-generic-wrapper | |-- usb0 at ff9d0000 usb_dev_ge 0 [ + ] dwc3-generic-periphe | | `-- dwc3 at fe200000 misc 1 [ ] dwc3-generic-wrapper | |-- usb1 at ff9e0000 usb 0 [ ] dwc3-generic-host | | `-- dwc3 at fe300000 watchdog 0 [ + ] cdns_wdt | `-- watchdog at fd4d0000Signed-off-by Michal Simek <[email protected]>---
drivers/usb/dwc3/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/dwc3/Kconfig +0
-0@@ -39,7 +39,7 @@ config USB_DWC3_OMAPQuoted 7 lines
drivers/usb/dwc3/Kconfig config USB_DWC3_OMAP · line 42
Quoted 4 lines
drivers/usb/dwc3/Kconfig +1
-1config USB_DWC3_GENERIC bool "Xilinx ZynqMP and similar Platforms" - depends on DM_USB && USB_DWC3 + depends on DM_USB && USB_DWC3 && MISCPlatforms which do not select MISC will lose DWC3 now, did you verify that no platform is affected ?
This is what it is going to happen when MISC is not enabled.
Model: ZynqMP ZCU100 RevC Board: Xilinx ZynqMP I2C: ready DRAM: 2 GiB Cannot find uclass for id 39: please add the UCLASS_DRIVER() declarationfor this
UCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Cannot find uclass for id 39: please add theUCLASS_DRIVER()declaration for thisUCLASS_... id
Error binding driver 'dwc3-generic-wrapper': -96
Some drivers failed to bind
Error binding driver 'generic_simple_bus': -96
Some drivers failed to bind
initcall sequence000000007ff9c3c8failed at call 0000000008015728 (err=-96) ### ERROR ### Please RESET the board ###It means if any platform is not enabling MISC then they have bigger problem then just missing DWC3.
Anyway only ZynqMP board enables it and all of them have MISC enabled.
[u-boot](wd)$ git log -n 1 --oneline
d452f27b3ea8Prepare v2019.01-rc1
[u-boot](wd)$ git grepDWC3_GENERICconfigs/avnet_ultra96_rev1_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig:82:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zc1751_xm017_dc3_defconfig:80:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu100_revC_defconfig:83:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_rev1_0_defconfig:108:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revA_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu102_revB_defconfig:105:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revA_defconfig:88:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu104_revC_defconfig:89:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu106_revA_defconfig:97:CONFIG_USB_DWC3_GENERIC=y configs/xilinx_zynqmp_zcu111_revA_defconfig:90:CONFIG_USB_DWC3_GENERIC=y drivers/usb/dwc3/Kconfig:40:configUSB_DWC3_GENERICdrivers/usb/dwc3/Makefile:10:obj-$(CONFIG_USB_DWC3_GENERIC)
+= dwc3-generic.o
Quoted 8 lines
Quoted 1 line
I wanted to apply this, but it doesn't apply to u-boot-usb/master .
Good thing on this is that "dwc3-generic: Handle the PHYs, the clocks and the reset lines" has done this change already.
(Before I sent this I was checking Jean's patches for DWC3 but didn't find this change :-()Anyway please ignore this patch.
OK, thanks
Signature · 2 lines
Best regards, Marek Vasut