]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ks8851-ml: Fix 16-bit data access
authorMarek Vasut <marex@denx.de>
Sat, 15 Feb 2020 16:54:18 +0000 (17:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:41:09 +0000 (19:41 -0800)
commitedacb098ea9c31589276152f09b4439052c0f2b1
tree23a69019c5240d376d77ec10d26efee72ed97ae2
parent69233bba6543a37755158ca3382765387b8078df
net: ks8851-ml: Fix 16-bit data access

The packet data written to and read from Micrel KSZ8851-16MLLI must be
byte-swapped in 16-bit mode, add this byte-swapping.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Petr Stetiar <ynezz@true.cz>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851_mll.c