Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kernel4.4] USB is not working #2

Open
tosiara opened this issue May 5, 2020 · 4 comments
Open

[kernel4.4] USB is not working #2

tosiara opened this issue May 5, 2020 · 4 comments

Comments

@tosiara
Copy link
Owner

tosiara commented May 5, 2020

[    0.498233] reg-fixed-voltage usb-otg-regulator: otg-vbus supplying 5000000uV
[    0.516866] reg-fixed-voltage usb-host-regulator: host-pwr supplying 5000000uV
[    0.527303] usbcore: registered new interface driver usbfs
[    0.532130] usbcore: registered new interface driver hub
[    0.536781] usbcore: registered new device driver usb
[    1.126606] hso: drivers/net/usb/hso.c: Option Wireless
[    1.138234] usbcore: registered new interface driver hso
[    1.149781] usbcore: registered new interface driver asix
[    1.161175] usbcore: registered new interface driver ax88179_178a
[    1.173114] usbcore: registered new interface driver cdc_ether
[    1.184631] usbcore: registered new interface driver dm9601
[    1.195726] usbcore: registered new interface driver smsc95xx
[    1.206814] usbcore: registered new interface driver net1080
[    1.217661] usbcore: registered new interface driver cdc_subset
[    1.228630] usbcore: registered new interface driver zaurus
[    1.239152] usbcore: registered new interface driver cdc_ncm
[    1.249665] dwc2 10180000.usb: Configuration mismatch. Forcing peripheral mode
[    1.261798] dwc2 101c0000.usb: Configuration mismatch. Forcing peripheral mode
[    1.274000] usbcore: registered new interface driver cdc_acm
[    1.284331] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.648432] usbcore: registered new interface driver uvcvideo
[    1.658476] USB Video Class driver (1.1.1)
[    1.674892] usbcore: registered new interface driver em28xx
[    1.739250] usbcore: registered new interface driver btusb
[    2.077307] usbcore: registered new interface driver usbhid
[    2.088645] usbhid: USB HID core driver
[    2.098310] usbcore: registered new interface driver r8188eu
[    2.109913] usbcore: registered new interface driver rtl8723au
[    2.814636] dwc2 10180000.usb: Configuration mismatch. Forcing peripheral mode
[    2.827691] dwc2 101c0000.usb: Configuration mismatch. Forcing peripheral mode
[    2.853736] dwc2 10180000.usb: Configuration mismatch. Forcing peripheral mode
[    2.853948] dwc2 101c0000.usb: Configuration mismatch. Forcing peripheral mode

USB ports are not functional. Not even charging phone works

@tosiara
Copy link
Owner Author

tosiara commented May 5, 2020

On working 3.0.36 kernel USB works and boot looks like:

[    0.753757] usbcore: registered new interface driver usbfs
[    0.753893] usbcore: registered new interface driver hub
[    0.768127] usbcore: registered new device driver usb
[    2.295705] Initializing USB Mass Storage driver...
[    2.295810] usbcore: registered new interface driver usb-storage
[    2.295870] USB Mass Storage support registered.
[    2.508478] usb20_otg usb20_otg: DWC OTG Controller
[    2.508624] usb20_otg usb20_otg: new USB bus registered, assigned bus number 1
[    2.508715] usb20_otg usb20_otg: irq 48, io mem 0x00000000
[    2.508860] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.508921] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.508986] usb usb1: Product: DWC OTG Controller
[    2.509030] usb usb1: Manufacturer: Linux 3.0.36+ dwc_otg_hcd
[    2.509081] usb usb1: SerialNumber: usb20_otg
[    2.509419] hub 1-0:1.0: USB hub found
[    2.724286] usb20_host usb20_host: DWC OTG Controller
[    2.724398] usb20_host usb20_host: new USB bus registered, assigned bus number 2
[    2.724461] usb20_host usb20_host: irq 49, io mem 0x00000000
[    2.724734] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.724791] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.724851] usb usb2: Product: DWC OTG Controller
[    2.724893] usb usb2: Manufacturer: Linux 3.0.36+ host20_hcd
[    2.724942] usb usb2: SerialNumber: usb20_host
[    2.725254] hub 2-0:1.0: USB hub found
[    2.855284] usbcore: registered new interface driver usbhid
[    2.855337] usbhid: USB HID core driver
[    2.872025] usbcore: registered new interface driver snd-usb-audio
[    2.872111] usbcore: registered new interface driver snd-ua101
[    2.872188] usbcore: registered new interface driver snd-usb-caiaq
[    2.872264] usbcore: registered new interface driver snd-usb-6fire
[    3.180902] usb 2-1: new high speed USB device number 2 using usb20_host
[    3.392645] usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.392870] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.393108] usb 2-1: Product: USB2.0 Hub
[    3.393737] hub 2-1:1.0: USB hub found
[    3.671715] usb 2-1.1: new high speed USB device number 3 using usb20_host
[    3.774664] usb 2-1.1: New USB device found, idVendor=0bda, idProduct=8179
[    3.781636] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.788659] usb 2-1.1: Product: 802.11n WLAN NIC
[    3.788729] usb 2-1.1: Manufacturer: Realtek
[   26.003036] usbcore: registered new interface driver r8188eu

@tosiara tosiara changed the title USB is not working USB is not working with kernel 4.4 May 6, 2020
@tosiara tosiara changed the title USB is not working with kernel 4.4 [kernel4.4] USB is not working May 6, 2020
@tosiara
Copy link
Owner Author

tosiara commented May 6, 2020

Working 3.18 kernel output:

[    0.450560] reg-fixed-voltage usb-otg-regulator: otg-vbus supplying 5000000uV
[    0.490055] reg-fixed-voltage usb-host-regulator: host-pwr supplying 5000000uV
[    0.500482] usbcore: registered new interface driver usbfs
[    0.505269] usbcore: registered new interface driver hub
[    0.509933] usbcore: registered new device driver usb
[    1.065951] hso: drivers/net/usb/hso.c: Option Wireless
[    1.078662] usbcore: registered new interface driver hso
[    1.091537] usbcore: registered new interface driver asix
[    1.104370] usbcore: registered new interface driver ax88179_178a
[    1.117763] usbcore: registered new interface driver cdc_ether
[    1.130737] usbcore: registered new interface driver dm9601
[    1.143351] usbcore: registered new interface driver smsc95xx
[    1.156095] usbcore: registered new interface driver net1080
[    1.168670] usbcore: registered new interface driver cdc_subset
[    1.181472] usbcore: registered new interface driver zaurus
[    1.193902] usbcore: registered new interface driver cdc_ncm
[    2.149126] dwc2 10180000.usb: DWC OTG Controller
[    2.160330] dwc2 10180000.usb: new USB bus registered, assigned bus number 1
[    2.173961] dwc2 10180000.usb: irq 48, io mem 0x00000000
[    2.185856] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.199005] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.212460] usb usb1: Product: DWC OTG Controller
[    2.223207] usb usb1: Manufacturer: Linux 3.18.140 dwc2_hsotg
[    2.234999] usb usb1: SerialNumber: 10180000.usb
[    2.246427] hub 1-0:1.0: USB hub found
[    3.214019] dwc2 101c0000.usb: DWC OTG Controller
[    3.224419] dwc2 101c0000.usb: new USB bus registered, assigned bus number 2
[    3.237144] dwc2 101c0000.usb: irq 49, io mem 0x00000000
[    3.248173] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    3.260370] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.273121] usb usb2: Product: DWC OTG Controller
[    3.283162] usb usb2: Manufacturer: Linux 3.18.140 dwc2_hsotg
[    3.294144] usb usb2: SerialNumber: 101c0000.usb
[    3.304673] hub 2-0:1.0: USB hub found
[    3.323298] usbcore: registered new interface driver cdc_acm
[    3.333770] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    3.703669] usbcore: registered new interface driver uvcvideo
[    3.713929] USB Video Class driver (1.1.1)
[    3.730655] usb 2-1: new high-speed USB device number 2 using dwc2
[    3.741270] usbcore: registered new interface driver em28xx
[    3.806972] usbcore: registered new interface driver btusb
[    3.952849] usbcore: registered new interface driver usbhid
[    3.964610] usbhid: USB HID core driver
[    3.974721] usbcore: registered new interface driver r8188eu
[    3.986658] usbcore: registered new interface driver rtl8723au
[    4.053277] usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.066591] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.080456] usb 2-1: Product: USB2.0 Hub
[    4.103439] hub 2-1:1.0: USB hub found
[    4.763754] usb 2-1.1: new high-speed USB device number 3 using dwc2
[    4.875280] usb 2-1.1: New USB device found, idVendor=0bda, idProduct=8179
[    4.888275] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.901712] usb 2-1.1: Product: 802.11n WLAN NIC
[    4.912441] usb 2-1.1: Manufacturer: Realtek

@tosiara
Copy link
Owner Author

tosiara commented May 7, 2020

Rockchip's kernel does not compile:
https://github.com/rockchip-linux/kernel/

drivers/usb/dwc2/platform.c: In function 'dwc2_resume':
drivers/usb/dwc2/platform.c:764:14: error: 'struct dwc2_hsotg' has no member named 'driver'; did you mean 'priv'?
   if (!dwc2->driver)
              ^~~~~~
              priv

@tosiara
Copy link
Owner Author

tosiara commented May 7, 2020

Radxa provided defconfig gives this warning:

arch/arm/configs/rockchip_defconfig:187:warning: override: USB_DWC2_PERIPHERAL changes choice state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant