All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2 v4] net/phy: enable get_phy_id redefinable
@ 2014-04-11  8:14 Shengzhou Liu
  2014-04-11  8:14 ` [U-Boot] [PATCH v4] net/phy: Add support for CS4315/CS4340 PHY Shengzhou Liu
  2014-05-13  1:51 ` [U-Boot] [U-Boot, 1/2, v4] net/phy: enable get_phy_id redefinable Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Shengzhou Liu @ 2014-04-11  8:14 UTC (permalink / raw)
  To: u-boot

As some PHYs have non-standard PHY ID registers, PHY Id can't
be read correctly by current get_phy_id function, so we enable
get_phy_id redefinable to permit specific PHY driver having own
specific get_phy_id function.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
v4: no change
v3: no change.
v2: use weak style.

 drivers/net/phy/phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index c691fbb..230ed97 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -18,6 +18,7 @@
 #include <phy.h>
 #include <errno.h>
 #include <linux/err.h>
+#include <linux/compiler.h>
 
 /* Generic PHY support and helper functions */
 
@@ -577,7 +578,7 @@ static struct phy_device *phy_device_create(struct mii_dev *bus, int addr,
  * Description: Reads the ID registers of the PHY at @addr on the
  *   @bus, stores it in @phy_id and returns zero on success.
  */
-static int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id)
+int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id)
 {
 	int phy_reg;
 
-- 
1.8.0

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

end of thread, other threads:[~2014-05-15 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11  8:14 [U-Boot] [PATCH 1/2 v4] net/phy: enable get_phy_id redefinable Shengzhou Liu
2014-04-11  8:14 ` [U-Boot] [PATCH v4] net/phy: Add support for CS4315/CS4340 PHY Shengzhou Liu
2014-05-15 15:27   ` York Sun
2014-05-13  1:51 ` [U-Boot] [U-Boot, 1/2, v4] net/phy: enable get_phy_id redefinable Tom Rini

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.