RE: [PATCH] Getting ScanLogic USB-ATAPI Adapter to work

Leif Sawyer
2002-01-07T20:48:31Z

Rene,

I think that while this patch may work for you, it's not the right way
to go about it.

Instead of changing the source for all devices that use transport.c,
you should create a flag (see usb.h), say US_FL_SLIDE_BUG, and set
it within the definition in unusual_devs.h

Then the logic in transport.c can check for that flag and work around
the bug as needed -- as not all storage devices will require that
workaround.

I'm in the process of recompiling my 2.5.2-pre9 kernel with the above
workaround to see if it solves my issues as well. Unfortunately, my
device is at home, and I'm at work. I'll post later tonight or tomorrow
morning my results.

Greg? Your opinions on the right way to work this?

> -----Original Message-----
> From: Rene Engelhard [mailto:mail@rene-engelhard.de]
> Sent: Monday, January 07, 2002 11:18 AM
> To: Greg KH
> Cc: linux-kernel@vger.kernel.org
> Subject: [PATCH] Getting ScanLogic USB-ATAPI Adapter to work
>
>
> Hi Greg, hi Kernel-Hackers,
>
> a long time ago I bought the Adapter mentioned above and got it
> working.
>
> Now, 6 months after that I bought it, my testing is over and I got the
> result: The device is working by changing the usb-storage
> sources; this
> has not affected any other thing. All my devices (3 of USB)
> runs perfectly.
>
> So I send you this patch.
>
> It's against 2.5.2-pre9 and the patch from Alan with the comment that
> you need SCSI Support is applied in my tree, so this is needed before
> applying this patch (but I saw you did it Greg, you can do this)
>
> Because of testing this patch 6 months, I do not consider to say that
> this patch is experimental, so I did not write $CONFIG_EXPERIMENTAL at
> the end of the dep_mbool statement.
>
> I have attached it to this mail.
>
> Rene
>