]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: lantiq_gswip: harmonize gswip_mii_mask_*() parameters
authorDaniel Golle <daniel@makrotopia.org>
Tue, 21 Oct 2025 11:17:33 +0000 (12:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Oct 2025 01:53:06 +0000 (18:53 -0700)
commitb0911b9e014004d3e617e8bba27000f521a26422
treeba3bb97da10d5d2c340061eae21ed4d13924a77e
parent1d88358303fc81896b92e50eb732b726e7b88ee6
net: dsa: lantiq_gswip: harmonize gswip_mii_mask_*() parameters

The 'clear' parameter of gswip_mii_mask_cfg() and gswip_mii_mask_pcdu()
is inconsistent with the semantics of regmap_write_bits() which also
applies the mask to the value to be written.
Change the semantic mask/set of the functions gswip_mii_mask_cfg() and
gswip_mii_mask_pcdu() to follow the regmap_write_bits() pattern.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by; Hauke Mehrtens <hauke@hauke-m.de>:
Acked-by; Hauke Mehrtens <hauke@hauke-m.de>:
Link: https://patch.msgid.link/218854236c97a152af071852bda83d02ff2dd918.1761045000.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq/lantiq_gswip.c