Re: [PATCH] PCI/hotplug/rphahp: Fix endianess issues

2014-04-25 Thread Bjorn Helgaas
On Thu, Apr 10, 2014 at 03:02:13PM +0200, Laurent Dufour wrote: > Numerical values stored in the device tree are encoded in Big Endian and > should be byte swapped when running in Little Endian. > > RPA hot plug module should convert those values as well. > > Note that in rpaphp_get_drc_props the

[PATCH] PCI/hotplug/rphahp: Fix endianess issues

2014-04-10 Thread Laurent Dufour
Numerical values stored in the device tree are encoded in Big Endian and should be byte swapped when running in Little Endian. RPA hot plug module should convert those values as well. Note that in rpaphp_get_drc_props the comparison between indexes[i+1] and *index is done using the BE values (wha