<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>188521</bug_id>
          
          <creation_ts>2007-08-12 00:12 0000</creation_ts>
          <short_desc>I/O error when reading from Nikon D80 V1.01 camera</short_desc>
          <delta_ts>2007-09-01 13:28:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://marc.info/?l=linux-usb-devel&amp;m=118724455113424&amp;w=2</bug_file_loc>
          <status_whiteboard>InSVN, InCVS</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kscherer@primus.ca</reporter>
          <assigned_to>kernel@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>kscherer@primus.ca</who>
            <bug_when>2007-08-12 00:12:53 0000</bug_when>
            <thetext>This is closely related to bug #186326
Running kernel 2.6.22-gentoo-r2 and udev 114.
The Nikon D80 is listed in drivers/usb/storage/unusual_devs.h but the max version is 0x0100. I recently upgraded my camera to firmware version 1.01 and in order to be able to mount my camera I had to make the following small update.
338c338
&lt; UNUSUAL_DEV(  0x04b0, 0x0411, 0x0100, 0x0100,
---
&gt; UNUSUAL_DEV(  0x04b0, 0x0411, 0x0100, 0x0101,

Perhaps bumping the max version number to 0x0200 for this and other nikon cameras will avoid future patches like this one. 


Reproducible: Always

Steps to Reproduce:
1. Attach Nikon D80 and turn it on.
2. 
3.

Actual Results:  
Exact same error message as bug #186326

Expected Results:  
Should be able to mount the filesystem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-08-12 04:00:53 0000</bug_when>
            <thetext>Folks, do we really need *3* bugs for the very same issue? Why can&apos;t this be fixed for all affected devices at once?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mpagano@gentoo.org</who>
            <bug_when>2007-08-13 23:43:03 0000</bug_when>
            <thetext>Created an attachment (id=128003)
Formatted patch for potential upstream submission

This is your change formatted as a proper patch. Can you test this? If this works, we can send this upstream for eventually inclusion into the mainline kernel.

You can apply it to 2.6.22-r2 as follows:usb-storage-nikon-d80-firmware-upgrade.patch

cd /usr/src/linux (or proper directory where the source is located)
patch -p1 &lt; usb-storage-nikon-d80-firmware-upgrade.patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kscherer@primus.ca</who>
            <bug_when>2007-08-14 22:30:01 0000</bug_when>
            <thetext>I have verified that the patch works.
Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mpagano@gentoo.org</who>
            <bug_when>2007-08-15 00:42:09 0000</bug_when>
            <thetext>Konrad,

Thank-you very much.

Can you do one more thing?

Can you attach the contents of /proc/bus/usb/devices with your Nikon plugged in?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kscherer@primus.ca</who>
            <bug_when>2007-08-15 02:00:31 0000</bug_when>
            <thetext>Here is the output from /proc/bus/usb/devices for the Nikon.

T:  Bus=01 Lev=01 Prnt=01 Port=07 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=04b0 ProdID=0411 Rev= 1.01
S:  Manufacturer=NIKON
S:  Product=NIKON DSC D80
S:  SerialNumber=5007206
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

Thank you taking care of this. 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mpagano@gentoo.org</who>
            <bug_when>2007-08-15 14:56:53 0000</bug_when>
            <thetext>OK, thanks Konrad for your assistance. I have submitted the patch upstream so I am going to close this bug as such.

I&apos;ll keep an eye on the patch to see if gets traction but we shouldn&apos;t expect anything before 2.6.24 since the .23 window has been closed for a few weeks.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mpagano@gentoo.org</who>
            <bug_when>2007-08-16 20:21:01 0000</bug_when>
            <thetext>ok, the patch was accepted upstream, so hopefully 2.6.24 will see the change.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mpagano@gentoo.org</who>
            <bug_when>2007-08-29 23:03:39 0000</bug_when>
            <thetext>Reopened in anticipation of this patch eventually getting into genpatches for 2.6.22

Bug will be closed once the gentoo-sources revision containing the patch is released.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phreak@gentoo.org</who>
            <bug_when>2007-09-01 09:13:17 0000</bug_when>
            <thetext>genpatches-2.6.22-7 has been released yesterday, gentoo-sources-2.6.22-r6 is using it.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>128003</attachid>
            <date>2007-08-13 23:43 0000</date>
            <desc>Formatted patch for potential upstream submission</desc>
            <filename>usb-storage-nikon-d80-firmware-upgrade.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGEvZHJpdmVycy91c2Ivc3RvcmFnZS91bnVzdWFsX2RldnMuaAkyMDA3LTA4LTEzIDE5OjMy
OjI0LjAwMDAwMDAwMCAtMDQwMAorKysgYi9kcml2ZXJzL3VzYi9zdG9yYWdlL3VudXN1YWxfZGV2
cy5oCTIwMDctMDgtMTMgMTk6MzQ6NDAuMDAwMDAwMDAwIC0wNDAwCkBAIC0zNDIsNyArMzQyLDcg
QEAKIAkJVVNfRkxfRklYX0NBUEFDSVRZKSwKIAogLyogUmVwb3J0ZWQgYnkgRW1pbCBMYXJzc29u
IDxlbWlsQHN3aXAubmV0PiAqLwotVU5VU1VBTF9ERVYoICAweDA0YjAsIDB4MDQxMSwgMHgwMTAw
LCAweDAxMDAsCitVTlVTVUFMX0RFViggIDB4MDRiMCwgMHgwNDExLCAweDAxMDAsIDB4MDEwMSwK
IAkJIk5JS09OIiwKIAkJIk5JS09OIERTQyBEODAiLAogCQlVU19TQ19ERVZJQ0UsIFVTX1BSX0RF
VklDRSwgTlVMTCwK
</data>        

          </attachment>
    </bug>

</bugzilla>