Greg,

Please apply the attached patch from Grant to add a US_FL_FIX_CAPACITY flag
to another device in unusual_devs. From/Signed-off-by/description/etc.
below. I've re-diffed it against the latest git snapshot and compile-tested it.

Thanks Grant for the patch.

-- 
Phil Dibowitz                             [EMAIL PROTECTED]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming


From: Grant Grundler <[EMAIL PROTECTED]>

Add "FIX_CAPACITY" entry for HP Photosmart r707 Camera in "Disk" mode.
Camera will wedge when /lib/udev/vol_id attempts to access the last sector,
EIO gets reported to dmesg, and block device is marked "offline" (it is).
Reproduced vol_id behavior with:
	"dd if=/dev/sda of=/dev/null skip=60800 count=1"

Signed-off-by: Grant Grundler <[EMAIL PROTECTED]>
Signed-off-by: Phil Dibowitz <[EMAIL PROTECTED]>
---

 linux-2.6.24-rc8-git6-dev-phil/drivers/usb/storage/unusual_devs.h |    8 ++++++++
 1 file changed, 8 insertions(+)

diff -puN drivers/usb/storage/unusual_devs.h~unusual_hp_r707 drivers/usb/storage/unusual_devs.h
--- linux-2.6.24-rc8-git6-dev/drivers/usb/storage/unusual_devs.h~unusual_hp_r707	2008-01-23 21:23:14.000000000 -0800
+++ linux-2.6.24-rc8-git6-dev-phil/drivers/usb/storage/unusual_devs.h	2008-01-23 21:23:43.000000000 -0800
@@ -86,6 +86,14 @@ UNUSUAL_DEV(  0x03f0, 0x0307, 0x0001, 0x
 		US_SC_8070, US_PR_USBAT, init_usbat_cd, 0),
 #endif
 
+/* Reported by Grant Grundler <[EMAIL PROTECTED]>
+ * HP r707 camera in "Disk" mode with 2.00.23 or 2.00.24 firmware.
+ */
+UNUSUAL_DEV(  0x03f0, 0x4002, 0x0001, 0x0001,
+		"HP",
+		"PhotoSmart R707",
+		US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_FIX_CAPACITY),
+
 /* Reported by Sebastian Kapfer <[EMAIL PROTECTED]>
  * and Olaf Hering <[EMAIL PROTECTED]> (different bcd's, same vendor/product)
  * for USB floppies that need the SINGLE_LUN enforcement.
_

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to