That will break quite a few devices..

Is this a BBB device?

Matt

On Mon, Jun 09, 2003 at 10:40:33PM -0500, Kevin Cernekee wrote:
> Hi, I am running kernel 2.4.21-rc7 and am still having trouble with this
> device after reading the original thread [1].  At storage/usb.c:937, the
> case for the US_SC_8020 subclass sets max_lun to zero:
> 
>                 case US_SC_8020:
>                         ss->protocol_name = "8020i";
>                         ss->proto_handler = usb_stor_ATAPI_command;
>                         ss->max_lun = 0;
>                         break;
> 
> This is probably a good thing for an 8020i burner but it is a bad thing
> for the Transcend card reader, which has four actual LUNs (one for each
> slot).  If I do not comment out the max_lun line above, I can only access
> cards in the first slot (the CF slot); if I do comment it out, all four
> slots work correctly.
> 
> What is the best way to handle this case?  Would it make sense to change
> the code so that US_FL_SINGLE_LUN is no longer implicit on 8020i-protocol
> devices, or would that break a lot of devices that are not listed in
> unusual_devs.h?
> 
> 
> [1] http://marc.theaimsgroup.com/?l=linux-usb-devel&m=105361084630926&w=2
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

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

I'll scuff my feet on the carpet and zap your nose hairs unless you 
TALK mister!! Who put you up to this?
                                        -- Pitr
User Friendly, 3/30/1998

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to