Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 11:28:48 +0000
From:      David S Madole <david@madole.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/34789: PNY brand USB flash readers need 10 byte commands
Message-ID:  <E16ZsA0-000HEd-00@adsl-113.cshore.com>

next in thread | raw e-mail | index | archive | help

>Number:         34789
>Category:       kern
>Synopsis:       PNY brand USB flash readers need 10 byte commands
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 10 03:30:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     David S Madole
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:

System: FreeBSD 4.5-RELEASE #11 i386

>Description:

PNY brand USB flash readers, both compactflash and smartmedia do not
work correctly. These do not seem to have a specific part or model
number. The UPC codes are 5149221159 (SM) and 514922115 (CF).

The cause is the same thing that apparently affects a lot of other USB
flash readers: these need 10-byte read commands rather than 6-byte.
Adding these to the quirks table in scsi_da.c seems to fix the
problem.

>How-To-Repeat:

Install one of these and do I/O. All calls succeed, but it appears that
you always read or write the first two sectors on the device.

>Fix:

*** scsi_da.c.orig	Sat Feb  9 11:32:30 2002
--- scsi_da.c	Sat Feb  9 00:24:30 2002
***************
*** 345,350 ****
--- 345,366 ----
  		 */
  		{T_DIRECT, SIP_MEDIA_REMOVABLE, "DIVA USB", "Media Reader","*"},
  		/*quirks*/ DA_Q_NO_6_BYTE
+ 	},
+ 	{
+ 		/*
+ 		 * PNY Compact Flash Reader (apparently made by Sandisk)
+ 		 * Doesn't work correctly with 6 byte reads/writes.
+ 		 */
+ 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "SanDisk", "SDCFB-32","*"},
+ 		/*quirks*/ DA_Q_NO_6_BYTE
+ 	},
+ 	{
+ 		/*
+ 		 * PNY Smart Media Reader (possibly made by Shuttle)
+ 		 * Doesn't work correctly with 6 byte reads/writes.
+ 		 */
+ 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "SM Media", "-Shuttle","*"},
+ 		/*quirks*/ DA_Q_NO_6_BYTE
  	}
  };

-------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16ZsA0-000HEd-00>