android_kernel_motorola_sm6225/drivers/net/ethernet/stmicro/stmmac
Icenowy Zheng 41864adfee net: stmmac: sun8i: force select external PHY when no internal one
[ Upstream commit 0fec7e72ae1391bb2d7527efb54fe6ae88acabce ]

The PHY selection bit also exists on SoCs without an internal PHY; if it's
set to 1 (internal PHY, default value) then the MAC will not make use of
any PHY on such SoCs.

This problem appears when adapting for H6, which has no real internal PHY
(the "internal PHY" on H6 is not on-die, but on a co-packaged AC200 chip,
connected via RMII interface at GPIO bank A).

Force the PHY selection bit to 0 when the SOC doesn't have an internal PHY,
to address the problem of a wrong default value.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-26 09:14:11 +02:00
..
altr_tse_pcs.c
altr_tse_pcs.h
chain_mode.c
common.h net: stmmac: modify default value of tx-frames 2019-07-26 09:14:04 +02:00
descs.h
descs_com.h net: stmmac: use correct DMA buffer size in the RX descriptor 2019-05-08 07:21:48 +02:00
dwmac-anarion.c
dwmac-dwc-qos-eth.c
dwmac-generic.c net: stmmac: Add the bindings parsing for XGMAC2 2018-08-09 11:16:28 -07:00
dwmac-ipq806x.c
dwmac-lpc18xx.c
dwmac-meson.c
dwmac-meson8b.c net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()' 2018-06-12 15:36:14 -07:00
dwmac-oxnas.c
dwmac-rk.c net: stmmac: dwmac-rk: fix error handling in rk_gmac_powerup() 2019-03-13 14:02:29 -07:00
dwmac-socfpga.c net: stmmac: socfpga: add additional ocp reset line for Stratix10 2018-06-20 14:34:26 +09:00
dwmac-sti.c
dwmac-stm32.c
dwmac-sun8i.c net: stmmac: sun8i: force select external PHY when no internal one 2019-07-26 09:14:11 +02:00
dwmac-sunxi.c
dwmac4.h net: stmmac: Add Flexible PPS support 2018-06-04 10:13:16 -04:00
dwmac4_core.c net: stmmac: dwmac4: fix flow control issue 2019-07-26 09:14:04 +02:00
dwmac4_descs.c net: stmmac: use correct DMA buffer size in the RX descriptor 2019-05-08 07:21:48 +02:00
dwmac4_descs.h
dwmac4_dma.c Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-03 10:29:26 +09:00
dwmac4_dma.h net: stmmac: Set DMA buffer size in HW 2018-06-28 22:24:25 +09:00
dwmac4_lib.c
dwmac5.c net: stmmac: Add Flexible PPS support 2018-06-04 10:13:16 -04:00
dwmac5.h net: stmmac: Add Flexible PPS support 2018-06-04 10:13:16 -04:00
dwmac100.h
dwmac100_core.c
dwmac100_dma.c
dwmac1000.h
dwmac1000_core.c net: stmmac: dwmac1000: Clear unused address entries 2019-07-26 09:14:01 +02:00
dwmac1000_dma.c
dwmac_dma.h
dwmac_lib.c
dwxgmac2.h net: stmmac: Add descriptor related callbacks for XGMAC2 2018-08-09 11:16:28 -07:00
dwxgmac2_core.c net: stmmac: Add MAC related callbacks for XGMAC2 2018-08-09 11:16:28 -07:00
dwxgmac2_descs.c net: stmmac: use correct DMA buffer size in the RX descriptor 2019-05-08 07:21:48 +02:00
dwxgmac2_dma.c net: stmmac: dwxgmac2: Only clear interrupts that are active 2019-02-27 10:08:54 +01:00
enh_desc.c net: stmmac: fix dropping of multi-descriptor RX frames 2019-05-08 07:21:48 +02:00
hwif.c net: stmmac: Add PTP support for XGMAC2 2018-08-09 11:16:28 -07:00
hwif.h net: stmmac: use correct DMA buffer size in the RX descriptor 2019-05-08 07:21:48 +02:00
Kconfig net: stmmac: build the dwmac-socfpga platform driver for Stratix10 2018-08-29 19:39:53 -07:00
Makefile net: stmmac: Add descriptor related callbacks for XGMAC2 2018-08-09 11:16:28 -07:00
mmc.h
mmc_core.c
norm_desc.c net: stmmac: Use bfsize1 in ndesc_init_rx_desc 2019-05-10 17:54:04 +02:00
ring_mode.c net: stmmac: Set OWN bit for jumbo frames 2019-04-20 09:16:02 +02:00
stmmac.h net: stmmac: Rework coalesce timer and fix multi-queue races 2018-09-18 19:48:08 -07:00
stmmac_ethtool.c net: stmmac: Fallback to Platform Data clock in Watchdog conversion 2019-03-13 14:02:35 -07:00
stmmac_hwtstamp.c net: stmmac: fixed new system time seconds value calculation 2019-07-03 13:14:47 +02:00
stmmac_main.c net: stmmac: set IC bit when transmitting frames with HW timestamp 2019-07-03 13:14:47 +02:00
stmmac_mdio.c net: stmmac: fix reset gpio free missing 2019-06-04 08:02:32 +02:00
stmmac_pci.c stmmac: pci: Adjust IOT2000 matching 2019-05-02 09:59:00 +02:00
stmmac_pcs.h
stmmac_platform.c stmmac: fix valid numbers of unicast filter entries 2018-09-16 15:23:48 -07:00
stmmac_platform.h
stmmac_ptp.c net: stmmac: Avoid one more sometimes uninitialized Clang warning 2019-04-05 22:33:17 +02:00
stmmac_ptp.h net: stmmac: Add PTP support for XGMAC2 2018-08-09 11:16:28 -07:00
stmmac_tc.c net: stmmac: Check if CBS is supported before configuring 2019-02-27 10:08:54 +01:00