]> git.baikalelectronics.ru Git - kernel.git/commit
hpsa: allow passthru ioctls to work with bidirectional commands
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 29 May 2014 15:52:41 +0000 (10:52 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Jun 2014 07:54:52 +0000 (09:54 +0200)
commit0a686df4b39d023a12cb96c10fb6726b5ad1d5dd
treeb807ad655c867cb81fac729b08d9e7d544f9c456
parent0dc0c384d71349b7cdca3db801af2c4db7bd2c35
hpsa: allow passthru ioctls to work with bidirectional commands

Treat the the data direction bits as a bit mask allowing both
READ and WRITE at the same time instead of testing for equality
to see if it's a exclusively a READ or a WRITE.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Reviewed-by: Mike Miller <michael.miller@canonical.com>
Reviewed-by: Webb Scales <webb.scales@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c