]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: qcom-ethqos: use u32 for rgmii read/write/update
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 20 Nov 2025 11:25:16 +0000 (11:25 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Nov 2025 02:13:44 +0000 (18:13 -0800)
commitf54bbd390f5fc038cf6ad75432c83b3cedf9bef4
tree3b3183a4cbf7bec02f9dcd3f47f13c224801b2bd
parent501253b61d843745e6e1f1fd3b39a49785ffcbf4
net: stmmac: qcom-ethqos: use u32 for rgmii read/write/update

readl() returns a u32, and writel() takes a "u32" for the value. These
are used in rgmii_readl()() and rgmii_writel(), but the value and
return are "int". As these are 32-bit register values which are not
signed, use "u32".

These changes do not cause generated code changes.

Update rgmii_updatel() to use u32 for mask and val. Changing "mask"
to "u32" also does not cause generated code changes. However, changing
"val" causes the generated assembly to be re-ordered for aarch64.

Update the temporary variables used with the rgmii functions to use
u32.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/E1vM2mq-0000000FRTi-3y5F@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c