From: Florian Fainelli <f.fainelli@gmail.com>
To: "Александра Дюпина" <adiupina@astralinux.ru>,
"Andrew Lunn" <andrew@lunn.ch>
Cc: Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Sebastian Reichel <sre@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
lvc-project@linuxtesting.org
Subject: Re: [PATCH] net: dsa: add return value check of genphy_read_status()
Date: Wed, 20 Mar 2024 16:48:31 -0700 [thread overview]
Message-ID: <05a042d5-95fa-4eff-b2ad-c26e865837b1@gmail.com> (raw)
In-Reply-To: <bb752899-dbf3-4dd2-89f0-d280488bd8bf@astralinux.ru>
On 15/03/2024 03:25, Александра Дюпина wrote:
> Hello, Andrew!
(please do not top-post)
>
> The dsa_register_switch() function is used in various DSA
> drivers (in probe function), so it is necessary to check all
> possible errors. If the return value (may be an error code)
> of genphy_read_status() is not checked in
> dsa_shared_port_fixed_link_register_of(), a possible error
> in dsa_register_switch() may be missed.
This is not a path that will fail, because the fixed PHY emulation layer
is not a real piece of hardware, therefore no MDIO read could really
cause a problem here. I don't have a strong opinion however if you want
to propagate it properly.
--
Florian
next prev parent reply other threads:[~2024-03-20 23:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-14 6:30 Alexandra Diupina
2024-03-14 13:02 ` Andrew Lunn
2024-03-15 10:25 ` Александра Дюпина
2024-03-20 23:48 ` Florian Fainelli [this message]
2024-03-21 12:06 ` Alexandra Diupina
2024-03-27 14:08 ` [lvc-project] " Alexandra Diupina
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=05a042d5-95fa-4eff-b2ad-c26e865837b1@gmail.com \
--to=f.fainelli@gmail.com \
--cc=adiupina@astralinux.ru \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lvc-project@linuxtesting.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=sre@kernel.org \
/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
all inboxes | Powered by JetHome®