]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atari_NCR5380: Move static co-routine variables to host data
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 12 Nov 2014 05:12:21 +0000 (16:12 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:20 +0000 (09:11 +0100)
commita53a21e4662fd2ed27863f511715898459312393
treeb770b830e1ab4843ae4f0e8139b0a02c69f0606c
parent61d739a4976424af0d2a62d8e8d0b2159702fb45
atari_NCR5380: Move static co-routine variables to host data

Unlike NCR5380.c, the atari_NCR5380.c core driver is limited to a single
instance because co-routine state is stored globally.

Fix this by removing the static scsi host pointer. For the co-routine,
obtain this pointer from the work_struct pointer instead. For the interrupt
handler, obtain it from the dev_id argument.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/NCR5380.h
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_scsi.c