diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-11-20 11:25:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-21 18:13:44 -0800 |
| commit | f54bbd390f5fc038cf6ad75432c83b3cedf9bef4 (patch) | |
| tree | 3b3183a4cbf7bec02f9dcd3f47f13c224801b2bd /net/dsa/switch.c | |
| parent | 501253b61d843745e6e1f1fd3b39a49785ffcbf4 (diff) | |
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>
Diffstat (limited to 'net/dsa/switch.c')
0 files changed, 0 insertions, 0 deletions
