android_kernel_samsung_a7y1.../drivers/net
Marek Vasut 0b0f81a3cf net: ks8851-ml: Fix IO operations, again
commit 8262e6f9b1034ede34548a04dec4c302d92c9497 upstream.

This patch reverts 58292104832f ("net: ks8851-ml: Fix 16-bit IO operation")
and edacb098ea9c ("net: ks8851-ml: Fix 16-bit data access"), because it
turns out these were only necessary due to buggy hardware. This patch adds
a check for such a buggy hardware to prevent any such mistakes again.

While working further on the KS8851 driver, it came to light that the
KS8851-16MLL is capable of switching bus endianness by a hardware strap,
EESK pin. If this strap is incorrect, the IO accesses require such endian
swapping as is being reverted by this patch. Such swapping also impacts
the performance significantly.

Hence, in addition to removing it, detect that the hardware is broken,
report to user, and fail to bind with such hardware.

Fixes: 58292104832f ("net: ks8851-ml: Fix 16-bit IO operation")
Fixes: edacb098ea9c ("net: ks8851-ml: Fix 16-bit data access")
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:25:22 +02:00
..
appletalk
arcnet
bonding bonding/alb: make sure arp header is pulled before accessing it 2020-04-07 14:11:29 +02:00
caif
can slcan: not call free_netdev before rtnl_unlock in slcan_open 2020-04-07 14:23:34 +02:00
cris
dsa
ethernet net: ks8851-ml: Fix IO operations, again 2020-04-07 14:25:22 +02:00
fddi
fjes fjes: fix missed check in fjes_acpi_add 2020-04-07 13:22:09 +02:00
hamradio 6pack,mkiss: fix possible deadlock 2020-04-07 13:23:56 +02:00
hippi
hyperv
ieee802154
ipvlan ipvlan: don't deref eth hdr before checking it's set 2020-04-07 14:11:22 +02:00
irda
phy net: phy: restore mdio regs in the iproc mdio driver 2020-04-07 14:04:30 +02:00
plip
ppp ppp: Adjust indentation into ppp_async_input 2020-04-07 13:50:52 +02:00
slip slip: make slhc_compress() more robust against malicious packets 2020-04-07 14:11:27 +02:00
team team: add missing attribute validation for array index 2020-04-07 14:11:09 +02:00
usb r8152: check disconnect status after long sleep 2020-04-07 14:10:56 +02:00
vmxnet3
wan wan: ixp4xx_hss: fix compile-testing on 64-bit 2020-04-07 13:56:42 +02:00
wimax wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle 2020-04-07 13:36:34 +02:00
wireless mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame() 2020-04-07 14:11:57 +02:00
xen-netback
dummy.c
eql.c
geneve.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c macvlan: add cond_resched() during multicast processing 2020-04-07 14:11:23 +02:00
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c
veth.c
virtio_net.c
vrf.c
vxlan.c vxlan: check return value of gro_cells_init() 2020-04-07 14:23:36 +02:00
xen-netfront.c