From: Romain Perier <romain.perier@collabora.com>
To: Florian Fainelli <f.fainelli@gmail.com>,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
Alexandre Torgue <alexandre.torgue@st.com>,
Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] net: stmmac: Delete dead code for MDIO registration
Date: Tue, 22 Aug 2017 14:00:18 +0200 [thread overview]
Message-ID: <f456374b-ebab-1884-bd5e-e5f32f5e28f1@collabora.com> (raw)
In-Reply-To: <6ea649a3-4418-8025-44a9-72330f632f22@gmail.com>
Hello,
Le 22/08/2017 à 02:45, Florian Fainelli a écrit :
> On 08/21/2017 04:45 AM, Romain Perier wrote:
>> This code is no longer used, the logging function was changed by commit
>> fbca164776e4 ("net: stmmac: Use the right logging functi").
>>
>> Fixes: fbca164776e4 ("net: stmmac: Use the right logging functi")
>> Signed-off-by: Romain Perier <romain.perier@collabora.com>
>> ---
>> drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 16 ----------------
>> 1 file changed, 16 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
>> index 72ec711fcba2..f5f37bfa1d58 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
>> @@ -248,9 +248,6 @@ int stmmac_mdio_register(struct net_device *ndev)
>> found = 0;
>> for (addr = 0; addr < PHY_MAX_ADDR; addr++) {
>> struct phy_device *phydev = mdiobus_get_phy(new_bus, addr);
>> - int act = 0;
>> - char irq_num[4];
>> - char *irq_str;
>>
>> if (!phydev)
>> continue;
>> @@ -273,19 +270,6 @@ int stmmac_mdio_register(struct net_device *ndev)
>> if (priv->plat->phy_addr == -1)
>> priv->plat->phy_addr = addr;
>>
>> - act = (priv->plat->phy_addr == addr);
>> - switch (phydev->irq) {
>> - case PHY_POLL:
>> - irq_str = "POLL";
>> - break;
>> - case PHY_IGNORE_INTERRUPT:
>> - irq_str = "IGNORE";
>> - break;
>> - default:
>> - sprintf(irq_num, "%d", phydev->irq);
>> - irq_str = irq_num;
>> - break;
>> - }
> I was actually just looking into moving these prints to
> phy_attached_info(), since it is useful to know whether the interrupt is
> POLL, IGNORE, or valid. Can you move that there? Then you can really
> migrate over phy_attached_info() with no information loss.
>
> Thanks!
Sure, I can take a look.
Thanks,
Romain
next prev parent reply other threads:[~2017-08-22 12:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-21 11:45 [PATCH v2 0/2] net: stmmac: phy logging fixes Romain Perier
2017-08-21 11:45 ` [PATCH v2 1/2] net: stmmac: Delete dead code for MDIO registration Romain Perier
2017-08-22 0:45 ` Florian Fainelli
2017-08-22 12:00 ` Romain Perier [this message]
2017-08-21 11:45 ` [PATCH v2 2/2] net: phy: Don't use drv when it is NULL in phy_attached_print Romain Perier
2017-08-21 14:24 ` Andrew Lunn
2017-08-22 0:46 ` Florian Fainelli
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=f456374b-ebab-1884-bd5e-e5f32f5e28f1@collabora.com \
--to=romain.perier@collabora.com \
--cc=alexandre.torgue@st.com \
--cc=andrew@lunn.ch \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.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