Commit 2b0ba7b5 authored by Jack Ping CHNG's avatar Jack Ping CHNG Committed by Jakub Kicinski
Browse files

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: default avatarJack Ping CHNG <jchng@maxlinear.com>
Reviewed-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250716030349.3796806-1-jchng@maxlinear.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 49be1e24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment