Latest working kernel version: no idea Earliest failing kernel version: 2.6.26 Distribution: Debian Lenny Hardware Environment: Nikon D40 Software Environment: Problem Description: attach digital cam to laptop, but mass storage won't appear [90054.856980] usb 6-2: new high speed USB device using ehci_hcd and address 3 [90054.992173] usb 6-2: configuration #1 chosen from 1 choice [90054.992498] scsi4 : SCSI emulation for USB Mass Storage devices [90054.992860] usb 6-2: New USB device found, idVendor=04b0, idProduct=0413 [90054.992867] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [90054.992873] usb 6-2: Product: NIKON DSC D40 [90054.992877] usb 6-2: Manufacturer: NIKON [90054.992882] usb 6-2: SerialNumber: 6515036 [90054.992905] usb-storage: device found at 3 [90054.992909] usb-storage: waiting for device to settle before scanning [90060.015654] usb-storage: device scan complete [90060.016313] scsi 4:0:0:0: Direct-Access NIKON D40 1.11 PQ: 0 ANSI: 2 [90060.019967] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 MB) [90060.021293] sd 4:0:0:0: [sdb] Write Protect is off [90060.021293] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [90060.021293] sd 4:0:0:0: [sdb] Assuming drive cache: write through [90060.023396] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 MB) [90060.023396] sd 4:0:0:0: [sdb] Write Protect is off [90060.023396] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [90060.023396] sd 4:0:0:0: [sdb] Assuming drive cache: write through [90060.023396] sdb: sdb1 [90060.027544] sd 4:0:0:0: [sdb] Attached SCSI removable disk [90060.131516] end_request: I/O error, dev sdb, sector 16007168 [90060.131523] __ratelimit: 237 messages suppressed [90060.131526] Buffer I/O error on device sdb, logical block 16007168 [90060.134265] end_request: I/O error, dev sdb, sector 16007168 [90060.134265] Buffer I/O error on device sdb, logical block 16007168 [90060.138393] end_request: I/O error, dev sdb, sector 16007168 [90060.138393] Buffer I/O error on device sdb, logical block 16007168 [90060.139124] end_request: I/O error, dev sdb, sector 16007168 [90060.139124] Buffer I/O error on device sdb, logical block 16007168 [90060.139965] end_request: I/O error, dev sdb, sector 16007168 [90060.139965] Buffer I/O error on device sdb, logical block 16007168 [90060.154468] end_request: I/O error, dev sdb, sector 16007168 Steps to reproduce: see above,
Reply-To: akpm@linux-foundation.org (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Tue, 29 Jul 2008 15:59:17 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=11173 > > Summary: nikon d40 fails as mass storage > Product: Drivers > Version: 2.5 > KernelVersion: 2.6.26 > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > AssignedTo: greg@kroah.com > ReportedBy: max@stro.at > > > Latest working kernel version: no idea > Earliest failing kernel version: 2.6.26 > Distribution: Debian Lenny > Hardware Environment: Nikon D40 > Software Environment: > Problem Description: attach digital cam to laptop, but mass storage won't > appear > > [90054.856980] usb 6-2: new high speed USB device using ehci_hcd and address > 3 > [90054.992173] usb 6-2: configuration #1 chosen from 1 choice > [90054.992498] scsi4 : SCSI emulation for USB Mass Storage devices > [90054.992860] usb 6-2: New USB device found, idVendor=04b0, idProduct=0413 > [90054.992867] usb 6-2: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [90054.992873] usb 6-2: Product: NIKON DSC D40 > [90054.992877] usb 6-2: Manufacturer: NIKON > [90054.992882] usb 6-2: SerialNumber: 6515036 > [90054.992905] usb-storage: device found at 3 > [90054.992909] usb-storage: waiting for device to settle before scanning > [90060.015654] usb-storage: device scan complete > [90060.016313] scsi 4:0:0:0: Direct-Access NIKON D40 1.11 > PQ: 0 ANSI: 2 > [90060.019967] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 MB) > [90060.021293] sd 4:0:0:0: [sdb] Write Protect is off > [90060.021293] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > [90060.021293] sd 4:0:0:0: [sdb] Assuming drive cache: write through > [90060.023396] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 MB) > [90060.023396] sd 4:0:0:0: [sdb] Write Protect is off > [90060.023396] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > [90060.023396] sd 4:0:0:0: [sdb] Assuming drive cache: write through > [90060.023396] sdb: sdb1 > [90060.027544] sd 4:0:0:0: [sdb] Attached SCSI removable disk > [90060.131516] end_request: I/O error, dev sdb, sector 16007168 > [90060.131523] __ratelimit: 237 messages suppressed > [90060.131526] Buffer I/O error on device sdb, logical block 16007168 > [90060.134265] end_request: I/O error, dev sdb, sector 16007168 > [90060.134265] Buffer I/O error on device sdb, logical block 16007168 > [90060.138393] end_request: I/O error, dev sdb, sector 16007168 > [90060.138393] Buffer I/O error on device sdb, logical block 16007168 > [90060.139124] end_request: I/O error, dev sdb, sector 16007168 > [90060.139124] Buffer I/O error on device sdb, logical block 16007168 > [90060.139965] end_request: I/O error, dev sdb, sector 16007168 > [90060.139965] Buffer I/O error on device sdb, logical block 16007168 > [90060.154468] end_request: I/O error, dev sdb, sector 16007168 > > > Steps to reproduce: see above,
There's already an unusual_devs.h entry for this device. It probably needs it's range extended. 2.6.26 (according to lxr.linux.no) has an entry that ends at rev 1.10 What's the /proc/bus/usb/devices entry for this device? Matt On Tue, Jul 29, 2008 at 04:25:40PM -0700, Andrew Morton wrote: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Tue, 29 Jul 2008 15:59:17 -0700 (PDT) > bugme-daemon@bugzilla.kernel.org wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=11173 > > > > Summary: nikon d40 fails as mass storage > > Product: Drivers > > Version: 2.5 > > KernelVersion: 2.6.26 > > Platform: All > > OS/Version: Linux > > Tree: Mainline > > Status: NEW > > Severity: normal > > Priority: P1 > > Component: USB > > AssignedTo: greg@kroah.com > > ReportedBy: max@stro.at > > > > > > Latest working kernel version: no idea > > Earliest failing kernel version: 2.6.26 > > Distribution: Debian Lenny > > Hardware Environment: Nikon D40 > > Software Environment: > > Problem Description: attach digital cam to laptop, but mass storage won't > > appear > > > > [90054.856980] usb 6-2: new high speed USB device using ehci_hcd and > address 3 > > [90054.992173] usb 6-2: configuration #1 chosen from 1 choice > > [90054.992498] scsi4 : SCSI emulation for USB Mass Storage devices > > [90054.992860] usb 6-2: New USB device found, idVendor=04b0, idProduct=0413 > > [90054.992867] usb 6-2: New USB device strings: Mfr=1, Product=2, > > SerialNumber=3 > > [90054.992873] usb 6-2: Product: NIKON DSC D40 > > [90054.992877] usb 6-2: Manufacturer: NIKON > > [90054.992882] usb 6-2: SerialNumber: 6515036 > > [90054.992905] usb-storage: device found at 3 > > [90054.992909] usb-storage: waiting for device to settle before scanning > > [90060.015654] usb-storage: device scan complete > > [90060.016313] scsi 4:0:0:0: Direct-Access NIKON D40 > 1.11 > > PQ: 0 ANSI: 2 > > [90060.019967] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > [90060.021293] sd 4:0:0:0: [sdb] Write Protect is off > > [90060.021293] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > [90060.021293] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > [90060.023396] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > [90060.023396] sd 4:0:0:0: [sdb] Write Protect is off > > [90060.023396] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > [90060.023396] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > [90060.023396] sdb: sdb1 > > [90060.027544] sd 4:0:0:0: [sdb] Attached SCSI removable disk > > [90060.131516] end_request: I/O error, dev sdb, sector 16007168 > > [90060.131523] __ratelimit: 237 messages suppressed > > [90060.131526] Buffer I/O error on device sdb, logical block 16007168 > > [90060.134265] end_request: I/O error, dev sdb, sector 16007168 > > [90060.134265] Buffer I/O error on device sdb, logical block 16007168 > > [90060.138393] end_request: I/O error, dev sdb, sector 16007168 > > [90060.138393] Buffer I/O error on device sdb, logical block 16007168 > > [90060.139124] end_request: I/O error, dev sdb, sector 16007168 > > [90060.139124] Buffer I/O error on device sdb, logical block 16007168 > > [90060.139965] end_request: I/O error, dev sdb, sector 16007168 > > [90060.139965] Buffer I/O error on device sdb, logical block 16007168 > > [90060.154468] end_request: I/O error, dev sdb, sector 16007168 > > > > > > Steps to reproduce: see above, > > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 29 Jul 2008, Andrew Morton wrote: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Tue, 29 Jul 2008 15:59:17 -0700 (PDT) > bugme-daemon@bugzilla.kernel.org wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=11173 > > > > Summary: nikon d40 fails as mass storage > > Problem Description: attach digital cam to laptop, but mass storage won't > > appear > > > > [90054.856980] usb 6-2: new high speed USB device using ehci_hcd and > address 3 > > [90054.992173] usb 6-2: configuration #1 chosen from 1 choice > > [90054.992498] scsi4 : SCSI emulation for USB Mass Storage devices > > [90054.992860] usb 6-2: New USB device found, idVendor=04b0, idProduct=0413 > > [90054.992867] usb 6-2: New USB device strings: Mfr=1, Product=2, > > SerialNumber=3 > > [90054.992873] usb 6-2: Product: NIKON DSC D40 > > [90054.992877] usb 6-2: Manufacturer: NIKON > > [90054.992882] usb 6-2: SerialNumber: 6515036 > > [90054.992905] usb-storage: device found at 3 > > [90054.992909] usb-storage: waiting for device to settle before scanning > > [90060.015654] usb-storage: device scan complete > > [90060.016313] scsi 4:0:0:0: Direct-Access NIKON D40 > 1.11 > > PQ: 0 ANSI: 2 > > [90060.019967] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > [90060.021293] sd 4:0:0:0: [sdb] Write Protect is off > > [90060.021293] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > [90060.021293] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > [90060.023396] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > [90060.023396] sd 4:0:0:0: [sdb] Write Protect is off > > [90060.023396] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > [90060.023396] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > [90060.023396] sdb: sdb1 > > [90060.027544] sd 4:0:0:0: [sdb] Attached SCSI removable disk > > [90060.131516] end_request: I/O error, dev sdb, sector 16007168 > > [90060.131523] __ratelimit: 237 messages suppressed > > [90060.131526] Buffer I/O error on device sdb, logical block 16007168 > > [90060.134265] end_request: I/O error, dev sdb, sector 16007168 > > [90060.134265] Buffer I/O error on device sdb, logical block 16007168 > > [90060.138393] end_request: I/O error, dev sdb, sector 16007168 > > [90060.138393] Buffer I/O error on device sdb, logical block 16007168 > > [90060.139124] end_request: I/O error, dev sdb, sector 16007168 > > [90060.139124] Buffer I/O error on device sdb, logical block 16007168 > > [90060.139965] end_request: I/O error, dev sdb, sector 16007168 > > [90060.139965] Buffer I/O error on device sdb, logical block 16007168 > > [90060.154468] end_request: I/O error, dev sdb, sector 16007168 It's quite possible that the problem is fixed by this patch: http://marc.info/?l=linux-usb&m=121605692819391&w=2 I haven't seen any indication of the patch being merged yet. Phil? Greg? Alan Stern
On Wed, Jul 30, 2008 at 10:12:59AM -0400, Alan Stern wrote: > On Tue, 29 Jul 2008, Andrew Morton wrote: > > > (switched to email. Please respond via emailed reply-to-all, not via the > > bugzilla web interface). > > > > On Tue, 29 Jul 2008 15:59:17 -0700 (PDT) > > bugme-daemon@bugzilla.kernel.org wrote: > > > > > http://bugzilla.kernel.org/show_bug.cgi?id=11173 > > > > > > Summary: nikon d40 fails as mass storage > > > > Problem Description: attach digital cam to laptop, but mass storage won't > > > appear > > > > > > > [90054.856980] usb 6-2: new high speed USB device using ehci_hcd and > address 3 > > > [90054.992173] usb 6-2: configuration #1 chosen from 1 choice > > > [90054.992498] scsi4 : SCSI emulation for USB Mass Storage devices > > > [90054.992860] usb 6-2: New USB device found, idVendor=04b0, > idProduct=0413 > > > [90054.992867] usb 6-2: New USB device strings: Mfr=1, Product=2, > > > SerialNumber=3 > > > [90054.992873] usb 6-2: Product: NIKON DSC D40 > > > [90054.992877] usb 6-2: Manufacturer: NIKON > > > [90054.992882] usb 6-2: SerialNumber: 6515036 > > > [90054.992905] usb-storage: device found at 3 > > > [90054.992909] usb-storage: waiting for device to settle before scanning > > > [90060.015654] usb-storage: device scan complete > > > [90060.016313] scsi 4:0:0:0: Direct-Access NIKON D40 > 1.11 > > > PQ: 0 ANSI: 2 > > > [90060.019967] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > > [90060.021293] sd 4:0:0:0: [sdb] Write Protect is off > > > [90060.021293] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > > [90060.021293] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > > [90060.023396] sd 4:0:0:0: [sdb] 16007169 512-byte hardware sectors (8196 > MB) > > > [90060.023396] sd 4:0:0:0: [sdb] Write Protect is off > > > [90060.023396] sd 4:0:0:0: [sdb] Mode Sense: 0f 00 00 00 > > > [90060.023396] sd 4:0:0:0: [sdb] Assuming drive cache: write through > > > [90060.023396] sdb: sdb1 > > > [90060.027544] sd 4:0:0:0: [sdb] Attached SCSI removable disk > > > [90060.131516] end_request: I/O error, dev sdb, sector 16007168 > > > [90060.131523] __ratelimit: 237 messages suppressed > > > [90060.131526] Buffer I/O error on device sdb, logical block 16007168 > > > [90060.134265] end_request: I/O error, dev sdb, sector 16007168 > > > [90060.134265] Buffer I/O error on device sdb, logical block 16007168 > > > [90060.138393] end_request: I/O error, dev sdb, sector 16007168 > > > [90060.138393] Buffer I/O error on device sdb, logical block 16007168 > > > [90060.139124] end_request: I/O error, dev sdb, sector 16007168 > > > [90060.139124] Buffer I/O error on device sdb, logical block 16007168 > > > [90060.139965] end_request: I/O error, dev sdb, sector 16007168 > > > [90060.139965] Buffer I/O error on device sdb, logical block 16007168 > > > [90060.154468] end_request: I/O error, dev sdb, sector 16007168 > > It's quite possible that the problem is fixed by this patch: > > http://marc.info/?l=linux-usb&m=121605692819391&w=2 > > I haven't seen any indication of the patch being merged yet. Phil? > Greg? It's in my queue... thanks, greg k-h
On Tue, 29 Jul 2008, Matthew Dharm wrote: > There's already an unusual_devs.h entry for this device. It probably needs > it's range extended. 2.6.26 (according to lxr.linux.no) has an entry that > ends at rev 1.10 > > What's the /proc/bus/usb/devices entry for this device? > > Matt T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b0 ProdID=0413 Rev= 1.11 S: Manufacturer=NIKON S: Product=NIKON DSC D40 S: SerialNumber=6515036 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms right so the patch for rev 1.11 seems missing. would be cool to have it for stable too.
On Thu, Jul 31, 2008 at 12:21:39AM +0200, maximilian attems wrote: > On Tue, 29 Jul 2008, Matthew Dharm wrote: > > > There's already an unusual_devs.h entry for this device. It probably needs > > it's range extended. 2.6.26 (according to lxr.linux.no) has an entry that > > ends at rev 1.10 > > > > What's the /proc/bus/usb/devices entry for this device? > > > > Matt > > T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > P: Vendor=04b0 ProdID=0413 Rev= 1.11 > S: Manufacturer=NIKON > S: Product=NIKON DSC D40 > S: SerialNumber=6515036 > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA > I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage > E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms > E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms Yep, it's a rev 1.11 device. Care to submit a patch? Just look for the line in unusual_devs.h which contains 04b0 and 0413 -- it will have two 0110 values; change the second one to 0111 and it should work. Matt
On Thu, Jul 31, 2008 at 08:05:23AM -0700, Matthew Dharm wrote: > On Thu, Jul 31, 2008 at 12:21:39AM +0200, maximilian attems wrote: > > On Tue, 29 Jul 2008, Matthew Dharm wrote: > > > > > There's already an unusual_devs.h entry for this device. It probably > needs > > > it's range extended. 2.6.26 (according to lxr.linux.no) has an entry > that > > > ends at rev 1.10 > > > > > > What's the /proc/bus/usb/devices entry for this device? > > > > > > Matt > > > > T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > P: Vendor=04b0 ProdID=0413 Rev= 1.11 > > S: Manufacturer=NIKON > > S: Product=NIKON DSC D40 > > S: SerialNumber=6515036 > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA > > I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage > > E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms > > E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms > > Yep, it's a rev 1.11 device. > > Care to submit a patch? Just look for the line in unusual_devs.h which > contains 04b0 and 0413 -- it will have two 0110 values; change the second > one to 0111 and it should work. gregkh has already a queued patch for the issue. had no time to test it yet, but i assume it working. just wanted to confirm the data set. thanks
All USB bugs should be sent to the linux-usb@vger.kernel.org mailing list, and not entered into bugzilla. Please bring this issue up there, if it is still a problem in the latest kernel release.