* [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
@ 2014-12-23 9:46 shh.xie
2014-12-23 14:11 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: shh.xie @ 2014-12-23 9:46 UTC (permalink / raw)
To: netdev, davem; +Cc: Shaohui Xie
From: Shaohui Xie <Shaohui.Xie@freescale.com>
Which is wrong and not used, so no extra space needed by
mdio_alloc_size(), change the parameter accordingly.
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
---
drivers/net/ethernet/freescale/xgmac_mdio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 90adba1..72e0b85 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -187,14 +187,13 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
return ret;
}
- bus = mdiobus_alloc_size(PHY_MAX_ADDR * sizeof(int));
+ bus = mdiobus_alloc_size(0);
if (!bus)
return -ENOMEM;
bus->name = "Freescale XGMAC MDIO Bus";
bus->read = xgmac_mdio_read;
bus->write = xgmac_mdio_write;
- bus->irq = bus->priv;
bus->parent = &pdev->dev;
snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res.start);
--
1.8.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
2014-12-23 9:46 [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio shh.xie
@ 2014-12-23 14:11 ` Sergei Shtylyov
2014-12-24 2:22 ` Shaohui Xie
0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2014-12-23 14:11 UTC (permalink / raw)
To: shh.xie, netdev, davem; +Cc: Shaohui Xie
Hello.
On 12/23/2014 12:46 PM, shh.xie@gmail.com wrote:
> From: Shaohui Xie <Shaohui.Xie@freescale.com>
> Which is wrong and not used, so no extra space needed by
> mdio_alloc_size(), change the parameter accordingly.
> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> ---
> drivers/net/ethernet/freescale/xgmac_mdio.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
> index 90adba1..72e0b85 100644
> --- a/drivers/net/ethernet/freescale/xgmac_mdio.c
> +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
> @@ -187,14 +187,13 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
> return ret;
> }
>
> - bus = mdiobus_alloc_size(PHY_MAX_ADDR * sizeof(int));
> + bus = mdiobus_alloc_size(0);
It's now equivalent to a mere mdiobus_alloc().
[...]
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
2014-12-23 14:11 ` Sergei Shtylyov
@ 2014-12-24 2:22 ` Shaohui Xie
2014-12-24 10:51 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: Shaohui Xie @ 2014-12-24 2:22 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: shh.xie@gmail.com, netdev@vger.kernel.org, davem@davemloft.net
> -----Original Message-----
> From: Sergei Shtylyov [mailto:sergei.shtylyov@cogentembedded.com]
> Sent: Tuesday, December 23, 2014 10:12 PM
> To: shh.xie@gmail.com; netdev@vger.kernel.org; davem@davemloft.net
> Cc: Xie Shaohui-B21989
> Subject: Re: [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
>
> Hello.
>
> On 12/23/2014 12:46 PM, shh.xie@gmail.com wrote:
>
> > From: Shaohui Xie <Shaohui.Xie@freescale.com>
>
> > Which is wrong and not used, so no extra space needed by
> > mdio_alloc_size(), change the parameter accordingly.
>
> > Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> > ---
> > drivers/net/ethernet/freescale/xgmac_mdio.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
>
> > diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c
> > b/drivers/net/ethernet/freescale/xgmac_mdio.c
> > index 90adba1..72e0b85 100644
> > --- a/drivers/net/ethernet/freescale/xgmac_mdio.c
> > +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
> > @@ -187,14 +187,13 @@ static int xgmac_mdio_probe(struct
> platform_device *pdev)
> > return ret;
> > }
> >
> > - bus = mdiobus_alloc_size(PHY_MAX_ADDR * sizeof(int));
> > + bus = mdiobus_alloc_size(0);
>
> It's now equivalent to a mere mdiobus_alloc().
[S.H] Yes, mdiobus_alloc() defined as:
static inline struct mii_bus *mdiobus_alloc(void)
{
return mdiobus_alloc_size(0);
}
Should I use mdiobus_alloc() instead?
Thanks!
Shaohui
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
2014-12-24 2:22 ` Shaohui Xie
@ 2014-12-24 10:51 ` Sergei Shtylyov
0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-12-24 10:51 UTC (permalink / raw)
To: Shaohui Xie
Cc: shh.xie@gmail.com, netdev@vger.kernel.org, davem@davemloft.net
Hello.
On 12/24/2014 5:22 AM, Shaohui Xie wrote:
[...]
>>> From: Shaohui Xie <Shaohui.Xie@freescale.com>
>>> Which is wrong and not used, so no extra space needed by
>>> mdio_alloc_size(), change the parameter accordingly.
>>> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
>>> ---
>>> drivers/net/ethernet/freescale/xgmac_mdio.c | 3 +--
>>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>> diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c
>>> b/drivers/net/ethernet/freescale/xgmac_mdio.c
>>> index 90adba1..72e0b85 100644
>>> --- a/drivers/net/ethernet/freescale/xgmac_mdio.c
>>> +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
>>> @@ -187,14 +187,13 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
>>> return ret;
>>> }
>>>
>>> - bus = mdiobus_alloc_size(PHY_MAX_ADDR * sizeof(int));
>>> + bus = mdiobus_alloc_size(0);
>> It's now equivalent to a mere mdiobus_alloc().
> [S.H] Yes, mdiobus_alloc() defined as:
> static inline struct mii_bus *mdiobus_alloc(void)
> {
> return mdiobus_alloc_size(0);
> }
> Should I use mdiobus_alloc() instead?
Yes, I meant it.
> Thanks!
> Shaohui
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-24 10:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-23 9:46 [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio shh.xie
2014-12-23 14:11 ` Sergei Shtylyov
2014-12-24 2:22 ` Shaohui Xie
2014-12-24 10:51 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).