android_kernel_samsung_a7y1.../drivers/net/ethernet
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
..
3com A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
8390 mac8390: Fix mmio access size probe 2020-04-06 12:57:18 +02:00
adaptec A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aeroflex A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
agere A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
allwinner A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
alteon A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
altera A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd net: amd: fix return type of ndo_start_xmit function 2020-04-07 12:28:50 +02:00
apm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apple A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
arc net: arc_emac: fix koops caused by sk_buff free 2020-04-06 21:11:11 +02:00
atheros atl1e: checking the status of atl1e_write_phy_reg 2020-04-07 12:42:36 +02:00
aurora A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
broadcom bnxt_en: reinitialize IRQs when MTU is modified 2020-04-07 14:11:00 +02:00
brocade A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cadence net: macb: fix error format in dev_err() 2020-04-07 12:43:24 +02:00
calxeda A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cavium A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chelsio l2t_seq_next should increase position index 2020-04-07 13:49:04 +02:00
cirrus net: ep93xx_eth: fix mismatch of request_mem_region in remove 2020-04-07 12:44:12 +02:00
cisco enic: prevent waking up stopped tx queues over watchdog reset 2020-04-07 14:01:12 +02:00
davicom A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dec net: tulip: Adjust indentation in {dmfe, uli526x}_init_module 2020-04-07 13:50:56 +02:00
dlink A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
emulex be2net: Signal that the device cannot transmit during reconfiguration 2020-04-06 20:27:09 +02:00
ezchip A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
faraday A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
freescale net: fec: validate the new settings in fec_enet_set_coalesce() 2020-04-07 14:11:25 +02:00
fujitsu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hisilicon net: hisilicon: Fix signedness bug in hix5hd2_dev_probe() 2020-04-07 13:43:26 +02:00
hp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i825xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ibm ehea: Fix a copy-paste err in ehea_init_port_res 2020-04-07 13:41:20 +02:00
intel ixgbe: Fix calculation of queue with VFs and flow director on interface flap 2020-04-07 13:48:37 +02:00
marvell skge: fix checksum byte order 2020-04-07 07:37:19 +02:00
mellanox net/mlx4_en: fix mlx4 ethtool -N insertion 2020-04-07 12:33:34 +02:00
micrel net: ks8851-ml: Fix IO operations, again 2020-04-07 14:25:22 +02:00
microchip A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
moxa A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
myricom net: myri10ge: fix memory leaks 2020-04-06 21:34:13 +02:00
natsemi net/sonic: Quiesce SONIC before re-initializing descriptor memory 2020-04-07 13:49:00 +02:00
neterion A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nuvoton A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nvidia A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nxp net: lpc-enet: fix printk format strings 2020-04-07 07:38:37 +02:00
octeon A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oki-semi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
packetengines A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pasemi net: pasemi: fix an use-after-free in pasemi_mac_phy_init() 2020-04-07 13:42:29 +02:00
qlogic qlcnic: Fix CPU soft lockup while collecting firmware dump 2020-04-07 13:48:50 +02:00
qualcomm net: qca_spi: Move reset_count to struct qcaspi 2020-04-07 13:43:43 +02:00
rdc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
realtek A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
renesas net: sh_eth: fix a missing check of of_get_phy_mode 2020-04-07 13:40:56 +02:00
rocker A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
samsung sxgbe: Fix off by one in samsung driver strncpy size arg 2020-04-07 14:24:05 +02:00
seeq net: seeq: Fix the function used to release some memory in an error handling path 2020-04-06 21:37:01 +02:00
sfc sfc: initialise found bitmap in efx_ef10_mtd_probe 2020-04-07 12:43:00 +02:00
sgi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
silan A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sis sis900: fix TX completion 2020-04-06 19:31:04 +02:00
smsc net: smc911x: Adjust indentation in smc911x_phy_configure 2020-04-07 13:50:54 +02:00
stmicro net: stmmac: fix length of PTP clock's name string 2020-04-07 13:43:38 +02:00
sun A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
synopsys A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tehuti A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ti net: davinci_cpdma: use dma_addr_t for DMA address 2020-04-07 13:23:52 +02:00
tile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
toshiba net: toshiba: fix return type of ndo_start_xmit function 2020-04-07 12:28:44 +02:00
tundra net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context 2020-04-06 21:34:02 +02:00
via A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wiznet A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xilinx net: xilinx: fix return type of ndo_start_xmit function 2020-04-07 12:28:46 +02:00
xircom A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xscale A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dnet.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dnet.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ec_bhf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ethoc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fealnx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jme.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jme.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
korina.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lantiq_etop.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netx-eth.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30