All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] miiphy: Add function to retrieve MDIO bus list head
@ 2018-09-18 10:16 Pankaj Bansal
  2018-10-22 20:47 ` Joe Hershberger
  2018-10-24 19:56 ` [U-Boot] " Joe Hershberger
  0 siblings, 2 replies; 3+ messages in thread
From: Pankaj Bansal @ 2018-09-18 10:16 UTC (permalink / raw)
  To: u-boot

In upcoming freescale board LX2160AQDS, the MDIO bus is muxed.
i.e. same MDIO bus can be routed to eight different slots depending
on mux register settings.

To support this mdio mux behavior, we add each MDIO bus mux as a
separate MDIO bus.

Now, various phy devices can be attached to each of these slots(mux).
The information about these devices is passed to OS via device tree.

To do the fdt fixups related to MDIO bus, its necessary that MDIO bus
list is accessed.Therefore, add a function to retrieve the list head.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
---
 common/miiphyutil.c | 5 +++++
 include/miiphy.h    | 1 +
 2 files changed, 6 insertions(+)

diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index 8d89751122..2db067876e 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -177,6 +177,11 @@ struct mii_dev *mdio_get_current_dev(void)
 	return current_mii;
 }
 
+struct list_head *mdio_get_list_head(void)
+{
+	return &mii_devs;
+}
+
 struct phy_device *mdio_phydev_for_ethname(const char *ethname)
 {
 	struct list_head *entry;
diff --git a/include/miiphy.h b/include/miiphy.h
index 2da28e311a..f11763affd 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -39,6 +39,7 @@ void miiphy_init(void);
 int miiphy_set_current_dev(const char *devname);
 const char *miiphy_get_current_dev(void);
 struct mii_dev *mdio_get_current_dev(void);
+struct list_head *mdio_get_list_head(void);
 struct mii_dev *miiphy_get_dev_by_name(const char *devname);
 struct phy_device *mdio_phydev_for_ethname(const char *devname);
 
-- 
2.17.1

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

* [U-Boot] [PATCH] miiphy: Add function to retrieve MDIO bus list head
  2018-09-18 10:16 [U-Boot] [PATCH] miiphy: Add function to retrieve MDIO bus list head Pankaj Bansal
@ 2018-10-22 20:47 ` Joe Hershberger
  2018-10-24 19:56 ` [U-Boot] " Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2018-10-22 20:47 UTC (permalink / raw)
  To: u-boot

On Mon, Sep 17, 2018 at 11:45 PM Pankaj Bansal <pankaj.bansal@nxp.com> wrote:
>
> In upcoming freescale board LX2160AQDS, the MDIO bus is muxed.
> i.e. same MDIO bus can be routed to eight different slots depending
> on mux register settings.
>
> To support this mdio mux behavior, we add each MDIO bus mux as a
> separate MDIO bus.
>
> Now, various phy devices can be attached to each of these slots(mux).
> The information about these devices is passed to OS via device tree.
>
> To do the fdt fixups related to MDIO bus, its necessary that MDIO bus
> list is accessed.Therefore, add a function to retrieve the list head.
>
> Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

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

* [U-Boot] miiphy: Add function to retrieve MDIO bus list head
  2018-09-18 10:16 [U-Boot] [PATCH] miiphy: Add function to retrieve MDIO bus list head Pankaj Bansal
  2018-10-22 20:47 ` Joe Hershberger
@ 2018-10-24 19:56 ` Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2018-10-24 19:56 UTC (permalink / raw)
  To: u-boot

Hi Pankaj,

https://patchwork.ozlabs.org/patch/970926/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git

Thanks!
-Joe

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

end of thread, other threads:[~2018-10-24 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-18 10:16 [U-Boot] [PATCH] miiphy: Add function to retrieve MDIO bus list head Pankaj Bansal
2018-10-22 20:47 ` Joe Hershberger
2018-10-24 19:56 ` [U-Boot] " Joe Hershberger

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.