Commit b889d531 authored by Malahal Naineni's avatar Malahal Naineni Committed by James Bottomley

[SCSI] qla2xxx: fix RSCN handling on big-endian systems

qla2xxx driver fails to handle RSCN events affecting area or domain due
to an endian issue on big endian systems.  This fixes the port_id_t
structure on big endian systems.
Signed-off-by: default avatarMalahal Naineni <malahal@us.ibm.com>
Acked-by: default avatarSeokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 840c2835
...@@ -1478,14 +1478,17 @@ typedef union { ...@@ -1478,14 +1478,17 @@ typedef union {
uint32_t b24 : 24; uint32_t b24 : 24;
struct { struct {
uint8_t d_id[3]; #ifdef __BIG_ENDIAN
uint8_t rsvd_1; uint8_t domain;
} r; uint8_t area;
uint8_t al_pa;
struct { #elif __LITTLE_ENDIAN
uint8_t al_pa; uint8_t al_pa;
uint8_t area; uint8_t area;
uint8_t domain; uint8_t domain;
#else
#error "__BIG_ENDIAN or __LITTLE_ENDIAN must be defined!"
#endif
uint8_t rsvd_1; uint8_t rsvd_1;
} b; } b;
} port_id_t; } port_id_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment