From: Andries Brouwer <Andries.Brouwer@cwi.nl>
To: Patrick Mansfield <patmans@us.ibm.com>
Cc: Andries Brouwer <Andries.Brouwer@cwi.nl>,
Alan Stern <stern@rowland.harvard.edu>,
Matthew Dharm <mdharm-usb@one-eyed-alien.net>,
USB Storage List <usb-storage@lists.one-eyed-alien.net>,
SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [usb-storage] Time to allow MODE SENSE for USB disk-type storage devices?
Date: Wed, 10 Mar 2004 10:13:12 +0100 [thread overview]
Message-ID: <20040310091312.GA25632@apps.cwi.nl> (raw)
In-Reply-To: <20040309174353.A15780@beaverton.ibm.com>
On Tue, Mar 09, 2004 at 05:43:53PM -0800, Patrick Mansfield wrote:
> Andries or others -
>
> Can you elaborate on this comment in sd.c? Do you have a device that hangs
> with the current kernel when asking for more than 4 bytes here? Is it USB
> storage?
>
> /*
> * First attempt: ask for all pages (0x3F), but only 4 bytes.
> * We have to start carefully: some devices hang if we ask
> * for more than is available.
> */
> res = sd_do_mode_sense(SRpnt, 0, 0x3F, buffer, 4, &data);
>
> Per this changeset:
>
> http://linux.bkbits.net:8080/linux-2.5/diffs/drivers/scsi/sd.c@1.53?nav=index.html|src/|src/drivers|src/drivers/scsi|hist/drivers/scsi/sd.c
>
> -- Patrick Mansfield
Yes, I changed this code twice, I think, each time because I acquired
a USB device that did not work. The state that I left things in
was carefully crafted in such a way that each of my half a dozen or so
USB card reader devices worked. In the meantime I got a few more readers,
and they all worked (late 2.5).
Of course there is no particular interest in my selection of devices,
and no reason to expect that code exists that works on everything
on the market.
An oft repeated maxim is: do as Windows does - and that may be
a good idea. On the other hand, half of my devices come with their
own drivers, and also fail under Windows without their own driver.
The conclusion is that yes, if you change something here then
almost certainly there will be devices that are broken by the
change, but the change may still be an improvement if there
are more devices that were broken and now function.
Andries
next prev parent reply other threads:[~2004-03-10 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 16:05 Time to allow MODE SENSE for USB disk-type storage devices? Alan Stern
2004-03-08 17:55 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storage de vices? Pat LaVarre
2004-03-08 21:16 ` [usb-storage] Time to allow MODE SENSE for USB disk-typestorage " Pat LaVarre
2004-03-08 20:13 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storage devices? Andries Brouwer
2004-03-10 1:43 ` Patrick Mansfield
2004-03-10 9:13 ` Andries Brouwer [this message]
2004-03-10 16:56 ` Alan Stern
2004-03-10 18:53 ` [usb-storage] Time to allow MODE SENSE for USB disk-type storag edevices? Pat LaVarre
2004-03-10 20:24 ` Alan Stern
2004-03-10 20:58 ` Pat LaVarre
2004-03-10 22:43 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040310091312.GA25632@apps.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=linux-scsi@vger.kernel.org \
--cc=mdharm-usb@one-eyed-alien.net \
--cc=patmans@us.ibm.com \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox