[PATCH] Panasonic DMC-FS3 reports correct capacity

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

 



Hi,

I've noticed that my Panasonic DMC-FS3 reports it's capacity correctly
but gets blacklisted by a catch-all entry for 04da:2372. I've written a
whitelist entry just for my camera and now it's working properly.
No messages like "sdc: p1 size 7733248 limited to end of disk" appear
with the attached patch.

How can I test if my camera is affected by US_FL_NOT_LOCKABLE? Note that
the camera exposes it's storage as read only.

Thanks,
Gregor

The lsusb output:

Bus 002 Device 006: ID 04da:2372 Panasonic (Matsushita) Lumix DMC-FZ10
Camera
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x04da Panasonic (Matsushita)
  idProduct          0x2372 Lumix DMC-FZ10 Camera
  bcdDevice            0.10
  iManufacturer           1 Panasonic
  iProduct                2 DMC-FS3
  iSerial                 3 0000000000000000001X0208281901
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)


Signed-off-by: Gregor Jasny <gjasny@xxxxxxxxxxxxxx>
---
diff --git a/drivers/usb/storage/unusual_devs.h
b/drivers/usb/storage/unusual_devs.h
index 443122f..1626858 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -426,6 +426,13 @@ UNUSUAL_DEV(  0x04da, 0x0d05, 0x0000, 0x0000,
 		"CD-R/RW Drive",
 		US_SC_8070, US_PR_CB, NULL, 0),

+/* Reported by Gregor Jasny <gjasny@xxxxxxxxxxxxxx> */
+COMPLIANT_DEV(0x04da, 0x02372, 0x0010, 0x0010,
+		"Panasonic",
+		"DMC-FS3",
+		US_SC_DEVICE, US_PR_DEVICE, NULL,
+		US_FL_CAPACITY_OK ),
+
 /* Reported by Adriaan Penning <a.penning@xxxxxxxx> */
 UNUSUAL_DEV(  0x04da, 0x2372, 0x0000, 0x9999,
 		"Panasonic",
--
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