[OpenWrt-Devel] Add Ralink RT3XXX USB OHCI driver

Luis Soltero lsoltero at globalmarinenet.com
Mon Aug 25 18:20:31 EDT 2014


OK.  seems to work...

driver loaded with out issue.

[    1.030000] rt3xxx-usbphy usbphy.3: loaded
[    6.180000] usbcore: registered new interface driver usbfs
[    6.200000] usbcore: registered new interface driver hub
[    6.210000] usbcore: registered new device driver usb
[    6.270000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.490000] rt3xxx-usbphy usbphy.3: remote usb device wakeup disabled
[    6.510000] rt3xxx-usbphy usbphy.3: UTMI 16bit 30MHz
[    6.530000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.580000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.590000] usb usb1: no of_node; not parsing pinctrl DT
[    6.590000] hub 1-0:1.0: USB hub found
[    6.620000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.640000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.730000] usb usb2: no of_node; not parsing pinctrl DT
[    6.730000] hub 2-0:1.0: USB hub found


here are a few OCHI devices that are recognized without proble.


root at Optimizer:~# [  281.290000] usb 1-1: USB disconnect, device number 4
[  287.740000] usb 2-1: new full-speed USB device number 3 using ohci-platform
[  287.970000] pl2303 2-1:1.0: pl2303 converter detected
[  288.010000] usb 2-1: pl2303 converter now attached to ttyUSB0

root at Optimizer:~# [  361.070000] usb 2-1: new full-speed USB device number 4 using ohci-platform
[  361.300000] hub 2-1:1.0: USB hub found
[  361.310000] hub 2-1:1.0: 4 ports detected

[  397.720000] usb 2-1.2: new full-speed USB device number 5 using ohci-platform
[  397.840000] usb 2-1.2: not running at top speed; connect to a high speed hub
[  397.890000] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[  397.900000] scsi2 : usb-storage 2-1.2:1.0
[  399.550000] scsi 2:0:0:0: Direct-Access     USB      Flash DISK       1100 PQ: 0 ANSI: 4
[  399.570000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[  399.590000] sd 2:0:0:0: [sdc] 31703040 512-byte logical blocks: (16.2 GB/15.1 GiB)
[  399.610000] sd 2:0:0:0: [sdc] Write Protect is off
[  399.620000] sd 2:0:0:0: [sdc] No Caching mode page found
[  399.630000] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[  399.680000] sd 2:0:0:0: [sdc] No Caching mode page found
[  399.690000] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[  399.710000]  sdc: sdc1 sdc2
[  399.750000] sd 2:0:0:0: [sdc] No Caching mode page found
[  399.760000] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[  399.780000] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[  400.250000] Adding 499692k swap on /dev/sdc1.  Priority:-3 extents:1 across:499692k
[  400.770000] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts:

reads/writes occur to the drive without error...

So... it looks like its fixed.

I will do more testing but it seems that this fix addresses defect #14516
https://dev.openwrt.org/ticket/14516

Thank you.

--luis

 
On 8/25/14, 2:22 PM, John Crispin wrote:
> Hi
>
> the phy init was missing the bit for the ohci root port. i pushed a
> patch to fix this, please retest.
>
> 	John
>
>
> On 22/08/2014 06:30, Luis Soltero wrote:
>> Hello All,
>>
>> I has anything happened as far as the MT7620x OHCI USB driver
>> issue? The last posted patch for this
>>
>> From ffb27de4760595c356ef619c97f25722c8db28e7 Mon Sep 17 00:00:00
>> 2001 From: John Crispin <blogic at openwrt.org> Date: Sun, 27 Jul 2014
>> 09:49:07 +0100 Subject: [PATCH 38/57] USB: add OHCI/EHCI OF
>> binding
>>
>> based on f3bc64d6d1f21c1b92d75f233a37b75d77af6963
>>
>> Signed-off-by: John Crispin <blogic at openwrt.org>
>>
>> does not address the issue described here 
>> https://dev.openwrt.org/ticket/14516
>>
>> I have a two different boards MT7620A boards from AsiaRF that I can
>> use for testing if someone can provide guidance.  One of the has
>> one USB port and the other board has a built in Alcor USB hub.
>>
>> Thanks,
>>
>> --luis
>>
>>
>> John Crispin 
>> <http://search.gmane.org/?author=John+Crispin&sort=date> | 31 Jul
>> 13:39 2014
>>
>>
>> Re: [PATCH]ramips: Add Ralink RT3XXX USB OHCI driver
>>
>> Hi,
>>
>> no, we wont take this patch. i will instead figure out what is
>> wrong with the existing code and fix it.
>>
>> John
>>
>>
>> --
>>
>>
>> Luis Soltero, Ph.D., MCS Director of Software Development, CTO 
>> Global Marine Networks, LLC StarPilot, LLC Tel: +1.865.379.8723 
>> Fax: +1.865.681.5017 E-Mail: lsoltero at globalmarinenet.net Web:
>> http://www.globalmarinenet.net Web: http://www.redportglobal.com 
>> Web: http://www.starpilotllc.com
>>
>>
>>
>> _______________________________________________ openwrt-devel
>> mailing list openwrt-devel at lists.openwrt.org 
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>

-- 


Luis Soltero, Ph.D., MCS
Director of Software Development, CTO
Global Marine Networks, LLC
StarPilot, LLC
Tel: +1.865.379.8723
Fax: +1.865.681.5017
E-Mail: lsoltero at globalmarinenet.net
Web: http://www.globalmarinenet.net
Web: http://www.redportglobal.com
Web: http://www.starpilotllc.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list