Re: USB with SDHC card not recognized in 2.6.39 and 3.0rc4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Following the directions in "Documentation/usb/usbmon.txt".

On 3.0rc4 I now did:
# uname -r
3.0.0-rc4-smp
# zcat /proc/config.gz|grep USB_MON
CONFIG_USB_MON=y
# mount -t debugfs none_debugs /sys/kernel/debug
# ls /sys/kernel/debug/usb/usbmon
0s  0u  1s  1t  1u  2s  2t  2u  3s  3t  3u  4s  4t  4u  5s  5t  5u  6s  6t  6u  
7s  7t  7u

Then, when performing:
# cat /proc/bus/usb/devices

I found that the following part changed when inserting the USB adapter (from 
Transcend) that works on 2.6.38 :

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=058f ProdID=6335 Rev= 1.05
S:  Manufacturer=Generic
S:  Product=Mass Storage Device
S:  SerialNumber=058F63356336
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Then doing the following while the USB adapter wasn't in:

cat /sys/kernel/debug/usb/usbmon/1u > /tmp/3.0.rc4.usb.1.mon.out

Inserting the adapter with the previously mentioned 8GB SDHC card, waiting a 
minute or so and then removing it, I got the file that I have attached to this 
email.

I hope this helps, or please get back to me, eg. should I also do it with 
2.6.38?

Best regards,
Peter

________________________________
From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
To: Matthew Dharm <mdharm-usb@xxxxxxxxxxxxxxxxxx>
Cc: Peter Rasmussen <peterleifrasmussen@xxxxxxxxx>; linux-usb@xxxxxxxxxxxxxxx
Sent: Mon, June 27, 2011 6:12:20 PM
Subject: Re: USB with SDHC card not recognized in 2.6.39 and 3.0rc4

On Mon, 27 Jun 2011, Matthew Dharm wrote:

> On Sun, Jun 26, 2011 at 03:52:56PM -0700, Peter Rasmussen wrote:
> > The latest kernel I'm able to use a number of my USB-SD adapters is 2.6.38, 
>and 
>
> > as 3.0 (now rc4) doesn't seem to get it right either I'm writing you. 2.6.39 


> > didn't work either.
> > 
> > I collected info in two files, one for 2.6.38 and one for 3.0rc4, and I hope 

>it 
>
> > can be helpful.
> > The 2.6.38 file shows some adapters working and some not, which is an issue I 
>
>
> > would like to chase later, but for now I would be happy with just one of them 
>
>
> > working (like before in 2.6.38).
> > 
> > All tests are carried out with the same 8GB SDHC flash card inserted into the 
>
>
> > adapters.
> 
> I took a quick look at these logs... to me, these look like some change in
> the SCSI layer mode-sense handling.  Anyone have any ideas what changed?

It might be helpful to have a usbmon trace, so we can see what data the
SCSI layer is getting.  Peter, can you follow the instructions in 
Documentation/usb/usbmon.txt?

Alan Stern

Attachment: 3.0.rc4.usb.1.mon.out
Description: Binary data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux