[PATCH v5 0/3] 3w-9xxx: Endianness fixes

From: Samuel Holland
Date: Tue Apr 27 2021 - 19:59:26 EST


This series fixes the 3w-9xxx driver in a big-endian configuration.

I received no comments on v4, but it no longer applies cleanly.

Changes from v4 to v5:
- Rebased on v5.12
Changes from v3 to v4:
- Changed order of parameters to dma_alloc_coherent()
Changes from v2 to v3:
- Add additional patches reducing the use of structure packing
Changes from v1 to v2:
- Include missed header changes
- Use local variable instead of byte swapping multiple times

Samuel Holland (3):
scsi: 3w-9xxx: Use flexible array members to avoid struct padding
scsi: 3w-9xxx: Reduce scope of structure packing
scsi: 3w-9xxx: Fix endianness issues in command packets

drivers/scsi/3w-9xxx.c | 72 ++++++++++++-------------
drivers/scsi/3w-9xxx.h | 119 +++++++++++++++++++++--------------------
2 files changed, 96 insertions(+), 95 deletions(-)

--
2.26.3