NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57233: FTDI serial fails to attach on second plug-in on AllWinner H5 EHCI



>Number:         57233
>Category:       kern
>Synopsis:       FTDI serial fails to attach on second plug-in on AllWinner H5 EHCI
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 17 18:20:00 +0000 2023
>Originator:     Jason Thorpe
>Release:        NetBSD 10.0_BETA
>Organization:
RISCy Business
>Environment:
NetBSD neo2-nas 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #0: Sun Feb 12 12:39:37 UTC 2023  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
System:
[     1.000000] simplebus0 at armfdt0: FriendlyARM NanoPi NEO 2
(AllWinner H5)

USB controllers:
[     1.000004] motg0 at simplebus1: 'otg' mode not supported
[     1.000004] ehci0 at simplebus1: EHCI
[     1.000004] ehci0: interrupting on GIC irq 104
[     1.000004] ehci0: EHCI version 1.0
[     1.000004] ehci0: 1 companion controller, 1 port
[     1.000004] ehci0: Using DMA subregion for control data structures
[     1.000004] usb0 at ehci0: USB revision 2.0
[     1.000004] ohci0 at simplebus1: OHCI
[     1.000004] ohci0: interrupting on GIC irq 105
[     1.000004] ohci0: OHCI version 1.0
[     1.000004] usb1 at ohci0: USB revision 1.0
[     1.000004] ehci1 at simplebus1: EHCI
[     1.000004] ehci1: interrupting on GIC irq 106
[     1.000004] ehci1: EHCI version 1.0
[     1.000004] ehci1: 1 companion controller, 1 port
[     1.000004] ehci1: Using DMA subregion for control data structures
[     1.000004] usb2 at ehci1: USB revision 2.0
[     1.000004] ohci1 at simplebus1: OHCI
[     1.000004] ohci1: interrupting on GIC irq 107
[     1.000004] ohci1: OHCI version 1.0
[     1.000004] usb3 at ohci1: USB revision 1.0
[     1.000004] ehci2 at simplebus1: EHCI
[     1.000004] ehci2: interrupting on GIC irq 108
[     1.000004] ehci2: EHCI version 1.0
[     1.000004] ehci2: 1 companion controller, 1 port
[     1.000004] ehci2: Using DMA subregion for control data structures
[     1.000004] usb4 at ehci2: USB revision 2.0
[     1.000004] ohci2 at simplebus1: OHCI
[     1.000004] ohci2: interrupting on GIC irq 109
[     1.000004] ohci2: OHCI version 1.0
[     1.000004] usb5 at ohci2: USB revision 1.0
[     1.000004] ehci3 at simplebus1: EHCI
[     1.000004] ehci3: interrupting on GIC irq 110
[     1.000004] ehci3: EHCI version 1.0
[     1.000004] ehci3: 1 companion controller, 1 port
[     1.000004] ehci3: Using DMA subregion for control data structures
[     1.000004] usb6 at ehci3: USB revision 2.0
[     1.000004] ohci3 at simplebus1: OHCI
[     1.000004] ohci3: interrupting on GIC irq 111
[     1.000004] ohci3: OHCI version 1.0
[     1.000004] usb7 at ohci3: USB revision 1.0
.
.
.
[     1.822463] uhub0 at usb0: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     1.822463] uhub0: 1 port with 1 removable, self powered
[     1.822463] uhub1 at usb3: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.832460] uhub1: 1 port with 1 removable, self powered
[     1.832460] uhub2 at usb2: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     1.844001] uhub2: 1 port with 1 removable, self powered
[     1.844001] uhub3 at usb5: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.852458] uhub3: 1 port with 1 removable, self powered
[     1.852458] uhub4 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.862458] uhub4: 1 port with 1 removable, self powered
[     1.862458] uhub5 at usb7: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.872459] uhub5: 1 port with 1 removable, self powered
[     1.872459] uhub6 at usb4: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     1.882459] uhub6: 1 port with 1 removable, self powered


Attaching an FTDI USB serial interface:

[ 155747.713944] ehci3: handing over full speed device on port 1 to companion controller
[ 155748.793980] uftdi0 at uhub5 port 1 configuration 1 interface 0
[ 155748.803980] uftdi0: FTDI (0x0403) FT232R USB UART (0x6001), rev 2.00/6.00, addr 2
[ 155748.813982] ucom0 at uftdi0 portno 0

Now unplug:
[ 155792.435455] ucom0: detached
[ 155792.435455] uftdi0: detached
[ 155792.435455] uftdi0: at uhub5 port 1 (addr 2) disconnected

And how plug again:
[ 155792.995485] ehci3: handing over full speed device on port 1 to companion controller
<crickets>

...and now repeated un-plug / plug results in no additional messages from the EHCI driver.

Tried again on a different port (another USB is bought out to a connector on my NAS dock for the SBC), and the results were identical -- worked for a single plug / un-plug cycle:

[ 155865.807875] ehci1: handing over full speed device on port 1 to companion controller
[ 155866.877910] uftdi0 at uhub1 port 1 configuration 1 interface 0
[ 155866.887910] uftdi0: FTDI (0x0403) FT232R USB UART (0x6001), rev 2.00/6.00, addr 2
[ 155866.897911] ucom0 at uftdi0 portno 0
[ 155876.198279] ucom0: detached
[ 155876.198279] uftdi0: detached
[ 155876.198279] uftdi0: at uhub1 port 1 (addr 2) disconnected
[ 155876.748311] ehci1: handing over full speed device on port 1 to companion controller
<crickets>

>How-To-Repeat:
See description.
>Fix:
N/A



Home | Main Index | Thread Index | Old Index