From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: "shh.xie@gmail.com" <shh.xie@gmail.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: [PATCH 2/3] net/fsl: remove irq assignment from xgmac_mdio
Date: Wed, 24 Dec 2014 13:51:13 +0300 [thread overview]
Message-ID: <549A9AA1.4020806@cogentembedded.com> (raw)
In-Reply-To: <DM2PR0301MB08643B456EB87328ACF71CC5E2540@DM2PR0301MB0864.namprd03.prod.outlook.com>
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
prev parent reply other threads:[~2014-12-24 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=549A9AA1.4020806@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=Shaohui.Xie@freescale.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shh.xie@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).