summaryrefslogtreecommitdiffstats
path: root/include/ufs
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2023-03-29 12:13:03 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2023-04-12 03:46:59 +0200
commit3c85f087faeca3ca9ec9e7b085e1eff370e3f0db (patch)
tree1d6948cff562279fa4d493db1249bd119fe8f95d /include/ufs
parentscsi: ufs: mcq: Annotate ufshcd_inc_sq_tail() appropriately (diff)
downloadlinux-3c85f087faeca3ca9ec9e7b085e1eff370e3f0db.tar.xz
linux-3c85f087faeca3ca9ec9e7b085e1eff370e3f0db.zip
scsi: ufs: mcq: Use pointer arithmetic in ufshcd_send_command()
Make sqe_base_addr the UTRD pointer it is, instead of an opaque void *. Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20230329101303.18377-3-avri.altman@wdc.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs')
-rw-r--r--include/ufs/ufshcd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
index 8b1046c21960..721ae4cd3702 100644
--- a/include/ufs/ufshcd.h
+++ b/include/ufs/ufshcd.h
@@ -1095,7 +1095,7 @@ struct ufs_hw_queue {
void __iomem *mcq_cq_head;
void __iomem *mcq_cq_tail;
- void *sqe_base_addr;
+ struct utp_transfer_req_desc *sqe_base_addr;
dma_addr_t sqe_dma_addr;
struct cq_entry *cqe_base_addr;
dma_addr_t cqe_dma_addr;