* Ambiguous dupe in libusual device list
@ 2008-06-26 17:32 Ben Collins
2008-06-26 19:10 ` [usb-storage] " Matthew Dharm
0 siblings, 1 reply; 2+ messages in thread
From: Ben Collins @ 2008-06-26 17:32 UTC (permalink / raw)
To: usb-storage; +Cc: kernel list
In unusual_devs.h, there are these two entries:
#ifdef CONFIG_USB_STORAGE_DATAFAB
/* Submitted by Olaf Hering <olh@suse.de> */
UNUSUAL_DEV( 0x07c4, 0xa109, 0x0000, 0xffff,
"Datafab Systems, Inc.",
"USB to CF + SM Combo (LC1)",
US_SC_SCSI, US_PR_DATAFAB, NULL,
0 ),
#endif
#ifdef CONFIG_USB_STORAGE_SDDR55
/* SM part - aeb <Andries.Brouwer@cwi.nl> */
UNUSUAL_DEV( 0x07c4, 0xa109, 0x0000, 0xffff,
"Datafab Systems, Inc.",
"USB to CF + SM Combo (LC1)",
US_SC_SCSI, US_PR_SDDR55, NULL,
US_FL_SINGLE_LUN ),
#endif
If I'm not mistaken (and because libusual is pretty well abstracted, I
might be) this is an ambiguous dupe that isn't resolved with any
checking (IOW, the second entry is likely never used), at least when
both config options are enabled.
If that's not the case, then maybe a comment would be in order? If the
case is that these two options should not be enabled at the same time,
then perhaps some Kconfig magic is required.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [usb-storage] Ambiguous dupe in libusual device list
2008-06-26 17:32 Ambiguous dupe in libusual device list Ben Collins
@ 2008-06-26 19:10 ` Matthew Dharm
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Dharm @ 2008-06-26 19:10 UTC (permalink / raw)
To: Ben Collins; +Cc: usb-storage, kernel list
[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]
On Thu, Jun 26, 2008 at 01:32:36PM -0400, Ben Collins wrote:
> In unusual_devs.h, there are these two entries:
>
> #ifdef CONFIG_USB_STORAGE_DATAFAB
> /* Submitted by Olaf Hering <olh@suse.de> */
> UNUSUAL_DEV( 0x07c4, 0xa109, 0x0000, 0xffff,
> #ifdef CONFIG_USB_STORAGE_SDDR55
> /* SM part - aeb <Andries.Brouwer@cwi.nl> */
> UNUSUAL_DEV( 0x07c4, 0xa109, 0x0000, 0xffff,
> If I'm not mistaken (and because libusual is pretty well abstracted, I
> might be) this is an ambiguous dupe that isn't resolved with any
> checking (IOW, the second entry is likely never used), at least when
> both config options are enabled.
Reading the code, it looks like it's a bit more complex than that.
The first entry enables use of a driver (if it's compiled it) which can
drive both slots on a dual-slot device.
The first entry enables use of a driver (if it's compiled it) which can
only drive one slot on a dual-slot device.
This is really the type of thing which shows that we need some sort of
semi-generic "preference" mechanism for driver binding...
Matt
--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver
M: No, Windows doesn't have any nag screens.
C: Then what are those blue and white screens I get every day?
-- Mike and Cobb
User Friendly, 1/4/1999
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-26 19:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26 17:32 Ambiguous dupe in libusual device list Ben Collins
2008-06-26 19:10 ` [usb-storage] " Matthew Dharm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox