From: Hassan Naveed <[email protected]> Date: Tue, 28 Feb 2017 18:13:22 -0800
> Fix pch_gbe driver for ethernet operations for a big endian CPU. > Values written to and read from transmit and receive descriptors > in the pch_gbe driver are byte swapped from the perspective of a > big endian CPU, since the ethernet controller always operates in > little endian mode. Rectify this by appropriately byte swapping > these descriptor field values in the driver software. > > Signed-off-by: Hassan Naveed <[email protected]> > Reviewed-by: Paul Burton <[email protected]> > Reviewed-by: Matt Redfearn <[email protected]> > Cc: Paul Burton <[email protected]> > Cc: Matt Redfearn <[email protected]> > Cc: David S. Miller <[email protected]> > Cc: Florian Westphal <[email protected]> > Cc: françois romieu <[email protected]> > --- > Changes in v2: Additionally changed transmit and receive descriptors field > types to __le{16,32}. Ran sparse with endianness checking enabled and no > new warnings were generated. This doesn't apply cleanly to the 'net' tree, please respin.
