From: Paolo Abeni <pabeni@redhat.com>
To: Rosen Penev <rosenp@gmail.com>
Cc: netdev@vger.kernel.org,
Florian Fainelli <florian.fainelli@broadcom.com>,
Jonas Gorski <jonas.gorski@gmail.com>,
Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCHv3 net-next] net: dsa: b53: srab: propagate errors from init helpers
Date: Wed, 5 Aug 2026 09:16:52 +0200 [thread overview]
Message-ID: <706584f1-6b68-46d6-9a32-999100ee6447@redhat.com> (raw)
In-Reply-To: <CAKxU2N_hCnbJRRtP5bqVVRavORZVk-1UbKMEZ6s-FhjkDEbMUA@mail.gmail.com>
On 8/4/26 10:55 PM, Rosen Penev wrote:
> On Tue, Aug 4, 2026 at 4:00 AM Paolo Abeni <pabeni@redhat.com> wrote:
>>
>> On 7/29/26 10:29 PM, Rosen Penev wrote:
>>> -static void b53_srab_mux_init(struct platform_device *pdev)
>>> +static int b53_srab_mux_init(struct platform_device *pdev)
>>> {
>>> struct b53_device *dev = platform_get_drvdata(pdev);
>>> struct b53_srab_priv *priv = dev->priv;
>>> struct b53_srab_port_priv *p;
>>> + void __iomem *mux_config;
>>> unsigned int port;
>>> u32 reg, off = 0;
>>> int ret;
>>>
>>> - if (dev->pdata && dev->pdata->chip_id != BCM58XX_DEVICE_ID)
>>> - return;
>>> + if (!dev->pdata || dev->pdata->chip_id != BCM58XX_DEVICE_ID)
>>> + return 0;
>>>
>>> - priv->mux_config = devm_platform_ioremap_resource(pdev, 1);
>>> - if (IS_ERR(priv->mux_config))
>>> - return;
>>> + mux_config = devm_platform_ioremap_resource(pdev, 1);
>>> + if (IS_ERR(mux_config))
>>> + return PTR_ERR(mux_config);
>>
>> Sashiko noted this strict checking may cause regression on previously
>> working setup:
>>
>> https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260729202953.704662-1-rosenp%40gmail.com
> It mentions this only applying to out of tree dtbs.
Ah, it was not obvious to me. Restoring the patch in PW. For the future
please see net-next commit bd5c24e4001d.
/P
next prev parent reply other threads:[~2026-08-05 7:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 20:29 [PATCHv3 net-next] net: dsa: b53: srab: propagate errors from init helpers Rosen Penev
2026-08-04 11:00 ` Paolo Abeni
2026-08-04 20:55 ` Rosen Penev
2026-08-05 7:16 ` Paolo Abeni [this message]
2026-08-05 17:59 ` Jonas Gorski
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=706584f1-6b68-46d6-9a32-999100ee6447@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=florian.fainelli@broadcom.com \
--cc=jonas.gorski@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=rosenp@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