netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add link between phy dev and mac dev
@ 2022-11-16 14:43 Xiaolei Wang
  2022-11-16 14:43 ` [PATCH 1/2] net: phy: " Xiaolei Wang
  2022-11-16 14:43 ` [PATCH 2/2] net: fec: Create device " Xiaolei Wang
  0 siblings, 2 replies; 13+ messages in thread
From: Xiaolei Wang @ 2022-11-16 14:43 UTC (permalink / raw)
  To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni
  Cc: netdev, linux-kernel

On imx6sx, there are two fec interfaces, but the external
phys can only be configured by fec0 mii_bus. That means
the fec1 can't work independently, it only work when the
fec0 is active. It is alright in the normal boot since the
fec0 will be probed first. But then the fec0 maybe moved
behind of fec1 in the dpm_list due to various device link.
So in system suspend and resume, we would get the following
warning when configuring the external phy of fec1 via the
fec0 mii_bus due to the inactive of fec0. In order to fix
this issue, we create a device link between phy dev and fec0.
This will make sure that fec0 is always active when fec1
is in active mode.

Therefore, in order to solve this kind of problem, an interface
function phy_mac_link_add is added to establish a link relationship
between phy dev and mac dev.

Xiaolei Wang (2):
  net: phy: Add netdev link when multiple phys share a mdio
  net: fec: net: fec: Create device link between fec0 and fec1

 drivers/net/ethernet/freescale/fec_main.c |  4 +++-
 drivers/net/phy/phy.c                     | 21 +++++++++++++++++++++
 include/linux/phy.h                       |  1 +
 3 files changed, 25 insertions(+), 1 deletion(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-17 19:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 14:43 [PATCH 0/2] Add link between phy dev and mac dev Xiaolei Wang
2022-11-16 14:43 ` [PATCH 1/2] net: phy: " Xiaolei Wang
2022-11-16 23:11   ` kernel test robot
2022-11-16 23:22   ` Florian Fainelli
2022-11-17  4:39     ` Wang, Xiaolei
2022-11-17 19:28   ` kernel test robot
2022-11-16 14:43 ` [PATCH 2/2] net: fec: Create device " Xiaolei Wang
2022-11-16 15:07   ` Andrew Lunn
2022-11-16 23:27     ` Florian Fainelli
2022-11-16 23:57       ` Andrew Lunn
2022-11-17  0:21         ` Florian Fainelli
2022-11-17  4:40           ` Wang, Xiaolei
2022-11-17  4:40     ` Wang, Xiaolei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).