u-boot/drivers/net/phy
Marek Behún e24b58f5ed net: phy: don't require PHY interface mode during PHY creation
Currently we require PHY interface mode to be known when
finding/creating the PHY - the functions
  * phy_connect_phy_id()
  * phy_device_create()
  * create_phy_by_mask()
  * search_for_existing_phy()
  * get_phy_device_by_mask()
  * phy_find_by_mask()
all require the interface parameter, but the only thing done with it is
that it is assigned to phydev->interface.

This makes it impossible to find a PHY device without overwriting the
set mode.

Since the interface mode is not used during .probe() and should be used
at first in .config(), drop the interface parameter from these
functions. Make the default value of phydev->interface (in
phy_device_create()) to be PHY_INTERFACE_MODE_NA. Move the interface
parameter to phy_connect_dev(), where it should be.

Change all occurrences treewide. In occurrences where we don't call
phy_connect_dev() for some reason (they only configure the PHY without
connecting it to an ethernet controller), set
  phydev->interface = value from phy_find_by_mask call.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
2022-04-10 08:44:13 +03:00
..
aquantia.c treewide: Rename PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX 2022-04-10 08:44:13 +03:00
atheros.c net: phy: atheros: avoid error in ar803x_of_init() when PHY has no OF node 2022-04-10 08:44:12 +03:00
b53.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
broadcom.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ca_phy.c net: phy: ca_phy: Add driver for CAxxxx SoCs 2021-01-27 10:47:47 -05:00
cortina.c Convert CONFIG_ENV_SPI_BUS et al to Kconfig 2021-12-27 08:40:33 -05:00
davicom.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
dp83867.c net: phy: dp83867: Fix a never true comparison 2022-04-10 08:44:12 +03:00
dp83869.c net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
et1011c.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ethernet_id.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
fixed.c net: phy: fixed: Support the old DT binding 2021-04-15 14:22:17 +05:30
generic_10g.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Kconfig Convert CONFIG_BITBANGMII_MULTI to Kconfig 2022-04-01 10:28:46 -04:00
lxt.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Makefile net: phy: Add support for ethernet-phy-id with gpio reset 2022-03-09 12:43:16 +01:00
marvell.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
meson-gxl.c WS cleanup: remove trailing white space 2021-09-30 08:08:56 -04:00
micrel_ksz8xxx.c net: phy: micrel: ksz8061 implement errata 80000688A fix 2020-06-12 13:17:23 -04:00
micrel_ksz90x1.c net: phy: micrel: Try default PHY ofnode first 2021-01-27 10:47:54 -05:00
miiphybb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mscc.c net: phy: mscc: add support for VSC8502 in dual RGMII mode 2021-11-23 09:57:55 +02:00
mv88e61xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mv88e6352.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
natsemi.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
ncsi.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
nxp-c45-tja11xx.c phy: add nxp tja1103 phy driver 2021-07-06 05:22:41 +03:00
phy.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
realtek.c net: phy: realtek: Add tx/rx delay config for 8211e 2021-11-23 09:57:56 +02:00
smsc.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
teranetics.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ti_phy_init.c net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
ti_phy_init.h net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
vitesse.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
xilinx_gmii2rgmii.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
xilinx_phy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00