From patchwork Sun Aug 4 20:49:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Petrous X-Patchwork-Id: 13752712 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E9B8C3DA7F for ; Sun, 4 Aug 2024 20:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=h/OCgEgTxC3St53drlLN828a2omQ4ZUJEeU2RiR6h/0=; b=LyykJrOWKziulaP93RdsnXyCxU 8TAxTrcx9LJm5EssbSZ27CLjdMqye43S7Owr9XLGQZvDgj8aGk5ONMZgYfoQ8NoYvrjEgNBPbSljp RPHZBzD7JaQs5d9uOxMzvKlFUDiENlRYmdaH50hGX1e20kM/2oBIIV14/Uu9a21fq9OBg4qvOI2YW UjLN9227cMEP+Meo75QoNOJNTPZbqLlswABQpoEFoS99udNQnSHTidr23k3uAiYzwqrk7oT2SbxCb eseTWNzoquxeFx6iGCNrawG4oAw7RCBcn/UfiAGDKcaa0LBHCJsh7SV8kA6VfKIRndNyvWpN/o8uN RDUztadw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1saiBd-0000000Dtns-0LYz; Sun, 04 Aug 2024 20:50:41 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1saiAr-0000000DtXO-2lo1 for linux-arm-kernel@lists.infradead.org; Sun, 04 Aug 2024 20:49:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qqRY/FxU6ImvBcX8p21D90k+yjtct+otYR0i6JA7FdIbH4MeU8R52nyQ0oEM6SlJtDCV1uNuBHaCpIHkNQJJFvAC5bkpZp7E7fMTGUwFCebUYOex5OOjmpOfsGmiOaWzi3lF0OdKFXCHlARQbvF5EdDUlflQFUpou90EYDUm95TPgaD3u2DvPEA849uKg4Oo0NmWfFgN+9+npcXLFxuXYcZdReid28zsgjq4f517FrWJAQB1exX1VinNrOQtAftp5hiOeRB2vwY/3KAYuQvfHPIkx0RrvnWk5trXXILD9fBYi8c9iuMv55FDGzsmBE2FX01WJHNKtJDO64T0oMdBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=h/OCgEgTxC3St53drlLN828a2omQ4ZUJEeU2RiR6h/0=; b=r90+zLya0i96dnBUplmPiFAyd+Cfaay6Va6vPBlD4JDzA/cmhtZftVwtwcvArYwnOcciMCDl/6bJIlASxLUe13OAyax5MLjvH3zCcK0UuY/40p5FwguXsSYBAE71zoipjRMmdtzJN32vCQNrBK+7mbL6rumkzRRRtQXX5wBCov0biESaYnPHOoGA/o+sffV/2JfCl+sf0sH2PLE+dfYuskKqTrcntRnDLfkMhN86agKTcb4Z/1L67l52xS5XSYzvC0c06M8T1oVbr5uu05ZiqLis6FvtphT179Cxkuv4CpaQxnXRX0kGM0wcoC1chwFxSqm7AKA5x+GKRnz0C3QasQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h/OCgEgTxC3St53drlLN828a2omQ4ZUJEeU2RiR6h/0=; b=lXvq/buU/phRItTrxzR9AV3WTEbgg/OrgM9F70RGbK9GcKLETbAu+UebB6OojJ3roFq2j9DMDHpWwzgrIRjdCbb3CaLwyWsX5g7A74lxle8Wtlfc6nDAj5KbrAaOqwbrw7APfjBUT/f5i43HjivBz9mwhikmJF8xqkdzjVc6euN2Ukv0MlCeTpBnKsOOJFfaZnaD+g4g92YWNac5CErL0URLygiI+K/sIl6I0bxBHzpM5Xcu+tkw4pbloBeY0ouK2CZ56rrUGlaZ8fjSdq7KAFOANLp+zdFxCixBOupgC1pS7M7QeWmd6B/n3BvUess5YscEah2e86ZgxsnbrvfmWg== Received: from AM9PR04MB8506.eurprd04.prod.outlook.com (2603:10a6:20b:431::16) by PA4PR04MB7965.eurprd04.prod.outlook.com (2603:10a6:102:c9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Sun, 4 Aug 2024 20:49:49 +0000 Received: from AM9PR04MB8506.eurprd04.prod.outlook.com ([fe80::5f7:9bab:66a3:fe27]) by AM9PR04MB8506.eurprd04.prod.outlook.com ([fe80::5f7:9bab:66a3:fe27%4]) with mapi id 15.20.7828.024; Sun, 4 Aug 2024 20:49:49 +0000 From: "Jan Petrous (OSS)" To: Maxime Coquelin , Alexandre Torgue CC: dl-S32 , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , Claudiu Manoil , "netdev@vger.kernel.org" Subject: [PATCH 2/6] net: stmmac: Expand clock rate variables Thread-Topic: [PATCH 2/6] net: stmmac: Expand clock rate variables Thread-Index: AdrmqsaM0WqC9DJ8TumkGgCGdwvf/w== Date: Sun, 4 Aug 2024 20:49:49 +0000 Message-ID: Accept-Language: cs-CZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM9PR04MB8506:EE_|PA4PR04MB7965:EE_ x-ms-office365-filtering-correlation-id: 3e517082-a172-4f82-2316-08dcb4c6fb92 x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: s2vJFxvmvb0+W6ADrT/gNdAXY2X+hruw2n7RrhZ2nkRTjy3jTcdHDAoGzf0Zda6JXr1L2Q3b6NmtQViPgtXDc/eF7oHDypkJTxIOnPtFc2LVX8L2fznLHzkPLET3ZjZwzEIaaPhw0vP/SsXeEG6Z0yuersF5mIZ2/UiaEfKPi8EUzhXQgKrUHVPNrYrhg+sZ41AmrRxU/91Sv+X0+kGRlLKp231IlUNufwozNMrDI1NClToP+fcYu8RO7/aF8k5yba2i79BA0OSjCTMiLC/mGV4YwLg8l07Uoyv3zdWhzbulTvpX7bd1+RbOzsskOjkPcPddk7sSKie10cgJQK/Twm+92d9cgy7YvohoviagNkT3rkYu6tiq0xNtUA/QHxgWxaecb4qIDThRpo/f2iAfbj6OKuine/7Y1oBIN8QpQmWmhEMC+dVOWmiCMoSL2OSiqdLZL6DZhfon5Qxv7baeGlbRCYCgtndAgLKUF3y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1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: DlD+PusbAnObo1UJRM+QodCAuT8coSZq+T3nHaZuokB4+kpt/qP/dccyU9iSM1Hz/FGJ2+LLl76uIo7LzuRxvcgTTz8AuvRh34Io+RcKP23jQ5+d46+MFHhoX5fqvtT7am6ThTbQa85b+hmHZCqAU/noI2wh5VfSzoQ16wXXIYk/gCjlD1VNBViLipdcCcWe71JQOVGVeE1MBrGSom+xXExPasXhWIPp29H3REYrBJW1/DJHZFJwCAWVu9e67dRXWLLXkJyAilg8TBdWV705vq/vrdFr4jEcKWSNFcg1ZE1llt++1gmaLtPfPk5quy89dKcWwnqdpbzQ07f5ngSO+5AMv1HgzWECHWz2VzuhN930t4Ukp5NjRT8Cxx1LZq9ZEwgNZlg/ES2kN/1WJXDIHbvecpvrz0i/h0J8y8riyd2wo2/1u+EMe4sbPcwkqI3FNalYfbCAZbS2xiGbPIghdglas0+qD/fDGVPbpKy91solux2XmF2s3tfQ788VA+rHIUnVf6LznK13luQRuY0WU+WNdcLa3lUh2kivv6NtaT5bwsj3LXJhG/Xk/7mW0hJyD7o9qBHZl8GQojbE60F051/1t2896a8XpU2PC33CbSnNQ3d9YK2VZahuUpLyd+oYEqmACCT0zEfYiVeXNKvX8SNAXu+SiUW4NCZE4ITa2YdgflYlhSKbEhcJEoU2kSFmbdcW8Ziv9BeAnu/s+hdfqWYVEKmhOs2U/cHRea8ToCD2I4qqQG53zyLDfTVMcqf1HumxKS3c9l06906Zv686zPAHPizvRNJZ+uZsXREFjNU0kYx022DyDDwrZlPwP0VG+c0pmF1yoPWjkgHuGALKWt3lGY6//rC+bLY7fbwc1S9ZD+0JvBIg3CqCXw2Lygzx4RsVRwqzc44XgZZJGpl7G7ujCmvcmjNLUAlQCa8vgINSfh9sPPTEiIB1yN5E7XuR3W1Gz5Z7tu2Cpk7h3Rloxnh8k63oDY/6T4xaGaF1yBAAPP4/4wp2XHWfRzxcYAqjYVoxOg0foAW1VzNwW6ewfOgqHXrLwqE5l2vo2d3UJOookeLKWND8/dscDDbzORJ5HFauE6qCccG6u4ONdc8DdhnkWo+t3o2WBeskv2/6vBGJTGXjAJN36bsENerqH+tQGZN54VUFMmeXtFrwVW821E84w6SfUmRni5BeZQoUba5sZJ6U+OCssXffyuE+0fKe9D4JC5S7yAkdT/4Jw+01uQOzrtcdLvI7H5NqVcew7KPjhezNCRIPtRJeAWuP/i5oIyzAZaKAvPW5pKlknUUBcPyi5hvvp4dyVUsYePVXgA3PTTVjfzAGwJt2pXeWh4Bj15GluKhn3j2ttYA3DO2H+EsJ5i/hag83MI5wCMXrdxWdNs5957RG4bqHkXjf9KMd2kPuF133dNPcL24xXCXvTk92DyjV2aDh7/X4JJgJh5N5Dq1qJY+I11UYvONZ5u9d+Sfuk9mVlgdE9NhV9gVU0cfyWJDfnXRv7jEo9FKrRaMrGipwejyRIjjXm656Q6gmrp4eHOGQEY4waCTTzhxXfbt6SMYACOLjQEUI68r+pNhR0UvIPa16Co/kCQ80Bu3h MIME-Version: 1.0 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8506.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e517082-a172-4f82-2316-08dcb4c6fb92 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2024 20:49:49.6665 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MvjY9BChH6JNreqE3unT0fAWCqtV0dYrrRsSNn0PALnCGjtgvR1PJh+QwJsx7NwYv+tQYsj2/iJEzhzqQERfGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7965 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_134953_724417_A1AD5370 X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clock API clk_get_rate() returns unsigned long value. Expand affected members of stmmac platform data. Signed-off-by: Jan Petrous (OSS) Reviewed-by: Andrew Lunn Reviewed-by: Serge Semin --- drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- include/linux/stmmac.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index 901a3c1959fa..2a5b38723635 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -777,7 +777,7 @@ static void ethqos_ptp_clk_freq_config(struct stmmac_priv *priv) 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) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index ad868e8d195d..b1e4df1a86a0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -639,7 +639,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac) 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, diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 7caaa5ae6674..47a763699916 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -279,8 +279,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; @@ -292,7 +292,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;