megaraid_sas : swap whole register in megasas_register_aen
Swap the whole 32 bits we read from the hardware instead of swapping just the 16bits we care about in place later. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
parent
01d7f03ba0
commit
a9555534d5
1 changed files with 2 additions and 2 deletions
|
@ -4942,8 +4942,8 @@ megasas_register_aen(struct megasas_instance *instance, u32 seq_num,
|
||||||
|
|
||||||
if (instance->aen_cmd) {
|
if (instance->aen_cmd) {
|
||||||
|
|
||||||
prev_aen.word = instance->aen_cmd->frame->dcmd.mbox.w[1];
|
prev_aen.word =
|
||||||
prev_aen.members.locale = le16_to_cpu(prev_aen.members.locale);
|
le32_to_cpu(instance->aen_cmd->frame->dcmd.mbox.w[1]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A class whose enum value is smaller is inclusive of all
|
* A class whose enum value is smaller is inclusive of all
|
||||||
|
|
Loading…
Reference in a new issue