Re: [PATCH net] net: emac: guard PHY bitmap teardown

From: Andrew Lunn

Date: Tue Oct 20 2026 - 20:50:52 EST


On Tue, Oct 20, 2026 at 03:27:23PM -0700, Rosen Penev wrote:
> PHY-less and fixed-link configurations retain a negative PHY address.
> Avoid shifting by that value while removing the device, and serialize the
> bitmap update with PHY discovery.
>
> Fixes: d6f144830bdf ("ibm/emac: fix improper cleanup when device is removed to allow re-bind")
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

This is actually two different fixes.

Please split this into two patches, one adding the mutex lock/unlock,
and the second looking for -1.

Since this is a LLM found issues, not one which actually bothers
anybody, please submit to net-next, without the Fixes tag.

Andrew