[haiku-commits] r42145 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy

  • From: mmlr@xxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 13 Jun 2011 04:15:48 +0200 (CEST)

Author: mmlr
Date: 2011-06-13 04:15:48 +0200 (Mon, 13 Jun 2011)
New Revision: 42145
Changeset: https://dev.haiku-os.org/changeset/42145

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp
Log:
usb_floppy is for the most part a copy of usb_disk and should probably be merged
into it again (adding generic CBI support). It is so much of a copy even that it
still claimed to have the original 3 support descriptors while in fact it only
has one. Since the memory beyond that one support descriptor was probably just
zeros, making them complete wildcards usb_support_descriptor wise, this lead to
every single USB device being handed to the usb_floppy device added hook.


Modified: 
haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp     
2011-06-13 02:10:48 UTC (rev 42144)
+++ haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp     
2011-06-13 02:15:48 UTC (rev 42145)
@@ -1245,7 +1245,7 @@
                return result;
        }
 
-       gUSBModule->register_driver(DRIVER_NAME, supportedDevices, 3, NULL);
+       gUSBModule->register_driver(DRIVER_NAME, supportedDevices, 1, NULL);
        gUSBModule->install_notify(DRIVER_NAME, &notifyHooks);
        return B_OK;
 }


Other related posts:

  • » [haiku-commits] r42145 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_floppy - mmlr