Switch the driver to use device based functions which will work not
only with FDT but also ACPI in the future.
While here make dr_mode a local variable as it is only used during
probe and not needed later in the softc.
Differential D33170
USB: dwc3: use device_{has,get}_property() bz on Nov 29 2021, 9:29 PM. Authored by Tags None Referenced Files
Details Switch the driver to use device based functions which will work not While here make dr_mode a local variable as it is only used during
Diff Detail
Event Timeline
Comment Actions Be more verbose in case of device_get_property() returning no Comment Actions Ok, I think I know what the problem here is.
Comment Actions Is someone else (from Semihalf) going to fix this? Comment Actions Thanks! My OFW/FDT knowledge is rather limited when it comes to its internals. So very much appreciated!
Comment Actions From all I can test this seems to work on a nanopi-m4v2. ... ehci1: usbpf: Attached ohci1: <Generic OHCI Controller> mem 0xfe3e0000-0xfe3fffff irq 16 on ofwbus0 usbus3 on ohci1 ohci1: usbpf: Attached rk_dwc30: <Rockchip RK3399 DWC3> on ofwbus0 xhci0: Found dr_mode 'otg' but only 'host' supported. s=4 rk_dwc30: <usb@fe800000> mem 0xfe800000-0xfe8fffff irq 79 compat snps,dwc3 (no driver attached) xhci0: Found dr_mode 'otg' but only 'host' supported. s=4 rk_dwc31: <Rockchip RK3399 DWC3> on ofwbus0 xhci0: <Synopsys Designware DWC3> mem 0xfe900000-0xfe9fffff irq 80 on rk_dwc31 xhci0: snps id: 5533300a xhci0: 64 bytes context size, 32-bit DMA usbus4: trying to attach usbus4 on xhci0 xhci0: usbpf: Attached ofwbus0: <dp@fec00000> mem 0xfec00000-0xfecfffff irq 17 disabled compat rockchip,rk3399-cdn-dp (no driver attached) ...
|