From: Hassan Naveed <hassan.nav...@imgtec.com> 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 <hassan.nav...@imgtec.com> > Reviewed-by: Paul Burton <paul.bur...@imgtec.com> > Reviewed-by: Matt Redfearn <matt.redfe...@imgtec.com> > Cc: Paul Burton <paul.bur...@imgtec.com> > Cc: Matt Redfearn <matt.redfe...@imgtec.com> > Cc: David S. Miller <da...@davemloft.net> > Cc: Florian Westphal <f...@strlen.de> > Cc: françois romieu <rom...@fr.zoreil.com> > --- > 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.