diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2008-04-17 00:01:13 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:13 -0400 |
commit | 0349d1662027fee36e590640b3b05fd979ae26f8 (patch) | |
tree | 6e45cb554f2acc9667c0411c189742e3c9882b85 /drivers | |
parent | c263ff65d5936113cfcbb8139d34122361e2306e (diff) |
IB/ipath: Fix byte order of pioavail in handle_errors()
Fix byte order of value assigned to pioavailshadow. This bug was
detected by sparse endianness warnings.
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_intr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_intr.c b/drivers/infiniband/hw/ipath/ipath_intr.c index 3b8995206657..d12dfadaece7 100644 --- a/drivers/infiniband/hw/ipath/ipath_intr.c +++ b/drivers/infiniband/hw/ipath/ipath_intr.c | |||
@@ -798,7 +798,7 @@ static int handle_errors(struct ipath_devdata *dd, ipath_err_t errs) | |||
798 | void ipath_clear_freeze(struct ipath_devdata *dd) | 798 | void ipath_clear_freeze(struct ipath_devdata *dd) |
799 | { | 799 | { |
800 | int i, im; | 800 | int i, im; |
801 | __le64 val; | 801 | u64 val; |
802 | unsigned long flags; | 802 | unsigned long flags; |
803 | 803 | ||
804 | /* disable error interrupts, to avoid confusion */ | 804 | /* disable error interrupts, to avoid confusion */ |
@@ -835,8 +835,8 @@ void ipath_clear_freeze(struct ipath_devdata *dd) | |||
835 | /* deal with 6110 chip bug */ | 835 | /* deal with 6110 chip bug */ |
836 | im = i > 3 ? i ^ 1 : i; | 836 | im = i > 3 ? i ^ 1 : i; |
837 | val = ipath_read_kreg64(dd, (0x1000 / sizeof(u64)) + im); | 837 | val = ipath_read_kreg64(dd, (0x1000 / sizeof(u64)) + im); |
838 | dd->ipath_pioavailregs_dma[i] = dd->ipath_pioavailshadow[i] | 838 | dd->ipath_pioavailregs_dma[i] = cpu_to_le64(val); |
839 | = le64_to_cpu(val); | 839 | dd->ipath_pioavailshadow[i] = val; |
840 | } | 840 | } |
841 | 841 | ||
842 | /* | 842 | /* |