Re: ohci-ssb driver on a Broadcom BCM5354 (mipsel)

Steve Brown <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Steve Brown wrote:
> The 5354 has a dual ohci/ehci usb core. It's in an ASUS WL520gu wifi 
> router. The ohci hcd driver registers, finds the hubs, but times out 
> reading a descriptor from the device. This was originally posted to the 
> linux-mips list, but they recommended I post it here instead.
>
> I'm using 2.6.32.1 kernel from the openwrt project with the "ohci SSB 
> bus glue" and "Fix ohci-ssb with !CONFIG_PM" patches from linux-mips.  
> If there is a better test frame, let me know and I'll build it and test 
> that. Also, the author isn't aware of any testing other than some insmod 
> tests.
>
> The ohci/usb interface does work w/ the software provided with the 
> WL520gu and the same storage device. Further, I have the GPL source from 
> the ASUS web site. It is based on a 2.4 kernel and appears to use a 
> ssb<->pci shim and an unmodified ohci-pci driver.
>
> Below are dumps w/ USB_MON, USB_DEBUG, DEBUGFS & DEBUG_KERNEL set.
>
> Any suggestions on how to track down the problem?
>
> Steve
>
> =======================================================
>
> mount -t debugfs none-debugfs /sys/kernel/debug
> insmod usbmon
> --- snip ---

I built a 2.4.34 kernel (openwrt again). That ohci driver correctly does 
a set address & gets the device descriptors.

Below are dumps at the entry to the irq handlers for both the 2.4 & 2.6 
drivers.

I'm hoping somebody can see something amiss or maybe recommend some more 
instrumentation.

Also, I don't see how the dma translation is set. Do I need to call 
ssb_dma_set_mask someplace?

Steve

========= 2.4 ======================

hub.c: new USB device 00:03.0-1, assigned address 2
usb-ohci.c: SUB URB:[5ca3] dev: 0,ep: 0-O,type:CTRL,flags:   
0,len:0/0,stat:0(0)
usb-ohci.c: cmd(8): 00 05 02 00 00 00 00 00
usb-ohci.c:hc_interrupt:2363
usb-ohci.c: OHCI controller usb-00:03.0 state
usb-ohci.c: control: 0x0000009f HCFS=operational CLE IE PLE CBSR=3
usb-ohci.c: cmdstatus: 0x00000000 SOC=0
usb-ohci.c: intrstatus: 0x00000046 RHSC SF WDH
usb-ohci.c: intrenable: 0x80000013 MIE UE WDH SO
usb-ohci.c: ed_controlhead 00b66610
usb-ohci.c: hcca frame #5cd1
usb-ohci.c: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
usb-ohci.c: roothub.b: 00000000 PPCM=0000 DR=0000
usb-ohci.c: roothub.status: 00000000
usb-ohci.c: roothub.portstatus [0] = 0x00000103 PPS PES CCS
usb-ohci.c: roothub.portstatus [1] = 0x00000100 PPS
usb-ohci.c: RET URB:[5cee] dev: 0,ep: 0-O,type:CTRL,flags:   
0,len:0/0,stat:0(0)
usb-ohci.c: SUB URB:[5d13] dev: 2,ep: 0-I,type:CTRL,flags:   
0,len:0/8,stat:0(0)
usb-ohci.c:hc_interrupt:2363
usb-ohci.c: OHCI controller usb-00:03.0 state
usb-ohci.c: control: 0x0000009f HCFS=operational CLE IE PLE CBSR=3
usb-ohci.c: cmdstatus: 0x00000000 SOC=0
usb-ohci.c: intrstatus: 0x00000046 RHSC SF WDH
usb-ohci.c: intrenable: 0x80000013 MIE UE WDH SO
usb-ohci.c: ed_controlhead 00b66610
usb-ohci.c: donehead 00d7b040
usb-ohci.c: hcca frame #5d3f
usb-ohci.c: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
usb-ohci.c: roothub.b: 00000000 PPCM=0000 DR=0000
usb-ohci.c: roothub.status: 00000000
usb-ohci.c: roothub.portstatus [0] = 0x00000103 PPS PES CCS
usb-ohci.c: roothub.portstatus [1] = 0x00000100 PPS
usb-ohci.c:hc_interrupt:2363
usb-ohci.c: OHCI controller usb-00:03.0 state
usb-ohci.c: control: 0x0000008f HCFS=operational IE PLE CBSR=3
usb-ohci.c: cmdstatus: 0x00000000 SOC=0
usb-ohci.c: intrstatus: 0x00000046 RHSC SF WDH
usb-ohci.c: intrenable: 0x80000013 MIE UE WDH SO
usb-ohci.c: hcca frame #5d79
usb-ohci.c: roothub.a: 02001202 POTPGT=2 NOCP NPS NDP=2
usb-ohci.c: roothub.b: 00000000 PPCM=0000 DR=0000
usb-ohci.c: roothub.status: 00000000
usb-ohci.c: roothub.portstatus [0] = 0x00000103 PPS PES CCS
usb-ohci.c: roothub.portstatus [1] = 0x00000100 PPS
usb-ohci.c: RET URB:[5d96] dev: 2,ep: 0-I,type:CTRL,flags:   
0,len:8/8,stat:0(0)

=========== 2.6 =====================================

usb 1-1: new full speed USB device using ohci_hcd and address 2
drivers/usb/host/ohci-dbg.c: SUB 8090f500 dev=0 ep=0out-ctrl flags=0 
len=0/0 stat=-150
drivers/usb/host/ohci-dbg.c: setup(8): 00 05 02 00 00 00 00 00
ohci_hcd ssb0:1: OHCI controller state
ohci_hcd ssb0:1: OHCI 1.0, NO legacy support registers
ohci_hcd ssb0:1: control 0x093 HCFS=operational CLE CBSR=3
ohci_hcd ssb0:1: cmdstatus 0x00000 SOC=0
ohci_hcd ssb0:1: intrstatus 0x00000066 RHSC FNO SF WDH
ohci_hcd ssb0:1: intrenable 0x8000001a MIE UE RD WDH
ohci_hcd ssb0:1: ed_controlhead 00e19000
ohci_hcd ssb0:1: ed_controlcurrent 00e19000
ohci_hcd ssb0:1: hcca frame #8e1f
ohci_hcd ssb0:1: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)
ohci_hcd ssb0:1: roothub.b 00000000 PPCM=0000 DR=0000
ohci_hcd ssb0:1: roothub.status 00008000 DRWE
ohci_hcd ssb0:1: roothub.portstatus [0] 0x00000103 PPS PES CCS
ohci_hcd ssb0:1: roothub.portstatus [1] 0x00000100 PPS
ohci_hcd ssb0:1: wdh detected
drivers/usb/host/ohci-q.c:dl_done_list:1080
drivers/usb/host/ohci-q.c:td_done:720 tdINFO:0x03c20000
drivers/usb/host/ohci-q.c:td_done:764 cc:0x0 urb->status:-150 type:0x2 
tdBE:0x0 dma:0x0 hwCBP:0x0
ohci_hcd ssb0:1: urb 8090f500 td a0d5c000 (1) cc 0, status -150 flags 
0x00000000 len=0/0



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.