]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: lynx-28g: optimize read-modify-write operation
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 10 Jun 2026 15:19:48 +0000 (18:19 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 07:09:47 +0000 (12:39 +0530)
commitf64ef1995dd6f902da0bd3bc60c72c825098b652
treea768c10844f8c25945922084782b280120dfd1a8
parentc6c1d7dfd59b181b96b0909b63e140b0aa61ac59
phy: lynx-28g: optimize read-modify-write operation

It is unnecessary to rewrite a register if the masked field already
contains the desired value upon reading. The hardware behaviour does not
depend upon register writes with identical values.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260610151952.2141019-13-vladimir.oltean@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-lynx-core.h