All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Call phy_config at port probe time for the Felix DSA driver
@ 2021-08-24 12:00 Vladimir Oltean
  2021-08-24 12:00 ` [PATCH v2 1/6] net: dsa: felix: felix_init() can be static Vladimir Oltean
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Vladimir Oltean @ 2021-08-24 12:00 UTC (permalink / raw)
  To: Joe Hershberger, Ramon Fried, u-boot
  Cc: Claudiu Manoil, Michael Walle, Priyanka Jain

Changes in v2:
Rebased on top of the master branch (solves this conflict:
https://patchwork.ozlabs.org/project/uboot/patch/20210629170839.2583797-4-olteanv@gmail.com/
with Tim Harvey's patch to make DSA masters promiscuous)

This series makes the Felix DSA driver initialize all its connected PHYs
regardless of whether those will be used for networking or not. This is
in order to satisfy the expectations of some software in later boot
stages.

To make this work, it is necessary to introduce a new method in struct
dsa_ops: .port_probe().

There is some further refactoring/cleanup along the way.

Vladimir Oltean (6):
  net: dsa: felix: felix_init() can be static
  net: dsa: use "err" instead of "ret" in dsa_port_probe
  net: dsa: refactor the code to set the port MAC address into a
    dedicated function
  net: dsa: introduce a .port_probe() method in struct dsa_ops
  net: dsa: felix: call phy_config at .port_probe() time
  net: dsa: felix: propagate the error code from phy_startup()

 drivers/net/mscc_eswitch/felix_switch.c | 28 ++++++-----
 include/net/dsa.h                       |  5 +-
 net/dsa-uclass.c                        | 62 +++++++++++++++----------
 3 files changed, 59 insertions(+), 36 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-09-14  9:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 12:00 [PATCH v2 0/6] Call phy_config at port probe time for the Felix DSA driver Vladimir Oltean
2021-08-24 12:00 ` [PATCH v2 1/6] net: dsa: felix: felix_init() can be static Vladimir Oltean
2021-09-14  9:23   ` Ramon Fried
2021-08-24 12:00 ` [PATCH v2 2/6] net: dsa: use "err" instead of "ret" in dsa_port_probe Vladimir Oltean
2021-09-14  9:23   ` Ramon Fried
2021-08-24 12:00 ` [PATCH v2 3/6] net: dsa: refactor the code to set the port MAC address into a dedicated function Vladimir Oltean
2021-09-14  9:23   ` Ramon Fried
2021-08-24 12:00 ` [PATCH v2 4/6] net: dsa: introduce a .port_probe() method in struct dsa_ops Vladimir Oltean
2021-09-14  9:24   ` Ramon Fried
2021-08-24 12:00 ` [PATCH v2 5/6] net: dsa: felix: call phy_config at .port_probe() time Vladimir Oltean
2021-08-24 12:00 ` [PATCH v2 6/6] net: dsa: felix: propagate the error code from phy_startup() Vladimir Oltean
2021-09-14  9:24   ` Ramon Fried
2021-08-25 11:08 ` [PATCH v2 0/6] Call phy_config at port probe time for the Felix DSA driver Vladimir Oltean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.