2006-03-14 23:03:00

by Daniel Drake

[permalink] [raw]
Subject: Re: HP CDRW CD4E hasn't worked since 2.6.11

Greg KH wrote:
> On Tue, Mar 14, 2006 at 02:25:39PM +1100, Peter Chubb wrote:
>> Hi Greg,
>> The changes to the usb/storage/shuttle_usbat.c to accomodate
>> flash drives appears to have broken CD R/W support.
>>
>> Sorry it took me so long to report this; I don't use this particular
>> device very often.
>>
>> Compiling with verbose debug shows that the IDENTIFY_PACKET_DEVICE
>> command is failing, so the device is mis-identified as a flash drive.
>>
>> I went to the start of the Git history in Linus's tree; 2.6.12 also
>> fails.

I think it may have worked for you on-and-off in the middle of those
changes. It's been a nightmare trying to get both device types
identified correctly.

>> I tried to force the detection, to see if I could get past that point,
>> but there are still problems -- see the attached logs -- the device is
>> recognised as a scsi disk not cdrom.

Can you detail your changes? I'm not convinced by this, because I have
been careful not to change any HP8200-specific code (except the
detection), and also, I don't think it is possible for the device to
appear as a disk if the HP8200 codepath is being followed.

There was one other report of this but my emails to that reporter were
bouncing so I left this in my todo mailbox.

Daniel


2006-03-14 23:08:53

by Peter Chubb

[permalink] [raw]
Subject: Re: HP CDRW CD4E hasn't worked since 2.6.11



--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia


Attachments:
shuttle (5.48 kB)

2006-03-14 23:30:23

by Daniel Drake

[permalink] [raw]
Subject: Re: HP CDRW CD4E hasn't worked since 2.6.11

--- linux/drivers/usb/storage/shuttle_usbat.c.orig 2006-03-14 23:36:57.000000000 +0000
+++ linux/drivers/usb/storage/shuttle_usbat.c 2006-03-14 23:37:18.000000000 +0000
@@ -855,6 +855,9 @@ static int usbat_identify_device(struct
return rc;
msleep(500);

+ info->devicetype = USBAT_DEV_FLASH;
+ return USB_STOR_TRANSPORT_GOOD;
+
/*
* In attempt to distinguish between HP CDRW's and Flash readers, we now
* execute the IDENTIFY PACKET DEVICE command. On ATA devices (i.e. flash


Attachments:
patch (491.00 B)

2006-03-14 23:37:28

by Daniel Drake

[permalink] [raw]
Subject: Re: HP CDRW CD4E hasn't worked since 2.6.11

Daniel Drake wrote:
> --- linux/drivers/usb/storage/shuttle_usbat.c.orig 2006-03-14 23:36:57.000000000 +0000
> +++ linux/drivers/usb/storage/shuttle_usbat.c 2006-03-14 23:37:18.000000000 +0000
> @@ -855,6 +855,9 @@ static int usbat_identify_device(struct
> return rc;
> msleep(500);
>
> + info->devicetype = USBAT_DEV_FLASH;
> + return USB_STOR_TRANSPORT_GOOD;
> +
> /*
> * In attempt to distinguish between HP CDRW's and Flash readers, we now
> * execute the IDENTIFY PACKET DEVICE command. On ATA devices (i.e. flash


Oops. that was supposed to be USBAT_DEV_HP8200

Daniel