Re: [linux-usb-devel] Question on mass storage and LUN

2002-04-29 Thread Guest section DW
On Mon, Apr 29, 2002 at 11:47:12AM -0700, Haefliger, Juerg wrote: > I tried to implement Matt's suggestions but I'm having problems. > When an invalid logical unit is selected, i.e., there is no memory card > in that particular slot, the driver terminates any command except > REQUEST SENSE with C

Re: [linux-usb-devel] Question on mass storage and LUN

2002-04-29 Thread Matthew Dharm
eping. > kernel: sdc : READ CAPACITY failed. > kernel: sdc : status = 1, message = 00, host = 0, driver = 08 > kernel: Info fld=0x0, Current sd00:00: sense key Not Ready > kernel: Additional sense indicates Medium not present > kernel: sdc : block size assumed to be 512 bytes, disk

RE: [linux-usb-devel] Question on mass storage and LUN

2002-04-29 Thread Haefliger, Juerg
08:20, sector 0 kernel: I/O error: dev 08:20, sector 0 kernel: unable to read partition table -Original Message- From: Matthew Dharm [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 2:33 PM To: Haefliger, Juerg Cc: [EMAIL PROTECTED] Subject: Re: [linux-usb-devel] Question on mass

Re: [linux-usb-devel] Question on mass storage and LUN

2002-04-22 Thread Matthew Dharm
Return MEDIUM_NOT_PRESENT on any condition which requires media access. That is, INQUIRY should always work. Also, remember to return "not ready to ready transition" on the first media access command, so the host knows that the device was just (re-)attached, and thus we have to throw away all pre

[linux-usb-devel] Question on mass storage and LUN

2002-04-22 Thread Haefliger, Juerg
Hello, I'm currently writting a driver for the Compaq PA-2 MP3 player. This device can hold up to 2 memory cards and I'm implementing the driver such that is treats the PA-2 as dual-LUN device. The question now is how/when to I report to the upper layer if there is no memory card in one (or bo