* ohci-ssb driver on a Broadcom BCM5354
@ 2007-11-18 18:23 Steve Brown
2007-11-18 19:53 ` Franck Bui-Huu
2007-11-18 22:47 ` John W. Linville
0 siblings, 2 replies; 6+ messages in thread
From: Steve Brown @ 2007-11-18 18:23 UTC (permalink / raw)
To: linux-mips
The 5354 has a dual ohci/ehci usb core. It's in an ASUS WL520gu wifi
router. The ohci hcd driver registers, but times out reading a
descriptor from the device.
Any suggestions on how to track down the problem?
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.
Is this driver known to work with some combination of Broadcom hardware?
The ohci/usb interface does work w/ the software provided with the WL520gu.
Steve
usbcore: registered new interface driver
usbfs
usbcore: registered new interface driver
hub
usbcore: registered new device driver
usb
ohci_hcd ssb0:1: SSB OHCI
Controller
ohci_hcd ssb0:1: new USB bus registered, assigned bus number
1
ohci_hcd ssb0:1: irq 5, io mem
0x18003000
usb usb1: configuration #1 chosen from 1
choice
hub 1-0:1.0: USB hub
found
hub 1-0:1.0: 2 ports
detected
USB Universal Host Controller Interface driver
v3.0
Initializing USB Mass Storage
driver...
usbcore: registered new interface driver
usb-storage
USB Mass Storage support registered.
usb 1-1: new full speed USB device using ohci_hcd and address
2
usb 1-1: device descriptor read/64, error
-145
===================
> root@OpenWrt:/# cat
> /proc/bus/usb/devices
>
>
>
> T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh=
> 2
>
> B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso=
> 0
>
> D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs=
> 1
>
> P: Vendor=0000 ProdID=0000 Rev=
> 2.06
>
> S: Manufacturer=Linux 2.6.23.1
> ssb-usb-ohci
>
> S: Product=SSB OHCI
> Controller
>
> S:
> SerialNumber=ssb0:1
>
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=
> 0mA
>
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00
> Driver=hub
>
> E: Ad=81(I) Atr=03(Int.) MxPS= 2
> Ivl=255ms
>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: ohci-ssb driver on a Broadcom BCM5354
2007-11-18 18:23 ohci-ssb driver on a Broadcom BCM5354 Steve Brown
@ 2007-11-18 19:53 ` Franck Bui-Huu
2007-11-18 22:47 ` John W. Linville
1 sibling, 0 replies; 6+ messages in thread
From: Franck Bui-Huu @ 2007-11-18 19:53 UTC (permalink / raw)
To: Steve Brown; +Cc: linux-mips
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, but times out reading a
> descriptor from the device.
>
You'd better post this to linux-usb-devel@lists.sourceforge.net
> Any suggestions on how to track down the problem?
>
CONFIG_USB_DEBUG=y
and
usbmon perhaps.
Franck
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ohci-ssb driver on a Broadcom BCM5354
2007-11-18 18:23 ohci-ssb driver on a Broadcom BCM5354 Steve Brown
2007-11-18 19:53 ` Franck Bui-Huu
@ 2007-11-18 22:47 ` John W. Linville
2007-11-19 18:23 ` Michael Buesch
1 sibling, 1 reply; 6+ messages in thread
From: John W. Linville @ 2007-11-18 22:47 UTC (permalink / raw)
To: Steve Brown; +Cc: linux-mips, mb
You probably want to make Michael Buesch aware of this issue.
John
On Sun, Nov 18, 2007 at 01:23:01PM -0500, 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, but times out reading a descriptor
> from the device.
>
> Any suggestions on how to track down the problem?
>
> 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.
>
> Is this driver known to work with some combination of Broadcom hardware?
>
> The ohci/usb interface does work w/ the software provided with the WL520gu.
>
> Steve
>
> usbcore: registered new interface driver usbfs
>
> usbcore: registered new interface driver hub
>
> usbcore: registered new device driver usb
>
> ohci_hcd ssb0:1: SSB OHCI Controller
>
> ohci_hcd ssb0:1: new USB bus registered, assigned bus number 1
>
> ohci_hcd ssb0:1: irq 5, io mem 0x18003000
>
> usb usb1: configuration #1 chosen from 1 choice
>
> hub 1-0:1.0: USB hub found
>
> hub 1-0:1.0: 2 ports detected
>
> USB Universal Host Controller Interface driver v3.0
>
> Initializing USB Mass Storage driver...
>
> usbcore: registered new interface driver usb-storage
>
> USB Mass Storage support registered. usb 1-1: new full speed USB device
> using ohci_hcd and address 2
>
> usb 1-1: device descriptor read/64, error -145
>
>
> ===================
>
>> root@OpenWrt:/# cat /proc/bus/usb/devices
>>
>>
>>
>> T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
>>
>> B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
>>
>> D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
>>
>> P: Vendor=0000 ProdID=0000 Rev= 2.06
>>
>> S: Manufacturer=Linux 2.6.23.1 ssb-usb-ohci
>>
>> S: Product=SSB OHCI Controller
>>
>> S: SerialNumber=ssb0:1
>>
>> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
>>
>> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00
>> Driver=hub
>> E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
>>
>>
>
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ohci-ssb driver on a Broadcom BCM5354
2007-11-18 22:47 ` John W. Linville
@ 2007-11-19 18:23 ` Michael Buesch
2007-11-26 11:05 ` Steve Brown
0 siblings, 1 reply; 6+ messages in thread
From: Michael Buesch @ 2007-11-19 18:23 UTC (permalink / raw)
To: John W. Linville; +Cc: Steve Brown, linux-mips
On Sunday 18 November 2007 23:47:52 John W. Linville wrote:
> You probably want to make Michael Buesch aware of this issue.
I'm not sure anyone really tested this beyond some insmod tests.
I did not test this, as I don't have such a device.
So if you have any patches to fix this, please send them. I'm
certainly the wrong person who can fix this. ;)
--
Greetings Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ohci-ssb driver on a Broadcom BCM5354
2007-11-19 18:23 ` Michael Buesch
@ 2007-11-26 11:05 ` Steve Brown
2007-11-26 14:15 ` Michael Buesch
0 siblings, 1 reply; 6+ messages in thread
From: Steve Brown @ 2007-11-26 11:05 UTC (permalink / raw)
To: Michael Buesch; +Cc: John W. Linville, linux-mips
Michael Buesch wrote:
> On Sunday 18 November 2007 23:47:52 John W. Linville wrote:
>
>> You probably want to make Michael Buesch aware of this issue.
>>
>
> I'm not sure anyone really tested this beyond some insmod tests.
> I did not test this, as I don't have such a device.
> So if you have any patches to fix this, please send them. I'm
> certainly the wrong person who can fix this. ;)
>
>
Adding the following at the end of ssb_ohci_attach seems to fix the problem.
if (ssb_dma_set_mask(dev, DMA_32BIT_MASK))
return -EOPNOTSUPP;
I guessed at the dma mask. Would the code in the b43 driver that selects
a dma mask be appropriate here?
Steve
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ohci-ssb driver on a Broadcom BCM5354
2007-11-26 11:05 ` Steve Brown
@ 2007-11-26 14:15 ` Michael Buesch
0 siblings, 0 replies; 6+ messages in thread
From: Michael Buesch @ 2007-11-26 14:15 UTC (permalink / raw)
To: Steve Brown; +Cc: John W. Linville, linux-mips
On Monday 26 November 2007 12:05:33 Steve Brown wrote:
> Michael Buesch wrote:
> > On Sunday 18 November 2007 23:47:52 John W. Linville wrote:
> >
> >> You probably want to make Michael Buesch aware of this issue.
> >>
> >
> > I'm not sure anyone really tested this beyond some insmod tests.
> > I did not test this, as I don't have such a device.
> > So if you have any patches to fix this, please send them. I'm
> > certainly the wrong person who can fix this. ;)
> >
> >
> Adding the following at the end of ssb_ohci_attach seems to fix the problem.
>
> if (ssb_dma_set_mask(dev, DMA_32BIT_MASK))
> return -EOPNOTSUPP;
>
> I guessed at the dma mask. Would the code in the b43 driver that selects
> a dma mask be appropriate here?
I have no idea. If it makes it work, yeah. Cool. Let's add this.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-11-26 14:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-18 18:23 ohci-ssb driver on a Broadcom BCM5354 Steve Brown
2007-11-18 19:53 ` Franck Bui-Huu
2007-11-18 22:47 ` John W. Linville
2007-11-19 18:23 ` Michael Buesch
2007-11-26 11:05 ` Steve Brown
2007-11-26 14:15 ` Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox