From nobody Sun Apr 5 16:22:54 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1B89363C49 for ; Tue, 24 Mar 2026 09:21:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774344104; cv=none; b=fiJgxtx6ahd6872ms0SzBPKVk7mBzmQ7vda5Mwgw3xSzNyrnc2OEclowWiPrA5byd5q1VmJreyb3e1+rbV5VEF8EPNtbCyWsKgtB8A881H776FTXpZx2vKxHFNKitd5DwFLJnlW6ZH8Nc81GBzHTEnf/zG9+c+/1r4ejZpxzpQc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774344104; c=relaxed/simple; bh=BfBFqaDuUuwjt+LEIhJ9aKKSBbuR6ZmsJyVY9a/3l3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LfnEaiypXLep9IaTfG6GOmFC+SNfnNkw+7VwbKXx4c/86643Ilj/LH+h+1WhnVjVANfWh+DkF+ZafwfAWJo3YlXBxgnzaX25Cw6oyLc2Dmn0E0Fx7nw+jrsuxiHzuFV7cT6GXzdPVBI0ku0MDSqCXE0VXSUe/mq8icK+EsVHhHc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=cxA/kf5g; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="cxA/kf5g" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 22EFB4E427C7; Tue, 24 Mar 2026 09:21:30 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 924EC6011D; Tue, 24 Mar 2026 09:21:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 567DA104511A9; Tue, 24 Mar 2026 10:21:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774344088; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Jl+zv1qJmZXW+mDeB3W8k/7HhcPBhRwvYFxrgAInSP8=; b=cxA/kf5gpYbIex+CoaokBYA+SpEs39Fk0Abby5TD9YNoriShrrsVtUp4oduIQKNmDzkhVR yQov/qovYmCdF4P0vzkg/1A5Gtv4fUqHxlzY5W/mDotlcE0dE+ydZPyBJobSJjcx+un4BB /CihzzaD7aJ8XJIjmENAla3P1ZBlqey5zPOPg+OStaIQ54G3US32OhZZThESznk9ASxJF7 jt8yBw9h9krOyXbz+atMvCWOxz+lhbQqy4EO685O1VYOWmYHSFqJhk5BqDWgwsFiHLZo8R nBv0EtFyWCd80DmPiLZFgAEXfF1l+5WkDfHeCYb1edSpI1U4I3Mhtdq9lJ/W5A== From: Maxime Chevallier To: Andrew Lunn , Jakub Kicinski , davem@davemloft.net, Eric Dumazet , Paolo Abeni , Simon Horman , Maxime Coquelin , Alexandre Torgue , Russell King Cc: Maxime Chevallier , thomas.petazzoni@bootlin.com, =?UTF-8?q?Alexis=20Lothor=C3=A9?= , Rohan G Thomas , Mun Yew Tham , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH net-next 3/5] net: stmmac: dwmac-socfpga: Use the correct type for interface modes Date: Tue, 24 Mar 2026 10:20:58 +0100 Message-ID: <20260324092102.687082-4-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260324092102.687082-1-maxime.chevallier@bootlin.com> References: <20260324092102.687082-1-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" The internal helper socfpga_get_plat_phymode() returns an int where we actually return a PHY_INTERFACE_MODE_xxx, use the correct type for this. Signed-off-by: Maxime Chevallier Reviewed-by: Russell King (Oracle) --- drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/= net/ethernet/stmicro/stmmac/dwmac-socfpga.c index ed6448c0ad2a..629074dbbc15 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -72,7 +72,7 @@ struct socfpga_dwmac { const struct socfpga_dwmac_ops *ops; }; =20 -static int socfpga_get_plat_phymode(struct socfpga_dwmac *dwmac) +static phy_interface_t socfpga_get_plat_phymode(struct socfpga_dwmac *dwma= c) { return dwmac->plat_dat->phy_interface; } @@ -386,7 +386,7 @@ static int smtg_crosststamp(ktime_t *device, struct sys= tem_counterval_t *system, static int socfpga_gen5_set_phy_mode(struct socfpga_dwmac *dwmac) { struct regmap *sys_mgr_base_addr =3D dwmac->sys_mgr_base_addr; - int phymode =3D socfpga_get_plat_phymode(dwmac); + phy_interface_t phymode =3D socfpga_get_plat_phymode(dwmac); u32 reg_offset =3D dwmac->reg_offset; u32 reg_shift =3D dwmac->reg_shift; u32 ctrl, val, module; @@ -444,7 +444,7 @@ static int socfpga_gen5_set_phy_mode(struct socfpga_dwm= ac *dwmac) static int socfpga_gen10_set_phy_mode(struct socfpga_dwmac *dwmac) { struct regmap *sys_mgr_base_addr =3D dwmac->sys_mgr_base_addr; - int phymode =3D socfpga_get_plat_phymode(dwmac); + phy_interface_t phymode =3D socfpga_get_plat_phymode(dwmac); u32 reg_offset =3D dwmac->reg_offset; u32 reg_shift =3D dwmac->reg_shift; u32 ctrl, val, module; --=20 2.49.0