[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200422.122017.1465452641535232301.davem@davemloft.net>
Date: Wed, 22 Apr 2020 12:20:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: hkallweit1@...il.com
Cc: andrew@...n.ch, f.fainelli@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 0/2] net: phy: add device-managed
devm_mdiobus_register
From: Heiner Kallweit <hkallweit1@...il.com>
Date: Mon, 20 Apr 2020 23:28:19 +0200
> If there's no special ordering requirement for mdiobus_unregister(),
> then driver code can be simplified by using a device-managed version
> of mdiobus_register(). Prerequisite is that bus allocation has been
> done device-managed too. Else mdiobus_free() may be called whilst
> bus is still registered, resulting in a BUG_ON(). Therefore let
> devm_mdiobus_register() return -EPERM if bus was allocated
> non-managed.
>
> First user of the new functionality is r8169 driver.
Series applied, thanks Heiner.
Powered by blists - more mailing lists