public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] SCSI: limit mode sense usage
@ 2003-10-28 20:59 Pat LaVarre
  0 siblings, 0 replies; 8+ messages in thread
From: Pat LaVarre @ 2003-10-28 20:59 UTC (permalink / raw)
  To: linux-scsi

[[[ Sorry the GUI here at first transmitted this with the Subject prefix
"[usb-storage] " in place. ]]]

> > ... not clear to me what is the best way to take care of the devices that 
> > choke on page 3F ...
> Some of us have suggested substituting:
> -y "5A 00 08:00:00:00 00 00:1C 00" -i x1C // Mode Sense 10 of SBC/MMC
> Page x08 Cacheing for 8 byte header, optional 8 byte block descriptor,
> and xC byte standard page x08 length

>From a contemporaneous thread:

  - Host requests MODE_SENSE_10 and request 28 bytes
  - But the device only has 20 bytes, so it

Translating, we see that the terms 20 28 here mean what more bus traces
show as x14 x1C.  That again suggests talk-like-Windows might be:

-y "5A 00 08:00:00:00 00 00:1C 00" -i x1C

Those devices that only agree to copy in x14 = 20 bytes may be omitting
the optional 8 byte block descriptor, in accord with what I think I
remember MMC requires, though simultaneously in discord with what I'm
almost sure I remember SBC recommends.

Pat LaVarre



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [usb-storage] Re: [PATCH] SCSI: limit mode sense usage
  2003-10-28  3:51   ` Ronald Kuetemeier
@ 2003-10-28 15:03 Alan Stern
  2003-10-28 15:38 ` Pat LaVarre
  -1 siblings, 1 reply; 8+ messages in thread
From: Alan Stern @ 2003-10-28 15:03 UTC (permalink / raw)
  To: Ronald Kuetemeier
  Cc: Patrick Mansfield, SCSI development list, USB Storage List

On Mon, 27 Oct 2003, Ronald Kuetemeier wrote:

> Patrick,
> attached is a file (err_messages.txt) from an attempt to attach my Sony
> camera (S70) via usb-storage to my system. 
> It should include the relevant errors, if you want me to try something
> else let me know. It's the only usb and scsi device on that system, so I
> won't be able to kill anything else.
> I have also attached a file (succ_messages.txt) after I did:
> echo "Sony:Sony DSC:0x4000" > /proc/scsi/device_info
> which shows a successful (yeah) attempt to connect the camera to the
> system.
> If you need anything else, just let me know.
> Thanks for your help.
> Ronald
> BTW: I'm not on either list, if you (list users) have questions, need me
> to try something else. Please contact me directly.
> PS: Sorry for the cross posting, but maybe we can figure it out this
> way. 

As you probably already know, the page 3F MODE-SENSE request is made only 
to determine whether the device is read-only.  Most USB storage devices 
handle that request okay; there's only a handful that doesn't.  That's why 
we don't disable it by default.

It's not clear to me what is the best way to take care of the devices that 
choke on page 3F.  Should we use a special flag for those devices or 
should we disable it entirely?

Alan Stern


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <1067293080.1075.8.camel@ronald.kuetemeier.com>]

end of thread, other threads:[~2003-10-29 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-28 20:59 [PATCH] SCSI: limit mode sense usage Pat LaVarre
  -- strict thread matches above, loose matches on Subject: below --
2003-10-28 15:03 [usb-storage] " Alan Stern
2003-10-28 15:38 ` Pat LaVarre
2003-10-28 20:56   ` Pat LaVarre
2003-10-28 22:28     ` Alan Stern
2003-10-28 22:54       ` Pat LaVarre
2003-10-29 14:49         ` Alan Stern
2003-10-29 15:43           ` Pat LaVarre
     [not found] <1067293080.1075.8.camel@ronald.kuetemeier.com>
     [not found] ` <20031027145531.A2130@beaverton.ibm.com>
2003-10-28  3:51   ` Ronald Kuetemeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox