Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2009 20:01:42 +0200
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: USB SD, MMC, MS, CF card reader?
Message-ID:  <4AFAFC06.70800@bulinfo.net>
In-Reply-To: <200911111704.20112.hselasky@c2i.net>
References:  <4AFADA49.5070401@bulinfo.net> <200911111704.20112.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote:
> On Wednesday 11 November 2009 16:37:45 Krassimir Slavchev wrote:
>> Hi All,
>>
>> I have an old USB card reader which is not recognized by 8.0.
>> The reader is based on a C-Media CM320L chip.
>>
>> Does this reader need special handling or umass driver can be used?
>>
>> # usbconfig -u 7 -a 2 dump_info
>> ugen7.2: <product 0x5200 vendor 0x0d8c> at usbus7, cfg=0 md=HOST
>> spd=HIGH (480Mbps) pwr=ON
>>
>> # usbconfig -u 7 -a 2 dump_device_quirks
>>
> 
> Hi,
> 
> The umass quirks are currently not available through the USB quirks API.
> Can you do: dump_device_desc and dump_curr_config_desc ?
> You probably need to edit sys/dev/usb/storage/umass.c and add a device entry 
> there.
>
> --HPS
>
>

Yes, I will try but I am not sure whether this will be enough

# usbconfig -u 7 -a 2 dump_device_desc
ugen7.2: <product 0x5200 vendor 0x0d8c> at usbus7, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0000
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0d8c
  idProduct = 0x5200
  bcdDevice = 0x0100
  iManufacturer = 0x0000  <no string>
  iProduct = 0x0000  <no string>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001

# usbconfig -u 7 -a 2 dump_curr_config_desc
ugen7.2: <product 0x5200 vendor 0x0d8c> at usbus7, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x0027
    bNumInterfaces = 0x0001
    bConfigurationValue = 0x0001
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0080
    bMaxPower = 0x00fa

    Interface 0
      bLength = 0x0009
      bDescriptorType = 0x0004
      bInterfaceNumber = 0x0000
      bAlternateSetting = 0x0000
      bNumEndpoints = 0x0003
      bInterfaceClass = 0x00ff
      bInterfaceSubClass = 0x00ff
      bInterfaceProtocol = 0x00ff
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0001
        bmAttributes = 0x0002
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 1
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0082
        bmAttributes = 0x0002
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 2
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0084
        bmAttributes = 0x0003
        wMaxPacketSize = 0x0004
        bInterval = 0x0009
        bRefresh = 0x0000
        bSynchAddress = 0x0000




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AFAFC06.70800>