From owner-freebsd-usb@FreeBSD.ORG Thu Oct 27 18:31:48 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 979D1106564A for ; Thu, 27 Oct 2011 18:31:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2C13B8FC1D for ; Thu, 27 Oct 2011 18:31:47 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 194660214; Thu, 27 Oct 2011 20:31:45 +0200 From: Hans Petter Selasky To: Gustau =?iso-8859-15?q?P=E9rez?= Date: Thu, 27 Oct 2011 20:28:40 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4EA9127E.80504@entel.upc.edu> In-Reply-To: <4EA9127E.80504@entel.upc.edu> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201110272028.40342.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Quirk for a USB mass storage device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2011 18:31:48 -0000 On Thursday 27 October 2011 10:12:46 Gustau P=E9rez wrote: > Hi, >=20 > I'm running FreeBSD 10.0 r226042 on AMD64 and I'm having problems > with the following device: >=20 > umass0: addr 7> on usbus0 > umass0: SCSI over Bulk-Only; quirks =3D 0x4001 > umass0: Get Max Lun not supported (USB_ERR_TIMEOUT) > umass0:5:0:-1: Attached to scbus5 >=20 > as you can see, UQ_MSC_NO_GETMAXLUN should be set to use the device. > As it is a 64Gb mass storage I would like to use it. >=20 > I tried to manually add the quirk and it worked. Later on I tried > with 9.0Beta2/i386 on the same machine and the problem also appeared. So > I made a patch (which works on CURRENT, did not try with STABLE) to add > the quirk, which is attached. >=20 > Hans: is it necessary to fill a PR with the patch or would it be > enough with the inline patch? Hi Gustau, Does this device work at all without this patch? I was thinking to auto detect this behaviour instead. =2D-HPS