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 previous info about the media. The upper SCSI layer will take care of media change detection if you do it right. Matt On Mon, Apr 22, 2002 at 12:25:04PM -0700, Haefliger, Juerg wrote: > 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 both) of the slots? Should I report that the target is not capable of >supporting the LUN on an 'INQUIRY' command, or should I return 'MEDIUM NOT PRESENT' >on a 'TEST UNIT READY' command, or any other method? > And what happens if the device is reattached with a different memory configuration? >I noticed, that none of the INQUIRY/TEST UNIT READY commands are executed in this >case. What is the correct way to reset the device configuration? > > thanks > ...juerg > > _______________________________________________ > [EMAIL PROTECTED] > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver Why am I talking to a toilet brush? -- CEO User Friendly, 4/30/1998
msg06051/pgp00000.pgp
Description: PGP signature
