]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:26 +0000 (07:18 +0100)
commit085793efc6efd454172e4be36f1c222ef2d44075
tree20abfe4048ac2b4d98de54abbe73553c2880ae76
parentb743dce4ec8342a6754e58fdee691491eb75b8fa
net: ks8851-ml: Fix 16-bit data access

[ Upstream commit edacb098ea9c31589276152f09b4439052c0f2b1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/micrel/ks8851_mll.c