[PATCH] USB: Storage: Add unusual_devs entry for VTech Kidizoom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This device suffers from the off-by-one error when reporting the capacity,
so add entry with US_FL_FIX_CAPACITY.

Signed-off-by: Nick Holloway <Nick.Holloway@xxxxxxxxxxxxxx>
---
This is another device that misreports the capacity, and leads to I/O
errors being reported when connected.

    sd 2:0:0:0: [sdb] 429569 512-byte logical blocks: (219 MB/209 MiB)
    sd 2:0:0:0: [sdb] Write Protect is off
    sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
    sd 2:0:0:0: [sdb] Assuming drive cache: write through
    sd 2:0:0:0: [sdb] Assuming drive cache: write through
     sdb: sdb1
    sd 2:0:0:0: [sdb] Assuming drive cache: write through
    sd 2:0:0:0: [sdb] Attached SCSI removable disk
    sd 2:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    sd 2:0:0:0: [sdb] Sense Key : Illegal Request [current] 
    sd 2:0:0:0: [sdb] Add. Sense: Logical block address out of range
    sd 2:0:0:0: [sdb] CDB: Read(10): 28 00 00 06 8e 00 00 00 01 00
    end_request: I/O error, dev sdb, sector 429568
    Buffer I/O error on device sdb, logical block 429568

With this entry added, I get:

    sd 2:0:0:0: [sdb] Adjusting the sector count from its reported value: 429569
    sd 2:0:0:0: [sdb] 429568 512-byte logical blocks: (219 MB/209 MiB)

 drivers/usb/storage/unusual_devs.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index fcc1e32..346d3a8 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -1388,6 +1388,13 @@ UNUSUAL_DEV(  0x0f19, 0x0105, 0x0100, 0x0100,
 		USB_SC_DEVICE, USB_PR_DEVICE, NULL,
 		US_FL_IGNORE_RESIDUE ),
 
+/* Submitted by Nick Holloway */
+UNUSUAL_DEV( 0x0f88, 0x042e, 0x0100, 0x0100,
+		"VTech",
+		"Kidizoom",
+		USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+		US_FL_FIX_CAPACITY ),
+
 /* Reported by Michael Stattmann <michael@xxxxxxxxxxxxx> */
 UNUSUAL_DEV(  0x0fce, 0xd008, 0x0000, 0x0000,
 		"Sony Ericsson",
-- 
1.7.1

-- 
 `O O'  | Nick.Holloway@xxxxxxxxxxxxxx
// ^ \\ | http://www.pyrites.org.uk/
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux