On 01/07/2017 07:51 PM, Hauke Mehrtens wrote: > On 01/07/2017 07:29 PM, Hauke Mehrtens wrote: >> This adds USB initialization fixes for Danube, Amazon SE and xrx300 and >> should fix the clock on at least Danube which hopefully fixes FS#351. >> >> The xrx200 usb driver now uses more memory for the dwc2 fifos, this was >> increased in the chip compared to ar9. >> >> This is based on the vendor documentation and the vendor Code base. >> >> Signed-off-by: Hauke Mehrtens <ha...@hauke-m.de> >> --- >> >> If some of these dwc2 values should be changed, please suggest changes, >> I am not an expert on this. >> This was only tested on vrx200 devices not on any other SoC, please >> test and report back, I would like to get this into the next release >> and then clean it up and send it upstream. > > My USB flash drive was not fully detected when I had it plugged in at > boot up, when I unplugged and plugged it in again it worked without > problems.
here is the log: [ 5.148038] SCSI subsystem initialized [ 5.159235] dwc2 1e101000.ifxhcd: requested GPIO 495 [ 6.017482] dwc2 1e101000.ifxhcd: DWC OTG Controller [ 6.021075] dwc2 1e101000.ifxhcd: new USB bus registered, assigned bus number 1 [ 6.028402] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000 [ 6.033917] dwc2 1e101000.ifxhcd: Hardware does not support descriptor DMA mode - [ 6.041357] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode. [ 6.048833] hub 1-0:1.0: USB hub found [ 6.051826] hub 1-0:1.0: 1 port detected [ 6.433313] usb 1-1: new high-speed USB device number 2 using dwc2 [ 6.917479] dwc2 1e106000.ifxhcd: DWC OTG Controller [ 6.921057] dwc2 1e106000.ifxhcd: new USB bus registered, assigned bus number 2 [ 6.928418] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000 [ 6.933920] dwc2 1e106000.ifxhcd: Hardware does not support descriptor DMA mode - [ 6.941360] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode. [ 6.948816] hub 2-0:1.0: USB hub found [ 6.951833] hub 2-0:1.0: 1 port detected [ 6.959806] usb-storage 1-1:1.0: USB Mass Storage device detected [ 6.965428] scsi host0: usb-storage 1-1:1.0 [ 6.969230] usbcore: registered new interface driver usb-storage [ 6.985406] init: - preinit - Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 7.333301] usb 2-1: new full-speed USB device number 2 using dwc2 [ 7.677418] eth0: port 0 got link [ 7.966202] scsi 0:0:0:0: Direct-Access SMI USB MEMORY BAR 1000 PQ: 0 ANSI: 5 [ 7.977478] sd 0:0:0:0: [sda] Attached SCSI removable disk ....... <unplug and plug the USB drive> [ 26.285438] usb 1-1: USB disconnect, device number 2 [ 30.313320] usb 1-1: new high-speed USB device number 3 using dwc2 [ 30.520949] usb-storage 1-1:1.0: USB Mass Storage device detected [ 30.537351] scsi host1: usb-storage 1-1:1.0 [ 31.726008] scsi 1:0:0:0: Direct-Access SMI USB DISK 1100 PQ: 0 ANSI: 4 [ 31.737325] sd 1:0:0:0: [sda] 15974400 512-byte logical blocks: (8.18 GB/7.62 GiB) [ 31.749355] sd 1:0:0:0: [sda] Write Protect is off [ 31.757405] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 31.783703] sda: sda1 [ 31.791169] sd 1:0:0:0: [sda] Attached SCSI removable disk The USB device is detected correctly at bootup with a probability of 40%, when I plug it in later it is detected correctly every time. Hauke _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev