On Fri, Dec 05, 2003 at 11:08:44AM +0100, [EMAIL PROTECTED] wrote:
>       From [EMAIL PROTECTED]  Fri Dec  5 07:16:54 2003
> 
>       > Below a patch fixing both problems. Now my two-lun device works
>       > for CF and it works for SM but not both - depending on the order
>       > of the entries in unusual_devices.
> 
>       Why not? Can't we just use "srb->device->lun" (and enabling 
>       CONFIG_SCSI_MULTI_LUN)? This is puzzling me.
> 
> This Apacer device is a CF+SM reader. The CF part works with
> datafab.c. The SM part works with sddr55.c.
> The vanilla kernel has no support for the situation where two
> luns require two different drivers.
> 
> Somewhere in the archives I have two solutions, one rather general,
> and mdharm did not like it because it would add code for everybody
> and in his experience multiple lun was the exception, and then I
> wrote a small twoluns.c precisely for this situation (I have lots
> of devices, N-in-1 readers, with two luns, very few with more.)
> Must dig this up again one of these days.

You probably should dig this up... I'm probably willing to reconsider the
issue now.

The dpcm.c code was designed for this situation, for a very specific
device... but it also needs to do some 'LUN trickery' to make it work
right.

Matt

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

SP: I sell software for Microsoft.  Can you set me free?
DP: Natural Selection says I shouldn't.
                                        -- MS Salesman and Dust Puppy
User Friendly, 4/2/1998

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to