ata: sata_fsl: fix cmdhdr_tbl_entry and prde struct definitions
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 4 Jan 2022 10:04:49 +0000 (19:04 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 14 Jan 2022 06:17:16 +0000 (15:17 +0900)
commitf8bc938ee6c60ec862fb5311789b6e277555f0b0
treeb1680195151fd0b07ccee76080111df351f42f4b
parente5b48ee30aec1fe6dff05e36b22e886c665b4736
ata: sata_fsl: fix cmdhdr_tbl_entry and prde struct definitions

The fields of the cmdhdr_tbl_entry structure all store __le32 values,
and so are the dba and ddc_and_ext fields of the prde structure. Define
these fields using the __le32 type to avoid sparse warnings about
incorrect type in assignment.

The debug message in sata_fsl_setup_cmd_hdr_entry() is changed to
display the correct values of the cmdhdr_tbl_entry fields on big endian
systems.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/ata/sata_fsl.c