Hi,

Following a discussion in linux-usb list I think there is a bug. But I
don't know much about USB to continue debugging...

It happens with, and only with a Huawei E169 modem. It I power-on a
WRT160NL the device doesn't appear registered on bus. If for example I
reboot the router(soft reboot), it is detected. As if I insert it
after boot.

> On power-on(device not discovered):
>
> r...@openwrt:/# cat /sys/kernel/debug/usb/ehci/ar71xx-ehci/registers
> bus platform, device ar71xx-ehci
> Atheros AR91xx built-in EHCI controller
> EHCI 1.00, hcd state 1
> structural params 0x00010011
> capability params 0x00000006
> status 0088 FLR
> command 010009 (park)=0 ithresh=1 period=256 RUN
> intrenable 37 IAA FATAL PCD ERR INT
> uframe 0878
> port 1 status c001000 POWER sig=se0
> irq normal 0 err 0 reclaim 0 (lost 0)
> complete 0 unlink 0
>
> On restart(device discovered):
>
> r...@openwrt:/# cat /sys/kernel/debug/usb/ehci/ar71xx-ehci/registers
> bus platform, device ar71xx-ehci
> Atheros AR91xx built-in EHCI controller
> EHCI 1.00, hcd state 1
> structural params 0x00010011
> capability params 0x00000006
> status 40088 FLR
> command 010009 (park)=0 ithresh=1 period=256 RUN
> intrenable 37 IAA FATAL PCD ERR INT
> uframe 2f18
> port 1 status 001805 POWER sig=j PE CONNECT
> irq normal 13 err 0 reclaim 5 (lost 0)
> complete 13 unlink 0


That's quite clear.  If you compare the "port 1" lines, you'll see the
difference.  In the not-discovered case the hardware reports that
nothing is plugged into the port, whereas in the other case it reports
that there is a connection.

There is a bug either in the EHCI hardware or in the platform driver.

Alan Stern

-- 
\ Nuno Gonçalves
/
\ Bugs? Features!
/
\ nuno...@gmail.com
/ PORTUGAL
E-mail sent directly from Google Mail webmail using HTTPS on behalf of
Nuno João Pinto Gonçalves, birth date 1986-11-16. E-mail headers
provide good assurance that this message was not tampered and
originates from nuno...@gmail.com. If you require additional security,
I may provide on request X509 electronic signature under Portuguese
government chain.
Se precisar de assinatura digital do Cartão de Cidadão, de uma apitadela.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to