linux/drivers/net/ethernet
Vladimir Oltean 0f84d403b8 net: enetc: kill PHY-less mode for PFs
Right now, a PHY-less port (no phy-mode, no fixed-link, no phy-handle)
doesn't register with phylink, but calls netif_carrier_on() from
enetc_start().

This makes sense for a VF, but for a PF, this is braindead, because we
never call enetc_mac_enable() so the MAC is left inoperational.
Furthermore, commit 71b77a7a27 ("enetc: Migrate to PHYLINK and
PCS_LYNX") put the nail in the coffin because it removed the initial
netif_carrier_off() call done right after register_netdev().

Without that call, netif_carrier_on() does not call
linkwatch_fire_event(), so the operstate remains IF_OPER_UNKNOWN.

Just deny the broken configuration by requiring that a phy-mode is
present, and always register a PF with phylink.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://lore.kernel.org/r/20220511094200.558502-1-vladimir.oltean@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-05-12 11:05:43 +02:00
..
3com eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
8390 ethernet: 8390: Remove unnecessary print function dev_err() 2022-03-11 22:59:03 -08:00
actions
adaptec eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
aeroflex
agere
alacritech slic: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
allwinner
alteon
altera
amazon eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
amd eth: amd: remove NI6510 support (ni65) 2022-05-11 13:09:59 +01:00
apm drivers: net: xgene: Fix regression in CRC stripping 2022-03-23 10:30:05 -07:00
apple net: ethernet: Prepare cleanup of powerpc's asm/prom.h 2022-05-05 15:53:02 -07:00
aquantia eth: atlantic: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
arc eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
asix net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
atheros eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
broadcom eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
brocade eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
cadence net: macb: use NAPI for TX completion path 2022-05-11 16:14:13 -07:00
calxeda net: calxedaxgmac: Fix typo (doubled "the") 2022-04-11 20:49:21 -07:00
cavium net: make drivers set the TSO limit not the GSO limit 2022-05-06 12:07:56 +01:00
chelsio ipv6: Use ipv6_only_sock() helper in condition. 2022-04-22 12:47:50 +01:00
cirrus
cisco
cortina eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
davicom net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
dec eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
dlink
emulex net: make drivers set the TSO limit not the GSO limit 2022-05-06 12:07:56 +01:00
engleder tsnep: Add free running cycle counter support 2022-05-10 09:48:09 +02:00
ezchip eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
faraday net: ftgmac100: access hardware register after clock ready 2022-04-13 12:43:55 +01:00
freescale net: enetc: kill PHY-less mode for PFs 2022-05-12 11:05:43 +02:00
fujitsu
fungible net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
google gve: Fix spelling mistake "droping" -> "dropping" 2022-03-16 19:29:00 -07:00
hisilicon net: hns3: fix incorrect type of argument in declaration of function hclge_comm_get_rss_indir_tbl 2022-05-09 14:30:38 +01:00
huawei eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
i825xx Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
ibm eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
intel igc: Change type of the 'igc_check_downshift' method 2022-05-10 14:02:53 -07:00
litex
marvell eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
mediatek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-05 13:03:18 -07:00
mellanox fortify: Provide a memcpy trap door for sharp corners 2022-05-12 10:49:23 +02:00
micrel net: micrel: Fix KS8851 Kconfig 2022-04-05 17:32:05 -07:00
microchip eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
microsoft eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
moxa eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
mscc rtnetlink: add extack support in fdb del handlers 2022-05-09 11:58:20 +01:00
myricom eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
natsemi net: remove comments that mention obsolete __SLOW_DOWN_IO 2022-04-26 17:09:24 -07:00
neterion eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
netronome nfp: flower: fix 'variable 'flow6' set but not used' 2022-05-10 15:15:12 -07:00
ni
nvidia eth: remove remaining copies of the NAPI_POLL_WEIGHT define 2022-04-30 14:00:45 +01:00
nxp eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
oki-semi eth: pch_gbe: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
packetengines drivers: net: packetengines: fix typos in comments 2022-03-14 10:04:28 -07:00
pasemi
pensando ionic: no transition while stopping 2022-02-28 11:42:45 +00:00
qlogic rtnetlink: add extack support in fdb del handlers 2022-05-09 11:58:20 +01:00
qualcomm net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
rdc
realtek eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
renesas
rocker net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
samsung Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-03 11:55:12 -08:00
seeq
sfc sfc: Add a basic Siena module 2022-05-10 15:38:15 -07:00
sgi
silan
sis
smsc eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
socionext net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
stmicro net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
sun net: ethernet: Prepare cleanup of powerpc's asm/prom.h 2022-05-05 15:53:02 -07:00
sunplus net: ethernet: Add driver for Sunplus SP7021 2022-05-10 11:31:32 +02:00
synopsys
tehuti
ti net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
toshiba eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
tundra
vertexcom net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
via eth: velocity: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
wiznet eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
xilinx Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-05 13:03:18 -07:00
xircom
xscale eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
jme.h jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
Kconfig net: ethernet: Add driver for Sunplus SP7021 2022-05-10 11:31:32 +02:00
korina.c
lantiq_etop.c eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
lantiq_xrx200.c net: switch to netif_napi_add_tx() 2022-05-05 15:54:12 -07:00
Makefile net: ethernet: Add driver for Sunplus SP7021 2022-05-10 11:31:32 +02:00