Re: [PATCH net-next] of: mdio: preserve phy dev_flags in of_phy_connect()

From: Andrew Lunn
Date: Thu Jun 18 2020 - 18:49:01 EST


On Thu, Jun 18, 2020 at 03:04:44PM -0700, rentao.bupt@xxxxxxxxx wrote:
> From: Tao Ren <rentao.bupt@xxxxxxxxx>
>
> Replace assignment "=" with OR "|=" for "phy->dev_flags" so "dev_flags"
> configured in phy probe() function can be preserved.
>
> The idea is similar to commit e7312efbd5de ("net: phy: modify assignment
> to OR for dev_flags in phy_attach_direct").
>
> Signed-off-by: Tao Ren <rentao.bupt@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew