Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1304403 > unrolled thread
| Started by | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| First post | 2016-01-08 12:30 +0100 |
| Last post | 2016-01-11 04:50 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH 1/2] phy: fix blackfin build failure Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-01-08 12:30 +0100
Re: [PATCH 1/2] phy: fix blackfin build failure Andrew Lunn <andrew@lunn.ch> - 2016-01-08 17:00 +0100
Re: [PATCH 1/2] phy: fix blackfin build failure David Miller <davem@davemloft.net> - 2016-01-11 04:50 +0100
| From | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| Date | 2016-01-08 12:30 +0100 |
| Subject | [PATCH 1/2] phy: fix blackfin build failure |
| Message-ID | <qODp0-60g-9@gated-at.bofh.it> |
The build of blackfin defconfig is failing with the error:
error: 'struct mii_bus' has no member named 'phy_map'
A new API mdiobus_get_phy() was introduced and phy_map was removed but
it was not changed here.
Fixes: 7f854420fbfe ("phy: Add API for {un}registering an mdio device to a bus.")
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
build log of next-20160108 is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/101006125
drivers/net/ethernet/adi/bfin_mac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index 6286274..6f3432a 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -398,7 +398,8 @@ static int mii_probe(struct net_device *dev, int phy_mode)
/* search for connected PHY device */
for (i = 0; i < PHY_MAX_ADDR; ++i) {
- struct phy_device *const tmp_phydev = lp->mii_bus->phy_map[i];
+ struct phy_device *const tmp_phydev =
+ mdiobus_get_phy(lp->mii_bus, i);
if (!tmp_phydev)
continue; /* no PHY here... */
--
1.9.1
[toc] | [next] | [standalone]
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Date | 2016-01-08 17:00 +0100 |
| Message-ID | <qOHCj-kf-13@gated-at.bofh.it> |
| In reply to | #1304403 |
On Fri, Jan 08, 2016 at 04:58:14PM +0530, Sudip Mukherjee wrote:
> The build of blackfin defconfig is failing with the error:
> error: 'struct mii_bus' has no member named 'phy_map'
>
> A new API mdiobus_get_phy() was introduced and phy_map was removed but
> it was not changed here.
>
> Fixes: 7f854420fbfe ("phy: Add API for {un}registering an mdio device to a bus.")
> Cc: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
Hi David.
Acked-by: Andrew Lunn <andrew@lunn.ch>
This is one more of the late 0-day reports i got. Please take these
two, along with the two fixes i posted yesterday.
Andrew
>
> build log of next-20160108 is at:
> https://travis-ci.org/sudipm-mukherjee/parport/jobs/101006125
>
> drivers/net/ethernet/adi/bfin_mac.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
> index 6286274..6f3432a 100644
> --- a/drivers/net/ethernet/adi/bfin_mac.c
> +++ b/drivers/net/ethernet/adi/bfin_mac.c
> @@ -398,7 +398,8 @@ static int mii_probe(struct net_device *dev, int phy_mode)
>
> /* search for connected PHY device */
> for (i = 0; i < PHY_MAX_ADDR; ++i) {
> - struct phy_device *const tmp_phydev = lp->mii_bus->phy_map[i];
> + struct phy_device *const tmp_phydev =
> + mdiobus_get_phy(lp->mii_bus, i);
>
> if (!tmp_phydev)
> continue; /* no PHY here... */
> --
> 1.9.1
>
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-01-11 04:50 +0100 |
| Message-ID | <qPBEt-5cr-3@gated-at.bofh.it> |
| In reply to | #1304403 |
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: Fri, 8 Jan 2016 16:58:14 +0530
> The build of blackfin defconfig is failing with the error:
> error: 'struct mii_bus' has no member named 'phy_map'
>
> A new API mdiobus_get_phy() was introduced and phy_map was removed but
> it was not changed here.
>
> Fixes: 7f854420fbfe ("phy: Add API for {un}registering an mdio device to a bus.")
> Cc: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web