[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190115224012.GF26788@lunn.ch>
Date:   Tue, 15 Jan 2019 23:40:12 +0100
From:   Andrew Lunn <andrew@...n.ch>
To:     Heiner Kallweit <hkallweit1@...il.com>
Cc:     Florian Fainelli <f.fainelli@...il.com>,
        David Miller <davem@...emloft.net>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] net: phy: check return code when requesting PHY
 driver module
> I explicitly check for ret < 0. If there's no PHY driver module for
> a specific PHY ID then the return code would be > 0.
> My understanding of request_module() is that a return code < 0
> is returned if something bad happens in modprobe() call as such.
Ah, O.K. I was expecting an ENODEV or similar if there was no module
to load.
I wonder if this depends on the user space implementation? busybox
might do something different to udev?
Maybe add a comment about the expectation that no error is given when
the module does not exist.
    Andrew
Powered by blists - more mailing lists
 
