net: pcs: xpcs: mask readl() return value to 16 bits
authorJack Ping CHNG <jchng@maxlinear.com>
Wed, 16 Jul 2025 03:03:49 +0000 (11:03 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 01:45:27 +0000 (18:45 -0700)
commit2b0ba7b5b010455c4e43ab557860f8b1089e7424
treed906e2a9eca1ba1d589b61932080f3604c52c0e0
parent49be1e245ea3e3515c5989ce1af215d8500dec85
net: pcs: xpcs: mask readl() return value to 16 bits

readl() returns 32-bit value but Clause 22/45 registers are 16-bit wide.
Masking with 0xFFFF avoids using garbage upper bits.

Signed-off-by: Jack Ping CHNG <jchng@maxlinear.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250716030349.3796806-1-jchng@maxlinear.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pcs/pcs-xpcs-plat.c