From owner-freebsd-hardware@FreeBSD.ORG Wed Nov 11 18:01:48 2009 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D0C2106566B for ; Wed, 11 Nov 2009 18:01:48 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id D39678FC0A for ; Wed, 11 Nov 2009 18:01:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 3650E5C5E6; Wed, 11 Nov 2009 20:01:46 +0200 (EET) X-Virus-Scanned: amavisd-new at bulinfo.net Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iJ8AcdMAxI8r; Wed, 11 Nov 2009 20:01:46 +0200 (EET) Received: from [192.168.2.187] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id F35D55C5E4; Wed, 11 Nov 2009 20:01:45 +0200 (EET) Message-ID: <4AFAFC06.70800@bulinfo.net> Date: Wed, 11 Nov 2009 20:01:42 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.23 (X11/20091110) MIME-Version: 1.0 To: Hans Petter Selasky References: <4AFADA49.5070401@bulinfo.net> <200911111704.20112.hselasky@c2i.net> In-Reply-To: <200911111704.20112.hselasky@c2i.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: USB SD, MMC, MS, CF card reader? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2009 18:01:48 -0000 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: 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: 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 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 # usbconfig -u 7 -a 2 dump_curr_config_desc ugen7.2: 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 bmAttributes = 0x0080 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 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