NetBSD-Bugs archive

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

kern/49809: Lumix camera umass cannot attach



>Number:         49809
>Category:       kern
>Synopsis:       Lumix camera doesn't attach as umass
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 01 18:05:02 +0000 2015
>Originator:     Patrick Welche
>Release:        NetBSD 7.99.8
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
NetBSD-7.99.8/amd64 of Apr 1 2015
>Description:

After application of usbdevs.diff (attached below):

umass0: Panasonic (Matsushita) Lumix Camera DMC-FS45, rev 2.00/1.00, addr 6
umass0: using SCSI over Bulk-Only
umass0: Get Max Lun
umass0: Get Max Lun failed: IOERROR
umass0: unable to get Max Lun: IOERROR
umass0: WARNING: power management not supported
umass0: detached
umass_disco
umass0: detached
umass0: at uhub2 port 3 (addr 6) disconnected

After application of umass_quirks.diff:

umass0 at uhub2 port 3 configuration 1 interface 0
umass0: Panasonic (Matsushita) Lumix Camera DMC-FS45, rev 2.00/1.00, addr 6
umass0: PanasoSCSI over Bulk-Only
umass0: opening iface 0xfffffe81086ecc00 epaddr 1 for BULKOUT
umass0: opening iface 0xfffffe81086ecc00 epaddr 130 for BULKIN
umass0: umass_attach_bus: SCSI
scsibus0 at umass0: 2 targets, 1 lun per target
umass0: Attach finished
umass0: umass_scsi_cmd: at 1427903614.491611: 0:0 xs=0xfffffe810823ff00 cmd=0x12 datalen=36 (quirks=0x8000, poll=0)
umass_scsi_cmd: async dir=1, cmdlen=6 datalen=36
umass0: umass_bbb_transfer cmd=0x12
umass0: CBW 43: cmdlen=6 (0x12000000240000000000), data = 36 bytes, dir = in
umass0: start xfer buffer=0xfffffe814ceba5bc buflen=31 flags=0x0 timeout=15000
umass0: Handling BBB state 1 (BBB CBW), xfer=0xfffffe81488b58a8, IOERROR
umass0: failed to send CBW
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xfffffe8108181170, IOERROR
umass0: Handling BBB sed, IOERROR
umass0: Handling Boint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xfffffe81081812e0, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x01 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xfffffe8108181a10, IOERROR
umass0: Handling BBB clear stall failed, IOERROR
umass_scsipi_cb: at 1427903614.493434, delta=1823: xs=0xfffffe810823ff00 residue=36 status=3
umass_scsipi_cb: at 1427903614.493434: return xs->error=8, xs->xs_status=0x0 xs->resid=36
umass0: detached
scsibus0: detached
umass_disco
umass0: detached
umass0: at uhub2 port 3 (addr 6) disconnected

So it really isn't happy.


usbdevs.diff:

Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.693
diff -u -r1.693 usbdevs
--- usbdevs	17 Mar 2015 08:14:30 -0000	1.693
+++ usbdevs	1 Apr 2015 15:57:09 -0000
@@ -2475,6 +2475,7 @@
 product PANASONIC KXLCB20AN	0x0d0a	CD-R Drive KXL-CB20AN
 product PANASONIC KXLCB35AN	0x0d0e	DVD-ROM & CD-R/RW
 product PANASONIC SDCAAE	0x1b00	MultiMediaCard Adapter
+product PANASONIC DMCFS45	0x2372	Lumix Camera DMC-FS45
 product PANASONIC TYTP50P6S	0x3900	TY-TP50P6-S 50in Touch Panel
 
 /* PARA Industrial products */


umass_quirks.diff:

Index: umass_quirks.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/umass_quirks.c,v
retrieving revision 1.96
diff -u -r1.96 umass_quirks.c
--- umass_quirks.c	12 Sep 2014 16:40:38 -0000	1.96
+++ umass_quirks.c	1 Apr 2015 15:57:41 -0000
@@ -171,6 +171,13 @@
 	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
 	  NULL, NULL
 	},
+	{ { USB_VENDOR_PANASONIC, USB_PRODUCT_PANASONIC_DMCFS45 },
+	  UMASS_WPROTO_BBB, UMASS_CPROTO_UNSPEC,
+	  UMASS_QUIRK_NOGETMAXLUN,
+	  0,
+	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
+	  NULL, NULL
+	},
 
 	/*
 	 * The DiskOnKey does not reject commands it doesn't recognize in a
>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:
	<how to correct or work around the problem, if known (multiple lines)>



Home | Main Index | Thread Index | Old Index