From: Heiner Kallweit <hkallweit1@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: krzk@kernel.org, andrew@lunn.ch, f.fainelli@gmail.com,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: phy: fix issue with loading PHY driver w/o initramfs
Date: Wed, 23 Jan 2019 07:08:26 +0100 [thread overview]
Message-ID: <b9f13269-b365-b90e-b94a-184b0d28b5a4@gmail.com> (raw)
In-Reply-To: <20190122.144514.1376079275051498197.davem@davemloft.net>
On 22.01.2019 23:45, David Miller wrote:
> From: Heiner Kallweit <hkallweit1@gmail.com>
> Date: Sat, 19 Jan 2019 10:30:21 +0100
>
>> It was reported that on a system with nfsboot and w/o initramfs network
>> fails because trying to load the PHY driver returns -ENOENT. Reason was
>> that due to missing initramfs the modprobe binary isn't available.
>> So we have to ignore error code -ENOENT.
>>
>> Fixes: 13d0ab6750b2 ("net: phy: check return code when requesting PHY driver module")
>> Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>
> Applied.
>
> However, I agree with Geert that we should adopt the:
>
> if (module_not_present)
> request_module();
> if (module_not_present)
> goto failed_to_load;
>
> pattern.
>
I know this is the standard pattern for request_module().
Unfortunately the situation is a little bit tricky with PHY drivers.
We don't know whether there's a module matching the PHY ID and
it's a valid use case that there's no such module.
In such a case we bind the genphy driver later, and a lot of PHY's
are totally happy with the genphy driver and therefore no dedicated
PHY drivers exist.
next prev parent reply other threads:[~2019-01-23 6:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-19 9:30 [PATCH net-next] net: phy: fix issue with loading PHY driver w/o initramfs Heiner Kallweit
2019-01-21 14:46 ` Krzysztof Kozlowski
2019-01-22 15:52 ` [net-next] " Geert Uytterhoeven
2019-01-22 22:45 ` [PATCH net-next] " David Miller
2019-01-23 6:08 ` Heiner Kallweit [this message]
2019-01-23 10:06 ` [net-next] " Geert Uytterhoeven
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=b9f13269-b365-b90e-b94a-184b0d28b5a4@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=krzk@kernel.org \
--cc=netdev@vger.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