From owner-freebsd-usb@FreeBSD.ORG Mon Apr 7 12:46:42 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 095A6CB7 for ; Mon, 7 Apr 2014 12:46:42 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BAA0C9CB for ; Mon, 7 Apr 2014 12:46:41 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3EBF91FE027; Mon, 7 Apr 2014 14:46:40 +0200 (CEST) Message-ID: <53429E5F.1030407@selasky.org> Date: Mon, 07 Apr 2014 14:47:27 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Ivan Rokotov , freebsd-usb@freebsd.org Subject: Re: Realtek SD Card Reader 0x0bda / 0x0129 detection? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 12:46:42 -0000 On 04/06/14 03:53, Ivan Rokotov wrote: > Hi, > > Environment: FreeBSD 10.0-RELEASE/amd64 on Lenovo IdeaPad S400. > > SD Card Reader visible by usbconfig: > ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON (500mA) > > usbconfig info: > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x00ff > bDeviceProtocol = 0x00ff > bMaxPacketSize0 = 0x0040 > idVendor = 0x0bda > idProduct = 0x0129 > bcdDevice = 0x3960 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <20100201396000000> > bNumConfigurations = 0x0001 > > Adding/removing SD card yields nothing. The same with booting with SD > card and/or turning power on/off with usbconfig. > > If I add this to /usr/src/sys/dev/usb/usbdevs > product REALTEK USB20CRW_T 0x0129 USB20CRW Card Reader > > - nothing changes. > > If I add these quirks to /usr/src/sys/dev/usb/quirk/usb_quirk.c > USB_QUIRK(REALTEK, USB20CRW_T, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN, > UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI) > > then I get: > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x0100 > umass0:3:0:-1: Attached to scbus3 > ... > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 > (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim0:0:0:0): Retrying command > ... > (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted > > Adding the 'UQ_MSC_NO_SYNC_CACHE" quirk changes nothing. > > Does anybody know what should be done and is it possible at all to use > this card reader with FreeBSD 10.0? > > Ivan > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > Hi, How did you add the quirk? --HPS