mbox series

[0/5] Fix mpt3sas driver sparse warnings

Message ID 20220224101129.371905-1-damien.lemoal@opensource.wdc.com
Headers show
Series Fix mpt3sas driver sparse warnings | expand

Message

Damien Le Moal Feb. 24, 2022, 10:11 a.m. UTC
This series fix (remove) all sparse warnings generated when compiling
the mpt3sas driver. All warnings are related to __iomem access and
endianness.

The series was tested on top of Martin's 5.18/scsi-staging branch with a
9400-8i HBA with direct attached iSAS and SATA drives. The fixes need
careful review by the maintainers as there is no documentation clearly
explaning the proper endianness of the values touched.

Damien Le Moal (5):
  scsi: mpt3sas: fix Mpi2SCSITaskManagementRequest_t TaskMID handling
  scsi: mpt3sas: Fix writel() use
  scsi: mpt3sas: fix ioc->base_readl() use
  scsi: mpt3sas: fix event callback log_code value handling
  scsi: mpt3sas: fix adapter replyPostRegisterIndex handling

 drivers/scsi/mpt3sas/mpi/mpi2_init.h |  2 +-
 drivers/scsi/mpt3sas/mpt3sas_base.c  | 60 ++++++++++++++++------------
 drivers/scsi/mpt3sas/mpt3sas_ctl.c   |  3 +-
 drivers/scsi/mpt3sas/mpt3sas_scsih.c |  6 +--
 4 files changed, 40 insertions(+), 31 deletions(-)