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>
                netdev_err(priv->dev, "Failed to max out clk_ptp_ref: %d\n", err);
        plat_dat->clk_ptp_rate = clk_get_rate(plat_dat->clk_ptp_ref);
 
-       netdev_dbg(priv->dev, "PTP rate %d\n", plat_dat->clk_ptp_rate);
+       netdev_dbg(priv->dev, "PTP rate %lu\n", plat_dat->clk_ptp_rate);
 }
 
 static int qcom_ethqos_probe(struct platform_device *pdev)
 
        struct stmmac_priv *priv = netdev_priv(dev);
        void __iomem *ioaddr = hw->pcsr;
        u32 value = readl(ioaddr + GMAC_CONFIG);
-       u32 clk_rate;
+       unsigned long clk_rate;
 
        value |= GMAC_CORE_INIT;
 
 
  */
 static void stmmac_clk_csr_set(struct stmmac_priv *priv)
 {
-       u32 clk_rate;
+       unsigned long clk_rate;
 
        clk_rate = clk_get_rate(priv->plat->stmmac_clk);
 
 
                dev_info(&pdev->dev, "PTP uses main clock\n");
        } else {
                plat->clk_ptp_rate = clk_get_rate(plat->clk_ptp_ref);
-               dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);
+               dev_dbg(&pdev->dev, "PTP rate %lu\n", plat->clk_ptp_rate);
        }
 
        plat->stmmac_rst = devm_reset_control_get_optional(&pdev->dev,
 
        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;
        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;