diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-02-18 11:51:14 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-22 21:11:07 -0500 |
commit | 70d1b920af62a7d065aa7a0d031dd1af44e8b31b (patch) | |
tree | 1eae4b401c513e2a1e0c71803426e2fb5a0944ce /drivers/scsi/wd719x.h | |
parent | 5dfcf1ad933fe877cb44e9fb7a661dfc22190101 (diff) | |
download | linux-70d1b920af62a7d065aa7a0d031dd1af44e8b31b.tar.gz linux-70d1b920af62a7d065aa7a0d031dd1af44e8b31b.tar.bz2 linux-70d1b920af62a7d065aa7a0d031dd1af44e8b31b.zip |
scsi: wd719x: Stop using the SCSI pointer
Move the DMA handle into the per-command private data instead of using the
SCSI pointer from struct scsi_cmnd. This patch prepares for removal of the
SCSI pointer from struct scsi_cmnd.
Link: https://lore.kernel.org/r/20220218195117.25689-47-bvanassche@acm.org
Cc: Ondrej Zary <linux@zary.sk>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/wd719x.h')
-rw-r--r-- | drivers/scsi/wd719x.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/wd719x.h b/drivers/scsi/wd719x.h index abaabd419a54..966ab0fb4621 100644 --- a/drivers/scsi/wd719x.h +++ b/drivers/scsi/wd719x.h @@ -56,6 +56,7 @@ struct wd719x_scb { u8 flags[2]; /* 62-63 SCB specific flags (local to each thread) */ /* everything below is for driver use (not used by card) */ dma_addr_t phys; /* bus address of the SCB */ + dma_addr_t dma_handle; struct scsi_cmnd *cmd; /* a copy of the pointer we were passed */ struct list_head list; struct wd719x_sglist sg_list[WD719X_SG] __aligned(8); /* SG list */ |