linux/drivers/scsi/hisi_sas
John Garry 44c4abe08f scsi: hisi_sas: fix HBA SAS addr endianness for v1 hw
The endianness for the SAS address in the TX_ID_DWORD registers is set
incorrectly.  We see errors like this in the boot log for v2 hw (which
would have the same issue as v1 hw):

[    7.583284] sas: target proto 0x0 at 50000d1108e7923f:0x1f not handled

This is due to the host SAS addr not matching the PHY SAS addr in the
expander host-attached phy discovery responses.

To fix, we byte swap the SAS addr from BE to LE (which is the endianness
of the SAS controller).

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-09-14 12:54:18 -04:00
..
hisi_sas_main.c scsi: hisi_sas: set dma mask before allocate DMA memory 2016-09-14 12:54:18 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: fix HBA SAS addr endianness for v1 hw 2016-09-14 12:54:18 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: fix HBA SAS addr endianness for v2 hw 2016-09-14 12:54:18 -04:00
hisi_sas.h scsi: hisi_sas: save delivery queue write pointer 2016-09-14 12:54:17 -04:00
Kconfig hisi_sas: add dependency for HAS_IOMEM 2016-01-26 21:17:59 -05:00
Makefile hisi_sas: add bare v2 hw driver 2016-02-23 21:27:02 -05:00