Bug 143186 - [usbdevs] [usb8] [patch] add USB device IDs for Google Nexus One and for RealTek Card Reader
Summary: [usbdevs] [usb8] [patch] add USB device IDs for Google Nexus One and for Real...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 21:30 UTC by J.R. Oldroyd
Modified: 2014-06-27 10:36 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.66 KB, patch)
2010-01-24 21:30 UTC, J.R. Oldroyd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description J.R. Oldroyd 2010-01-24 21:30:06 UTC
Adds USB device IDs for Google Nexus One and for RealTek Card Reader

Note:  The initial USB probe will fail (NOT READY) when attaching an
Android device.  This is because attaching an Android device does not
automatically make the SD card available to the computer.  The SD card
must be unmounted from the phone in order to make it available to the
computer - an operation that requires manual intervention on the phone
(you must "mount" the card).

Once that is done, the phone's SD card can be mounted using a mount
command.  HAL, however, does not see the device once it is available,
so HAL does not auto-mount it.  I've not found a quirk or other
work-around for this.  Feel free to add one if you know of something.

Note: The RealTek Card Reader has nothing to do with the Nexus One.
I'm just adding its ID at the same time.  It is a PCCARD/ExpressCard
reader on my laptop.

How-To-Repeat: n/a
Comment 1 Hans Petter Selasky 2010-01-25 08:31:25 UTC
Can you send output from usbconfig -u X -a Y dump_device_desc 
dump_curr_config_desc 

?

--HPS
Comment 2 J.R. Oldroyd 2010-01-25 18:23:09 UTC
Sure...

ugen4.2: <Nexus One Google, Inc.> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0102 
  bDeviceClass = 0x0000 
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x18d1 
  idProduct = 0x4e12 
  bcdDevice = 0x0100 
  iManufacturer = 0x0003  <Google, Inc.>
  iProduct = 0x0002  <Nexus One>
  iSerialNumber = 0x0001  <xxxxxxxxxxxxxx>
  bNumConfigurations = 0x0001 


 Configuration index 0

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

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x0008 
      bInterfaceSubClass = 0x0006 
      bInterfaceProtocol = 0x0050 
      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 = 0x0081 
        bmAttributes = 0x0002 
        wMaxPacketSize = 0x0200 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 


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

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0002 
        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 
Comment 3 Hans Petter Selasky 2010-01-25 19:09:34 UTC
Is interface 1 the SD-card interface?

--HPS
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2010-02-08 06:25:17 UTC
State Changed
From-To: open->feedback

Note that the submitter has been asked for feedback.
Comment 5 J.R. Oldroyd 2010-02-09 20:22:19 UTC
Response and subsequent exchanges sent by email, several days back now.
Ball's in HPS' court at the moment.
Comment 6 Hans Petter Selasky 2010-07-25 12:55:10 UTC
Hi,

Committed to USB P4.

The usb_quirk.c part is not needed.

http://p4web.freebsd.org/@@181454?ac=10

--HPS
Comment 7 Alexander Best freebsd_committer freebsd_triage 2010-11-13 14:50:53 UTC
State Changed
From-To: feedback->patched

Changes are in HEAD. Couldn't find the commit however.
Comment 8 Hans Petter Selasky freebsd_committer freebsd_triage 2014-06-27 10:36:27 UTC
USB ID's are committed and MFC'ed to FreeBSD 8/9 and 10.

--HPS