diff options
author | Jan Petrous (OSS) <jan.petrous@oss.nxp.com> | 2024-12-05 17:43:00 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-09 18:36:02 -0800 |
commit | cb09f61a9ab84369c62f2ef7f8a2b797f596f6d1 (patch) | |
tree | c12528ab0d3157a508c7e0b4b5c65deef245503f /include/linux/stmmac.h | |
parent | c8fab05d021dfc04401102f9fa1de07fc8f75d8d (diff) | |
download | linux-cb09f61a9ab84369c62f2ef7f8a2b797f596f6d1.tar.gz linux-cb09f61a9ab84369c62f2ef7f8a2b797f596f6d1.tar.bz2 linux-cb09f61a9ab84369c62f2ef7f8a2b797f596f6d1.zip |
net: stmmac: Fix clock rate variables size
The clock API clk_get_rate() returns unsigned long value.
Expand affected members of stmmac platform data and
convert the stmmac_clk_csr_set() and dwmac4_core_init() methods
to defining the unsigned long clk_rate local variables.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jan Petrous (OSS) <jan.petrous@oss.nxp.com>
Link: https://patch.msgid.link/20241205-upstream_s32cc_gmac-v8-3-ec1d180df815@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 865d0fe26f98..c9878a612e53 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -252,8 +252,8 @@ struct plat_stmmacenet_data { struct clk *stmmac_clk; struct clk *pclk; struct clk *clk_ptp_ref; - unsigned int clk_ptp_rate; - unsigned int clk_ref_rate; + unsigned long clk_ptp_rate; + unsigned long clk_ref_rate; unsigned int mult_fact_100ns; s32 ptp_max_adj; u32 cdc_error_adj; @@ -265,7 +265,7 @@ struct plat_stmmacenet_data { int mac_port_sel_speed; int has_xgmac; u8 vlan_fail_q; - unsigned int eee_usecs_rate; + unsigned long eee_usecs_rate; struct pci_dev *pdev; int int_snapshot_num; int msi_mac_vec; |