All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 2/2] net: phy: implements probe for Cortina phy
@ 2016-01-12  9:55 shh.xie at gmail.com
  2016-01-27 15:38 ` Joe Hershberger
  0 siblings, 1 reply; 2+ messages in thread
From: shh.xie at gmail.com @ 2016-01-12  9:55 UTC (permalink / raw
  To: u-boot

From: Shaohui Xie <Shaohui.Xie@nxp.com>

Cortine phy cannot support soft reset, this commit implements probe
for Cortina PHY to tell phylib to skip phy soft reset by setting
PHY_BROKEN_RESET in flags.

Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
---
 drivers/net/phy/cortina.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index 3a2b3bb..2d04f62 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -256,6 +256,12 @@ int cs4340_config(struct phy_device *phydev)
 	return 0;
 }
 
+int cs4340_probe(struct phy_device *phydev)
+{
+	phydev->flags = PHY_BROKEN_RESET;
+	return 0;
+}
+
 int cs4340_startup(struct phy_device *phydev)
 {
 	phydev->link = 1;
@@ -275,6 +281,7 @@ struct phy_driver cs4340_driver = {
 		 MDIO_DEVS_PHYXS | MDIO_DEVS_AN |
 		 MDIO_DEVS_VEND1 | MDIO_DEVS_VEND2),
 	.config = &cs4340_config,
+	.probe	= &cs4340_probe,
 	.startup = &cs4340_startup,
 	.shutdown = &gen10g_shutdown,
 };
-- 
2.1.0.27.g96db324

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

* [U-Boot] [PATCH 2/2] net: phy: implements probe for Cortina phy
  2016-01-12  9:55 [U-Boot] [PATCH 2/2] net: phy: implements probe for Cortina phy shh.xie at gmail.com
@ 2016-01-27 15:38 ` Joe Hershberger
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Hershberger @ 2016-01-27 15:38 UTC (permalink / raw
  To: u-boot

On Tue, Jan 12, 2016 at 3:55 AM,  <shh.xie@gmail.com> wrote:
> From: Shaohui Xie <Shaohui.Xie@nxp.com>
>
> Cortine phy cannot support soft reset, this commit implements probe
> for Cortina PHY to tell phylib to skip phy soft reset by setting
> PHY_BROKEN_RESET in flags.
>
> Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>

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

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

end of thread, other threads:[~2016-01-27 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12  9:55 [U-Boot] [PATCH 2/2] net: phy: implements probe for Cortina phy shh.xie at gmail.com
2016-01-27 15:38 ` 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.