From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Date: Fri, 20 Sep 2019 19:13:50 +0000 Subject: Re: [PATCH 2/2] net/phy/mdio-mscc-miim: Move the setting of mii_bus structure members in mscc_miim_p Message-Id: <20190920191350.GI3530@lunn.ch> List-Id: References: <189ccfc3-d5a6-79fd-29b8-1f7140e9639a@web.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Markus Elfring Cc: netdev@vger.kernel.org, Alexandre Belloni , Florian Fainelli , "David S. Miller" , Heiner Kallweit , LKML , kernel-janitors@vger.kernel.org On Fri, Sep 20, 2019 at 09:03:57PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 20 Sep 2019 20:42:42 +0200 > > Move the modification of some members in the data structure “mii_bus” > for the local variable “bus” directly before the call of > the function “of_mdiobus_register” so that this change will be performed > only after previous resource allocations succeeded. Hi Markus I'm not sure it is worth making this change. The resource allocations succeeds 99.9999% of the time. It is a chunk of MMIO, not some gpio, or i2c device which might give us EPROBE_DEFERRED. So we are not wasting anything in reality. Andrew