From owner-freebsd-usb@freebsd.org Wed Aug 10 07:10:45 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44194BB4DB9 for ; Wed, 10 Aug 2016 07:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BF891EEA for ; Wed, 10 Aug 2016 07:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7A7AijF090060 for ; Wed, 10 Aug 2016 07:10:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211716] [PATCH] USB Driver didn't get the right size Date: Wed, 10 Aug 2016 07:10:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: howard0su@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 07:10:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211716 Bug ID: 211716 Summary: [PATCH] USB Driver didn't get the right size Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: howard0su@gmail.com Keywords: patch One I-O Data USB Flash Disk cannot get the right size. the dmesg shows umass0: on usbu= s7 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 umass0:6:0: Attached to scbus6 da0 at umass-sim0 bus 0 scbus6 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI devi= ce da0: Serial Number 137161312223005B da0: 40.000MB/s transfers da0: 0MB (1 512 byte sectors) da0: quirks=3D0x2 The following patch solves the problem: diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index b869467..0614b28 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1295,6 +1295,13 @@ static struct da_quirk_entry da_quirk_table[] =3D { T_DIRECT, SIP_MEDIA_REMOVABLE, "MX", "MXUB3*", "*"}, /*quirks*/DA_Q_NO_RC16 }, + { + /* + * I-O Data USB Flash Disk + */ + { T_DIRECT, SIP_MEDIA_REMOVABLE, "I-O DATA", "USB Flash Dis= k*", "*"}, + /*quirks*/DA_Q_NO_RC16 + }, }; static disk_strategy_t dastrategy; After the patch the size is correctly detected. --=20 You are receiving this mail because: You are the assignee for the bug.=