Netdev List
 help / color / mirror / Atom feed
From: Hans Zhang <18255117159@163.com>
To: Jijie Shao <shaojijie@huawei.com>,
	andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com
Cc: linux@armlinux.org.uk, netdev@vger.kernel.org,
	Liwen Gan <1006811761@qq.com>
Subject: Re: [PATCH v2 3/3] net: use dev_err_probe() for MDIO bus registration errors
Date: Tue, 1 Dec 2026 15:57:18 +0800	[thread overview]
Message-ID: <dd112a46-d93e-47a2-84f9-b1c7162b67c8@163.com> (raw)
In-Reply-To: <c7060fae-a220-4af2-aac3-636156c50943@huawei.com>



On 12/1/26 14:18, Jijie Shao wrote:
>>       }
>> diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 
>> b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
>> index cf881108fa570..c3b8017443326 100644
>> --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
>> +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
>> @@ -154,8 +154,8 @@ int hclge_mac_mdio_config(struct hclge_dev *hdev)
>>       mdio_bus->phy_mask = ~(1U << mac->phy_addr);
>>       ret = mdiobus_register(mdio_bus);
>>       if (ret) {
>> -        dev_err(mdio_bus->parent,
>> -            "failed to register MDIO bus, ret = %d\n", ret);
>> +        dev_err_probe(mdio_bus->parent, ret,
>> +                  "failed to register MDIO bus\n");
>>           return ret;
> 
> Hi:
> 
> Could you please simplify this to`return dev_err_probe(...)` and remove 
> the braces.


Hi Jijie,

Thanks for the review.

I'll simplify that to return dev_err_probe(...) and remove the braces, 
and apply the same cleanup to the other call sites in patch 3 where the 
error block only logs and returns. I'll send v3 with these changes.

Best regards,
Hans


  reply	other threads:[~2026-12-01  7:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  4:22 [PATCH v2 0/3] prepare MDIO callers for -EPROBE_DEFER from __mdiobus_register() Hans Zhang
2026-12-01  4:23 ` [PATCH v2 1/3] net: ethernet: lantiq_etop: propagate mdiobus_register() errors Hans Zhang
2026-12-01  4:23 ` [PATCH v2 2/3] net: ethernet: smsc911x: " Hans Zhang
2026-12-01  4:23 ` [PATCH v2 3/3] net: use dev_err_probe() for MDIO bus registration errors Hans Zhang
2026-12-01  6:18   ` Jijie Shao
2026-12-01  7:57     ` Hans Zhang [this message]
2026-12-04  1:23   ` netdev-bot+sashiko

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=dd112a46-d93e-47a2-84f9-b1c7162b67c8@163.com \
    --to=18255117159@163.com \
    --cc=1006811761@qq.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shaojijie@huawei.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