login
Header Space

 
 

Re: [PATCH] mass storage : emulation of sat scsi_pass_thru with ATACB

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: matthieu castet <castet.matthieu@...>
Cc: <linux-usb@...>, Linux Kernel list <linux-kernel@...>
Date: Saturday, March 8, 2008 - 5:21 pm

On Sat, Mar 08, 2008 at 09:08:26PM +0100, matthieu castet wrote:

Yet, you call invoke_transport directly, just like any other protocol
handler.

The proper way to do this is as a separate protocol handler.  If you want
to make it clear that you are only intercepting a couple of command types,
then don't call invoke_transport() directly, call the transparent scsi
protocol handler (which, of course, does the same thing but provides
clearer layering).

Oh, and you should add some "unlikely" tags to these if() conditionals.

nd

Yes, modulo my comment above about calling the transparent scsi protocol
handler instead of invoke_transport directly.

=20

Yes, but your name suggests that ATACB is a new industry standard which is
implemented by more than a few chips from one specific vendor.  That's not
acceptable.

Try 'cypress_atacb_passthrough' instead?

Matt

--=20
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

P:  Nine more messages in admin.policy.
M: I know, I'm typing as fast as I can!
					-- Pitr and Mike
User Friendly, 11/27/97
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mass storage : emulation of sat scsi_pass_thru ..., Matthew Dharm, (Sat Mar 8, 5:21 pm)
speck-geostationary