* Re: [Linux-usb-users] USB floppy drive no longer works under 2.6.15-rc6
[not found] ` <20051228165157.GA13712@one-eyed-alien.net>
@ 2006-01-07 18:09 ` Jan De Luyck
0 siblings, 0 replies; 3+ messages in thread
From: Jan De Luyck @ 2006-01-07 18:09 UTC (permalink / raw)
To: Matthew Dharm; +Cc: linux-usb-users, linux-kernel
On Wednesday 28 December 2005 17:51, Matthew Dharm wrote:
> Can you try without ehci_hcd loaded? The device is only full-speed anyway,
> so there should be no performance loss (like floppy has any performance to
> lose...)
Sorry for the delay, I was on some hard-needed vacation :)
I've tried it with ehci_hcd unloaded, but it shows the same problems, only
with the same style of messages.
Anything else to try?
Jan
--
The real purpose of books is to trap the mind into doing its own thinking.
-- Christopher Morley
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-usb-users] USB floppy drive no longer works under 2.6.15-rc6
[not found] <20060110051516.GA20407@one-eyed-alien.net>
@ 2006-01-10 15:50 ` Alan Stern
2006-01-10 17:38 ` Matthew Dharm
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2006-01-10 15:50 UTC (permalink / raw)
To: Matthew Dharm; +Cc: Phil Dibowitz, Jan De Luyck, SCSI development list
[Moved to linux-scsi]
On Mon, 9 Jan 2006, Matthew Dharm wrote:
> A long time ago, I noticed a quirk of the UFI specification in regards to
> one of the options for how to indicate a LUN isn't there. Something about
> a special PDT, I think, in the INQUIRY respose. I don't recall the
> details, but I do recall thinking something along the lines of "that's
> odd.. and it's going to confuse the SCSI core."
>
> If I can find some time to search for that oddity of spec, then modify the
> UFI protocol handler to translate that oddity into a result code the SCSI
> core can understand, you can close the #2 case.
I see what you mean. The UFI spec requires a device to return 0x1f in the
first byte of the INQUIRY response if no device is present at the LUN.
That's Peripheral Qualifier = 0 and PDT = 0x1f (unknown or no device).
Now SCSI-2 requires the value to be 0x7f to indicate no device, but UFI
also requires the returned SCSI level to be 0, and I don't know what
SCSI-0 says about reporting no device at a LUN.
Does anybody among the SCSI developers have the answer? Should
scsi_probe_and_add_lun() check for (result[0] & 0x1f) == 0x1f whenever
(result[2] & 0x07) == 0?
If not, perhaps usb-storage should alter the returned value and max_lun
for a UFI device whenever we see 0x1f.
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-usb-users] USB floppy drive no longer works under 2.6.15-rc6
2006-01-10 15:50 ` Alan Stern
@ 2006-01-10 17:38 ` Matthew Dharm
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Dharm @ 2006-01-10 17:38 UTC (permalink / raw)
To: Alan Stern; +Cc: Phil Dibowitz, Jan De Luyck, SCSI development list
[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]
On Tue, Jan 10, 2006 at 10:50:15AM -0500, Alan Stern wrote:
> [Moved to linux-scsi]
>
> On Mon, 9 Jan 2006, Matthew Dharm wrote:
>
> > A long time ago, I noticed a quirk of the UFI specification in regards to
> > one of the options for how to indicate a LUN isn't there. Something about
> > a special PDT, I think, in the INQUIRY respose. I don't recall the
> > details, but I do recall thinking something along the lines of "that's
> > odd.. and it's going to confuse the SCSI core."
> >
> > If I can find some time to search for that oddity of spec, then modify the
> > UFI protocol handler to translate that oddity into a result code the SCSI
> > core can understand, you can close the #2 case.
>
> I see what you mean. The UFI spec requires a device to return 0x1f in the
> first byte of the INQUIRY response if no device is present at the LUN.
> That's Peripheral Qualifier = 0 and PDT = 0x1f (unknown or no device).
> Now SCSI-2 requires the value to be 0x7f to indicate no device, but UFI
> also requires the returned SCSI level to be 0, and I don't know what
> SCSI-0 says about reporting no device at a LUN.
SCSI-0 doesn't exist. SCSI level 0 means "not really SCSI".
> Does anybody among the SCSI developers have the answer? Should
> scsi_probe_and_add_lun() check for (result[0] & 0x1f) == 0x1f whenever
> (result[2] & 0x07) == 0?
>
> If not, perhaps usb-storage should alter the returned value and max_lun
> for a UFI device whenever we see 0x1f.
That was my intention. I've just never gotten around to doing it and
testing it.
Matt
--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver
Ye gods! I have feet??!
-- Dust Puppy
User Friendly, 12/4/1997
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-10 17:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200512281251.03236.lkml@kcore.org>
[not found] ` <20051228165157.GA13712@one-eyed-alien.net>
2006-01-07 18:09 ` [Linux-usb-users] USB floppy drive no longer works under 2.6.15-rc6 Jan De Luyck
[not found] <20060110051516.GA20407@one-eyed-alien.net>
2006-01-10 15:50 ` Alan Stern
2006-01-10 17:38 ` Matthew Dharm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.