* [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags
@ 2015-05-22 21:07 Florian Fainelli
2015-05-22 22:16 ` Petri Gynther
2015-05-25 4:16 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Florian Fainelli @ 2015-05-22 21:07 UTC (permalink / raw)
To: davem; +Cc: pgynther, netdev, Florian Fainelli
While adding support for 7425 PHY in the 7xxx PHY driver, the ID that
was used was actually coming from an external PHY: a BCM5461x. Fix this
by using the proper ID for the internal 7425 PHY and set the
PHY_IS_INTERNAL flag, otherwise consumers of this PHY driver would not
be able to properly identify it as such.
Fixes: d068b02cfdfc2 ("net: phy: add BCM7425 and BCM7429 PHYs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
drivers/net/phy/bcm7xxx.c | 2 +-
include/linux/brcmphy.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c
index 64c74c6a4828..b5dc59de094e 100644
--- a/drivers/net/phy/bcm7xxx.c
+++ b/drivers/net/phy/bcm7xxx.c
@@ -404,7 +404,7 @@ static struct phy_driver bcm7xxx_driver[] = {
.name = "Broadcom BCM7425",
.features = PHY_GBIT_FEATURES |
SUPPORTED_Pause | SUPPORTED_Asym_Pause,
- .flags = 0,
+ .flags = PHY_IS_INTERNAL,
.config_init = bcm7xxx_config_init,
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
index ae2982c0f7a6..656da2a12ffe 100644
--- a/include/linux/brcmphy.h
+++ b/include/linux/brcmphy.h
@@ -17,7 +17,7 @@
#define PHY_ID_BCM7250 0xae025280
#define PHY_ID_BCM7364 0xae025260
#define PHY_ID_BCM7366 0x600d8490
-#define PHY_ID_BCM7425 0x03625e60
+#define PHY_ID_BCM7425 0x600d86b0
#define PHY_ID_BCM7429 0x600d8730
#define PHY_ID_BCM7439 0x600d8480
#define PHY_ID_BCM7439_2 0xae025080
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags
2015-05-22 21:07 [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags Florian Fainelli
@ 2015-05-22 22:16 ` Petri Gynther
2015-05-25 4:16 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Petri Gynther @ 2015-05-22 22:16 UTC (permalink / raw)
To: Florian Fainelli; +Cc: David Miller, netdev
On Fri, May 22, 2015 at 2:07 PM, Florian Fainelli <f.fainelli@gmail.com> wrote:
> While adding support for 7425 PHY in the 7xxx PHY driver, the ID that
> was used was actually coming from an external PHY: a BCM5461x. Fix this
> by using the proper ID for the internal 7425 PHY and set the
> PHY_IS_INTERNAL flag, otherwise consumers of this PHY driver would not
> be able to properly identify it as such.
>
> Fixes: d068b02cfdfc2 ("net: phy: add BCM7425 and BCM7429 PHYs")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Petri Gynther <pgynther@google.com>
> ---
> drivers/net/phy/bcm7xxx.c | 2 +-
> include/linux/brcmphy.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c
> index 64c74c6a4828..b5dc59de094e 100644
> --- a/drivers/net/phy/bcm7xxx.c
> +++ b/drivers/net/phy/bcm7xxx.c
> @@ -404,7 +404,7 @@ static struct phy_driver bcm7xxx_driver[] = {
> .name = "Broadcom BCM7425",
> .features = PHY_GBIT_FEATURES |
> SUPPORTED_Pause | SUPPORTED_Asym_Pause,
> - .flags = 0,
> + .flags = PHY_IS_INTERNAL,
> .config_init = bcm7xxx_config_init,
> .config_aneg = genphy_config_aneg,
> .read_status = genphy_read_status,
> diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
> index ae2982c0f7a6..656da2a12ffe 100644
> --- a/include/linux/brcmphy.h
> +++ b/include/linux/brcmphy.h
> @@ -17,7 +17,7 @@
> #define PHY_ID_BCM7250 0xae025280
> #define PHY_ID_BCM7364 0xae025260
> #define PHY_ID_BCM7366 0x600d8490
> -#define PHY_ID_BCM7425 0x03625e60
> +#define PHY_ID_BCM7425 0x600d86b0
> #define PHY_ID_BCM7429 0x600d8730
> #define PHY_ID_BCM7439 0x600d8480
> #define PHY_ID_BCM7439_2 0xae025080
> --
> 2.1.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags
2015-05-22 21:07 [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags Florian Fainelli
2015-05-22 22:16 ` Petri Gynther
@ 2015-05-25 4:16 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2015-05-25 4:16 UTC (permalink / raw)
To: f.fainelli; +Cc: pgynther, netdev
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Fri, 22 May 2015 14:07:30 -0700
> While adding support for 7425 PHY in the 7xxx PHY driver, the ID that
> was used was actually coming from an external PHY: a BCM5461x. Fix this
> by using the proper ID for the internal 7425 PHY and set the
> PHY_IS_INTERNAL flag, otherwise consumers of this PHY driver would not
> be able to properly identify it as such.
>
> Fixes: d068b02cfdfc2 ("net: phy: add BCM7425 and BCM7429 PHYs")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-25 4:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 21:07 [PATCH net] net: phy: bcm7xxx: Fix 7425 PHY ID and flags Florian Fainelli
2015-05-22 22:16 ` Petri Gynther
2015-05-25 4:16 ` David Miller
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.