From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AD1C541444 for ; Tue, 29 Sep 2026 15:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790695079; cv=none; b=BAJQyaMEa/D58vMhLfWB4bea+8+jJx7AL94iBeDxiNjH5kfOz0M7rObMCuKERS8KhB9yX0QJKYCvieW8zL4t4M7ITwA5FUCC6mMUwz2pBYsmOIaltGGZKM+4tak8SoU89WzBGcg5pvjOXDCEUDpVQlnrrO5GqVD8KUDhW2UL0sY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790695079; c=relaxed/simple; bh=xG8fQs+Nv8hzYaB47vBOWqr+MR+BJEmuFuZwRxqnET0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IEgm/arGYPyQW/PbW97tThjLzaWrxhFU801MGeHmI2S9AAqK+b4tmDmm1l/kowl9PPJ6ctrfxlnmuTnRvysR5BYJBklft1QL89HdBn1+mQd1XGRNdS4pelPEjvfTy9jHHiqCQBYoJk9kDIf10PmBaJJ522tmMlL89uRvhRQpUMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hJjPFAC7; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hJjPFAC7" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49fff6f0f87so19649745e9.3 for ; Tue, 29 Sep 2026 08:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790695072; x=1791299872; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6TBF9avaY/bTBgvPOC6p2G/lL798dgydRUW2YJl/tA8=; b=hJjPFAC7Qrjc9VWgZio19Ell+7G7mzSgX/IwZMpcVNzhkpAFHDNw/VSegeIhenBBao tCkMCGNHAIQgfFySZp9ZhC59diNlypXVCqMn2qFJcmmmRUjpc/pKtEzGzRxNDlz055Mc jq8u5vVhlWIhlcBJBbHqw0SO03FyQ6MnBixio7CvxIyXn3qCS12Qq78sD9+koxGehXuu ERLzIu22Q7FptOAkIroEUf0crnhtRnYsQ25L6CWGHZuwd6Pr6eXipW965f34QP0QowIh IXagtbOqGzsZ6CYUU2VKc1H+JufFVzwO8RkUbajJhKVasPs0130i5F45gEUWgocdbxhd SaWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790695072; x=1791299872; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=6TBF9avaY/bTBgvPOC6p2G/lL798dgydRUW2YJl/tA8=; b=zLCD3XhUoEcVGOPDTvDHns+889gjZgETyul2BFlteJavJhZhWBbnW2/1o5wpUrHZEX tNPARMwlInys01Vyzw1QrQh6mxDZqFkmTucu5km7qV1xSJ2SMNMoS5dpocHSDx4D/tzk PrtRUJ47VRMA+aidDQIB9x41jWIb3JtRcIQ5fQhBYPxOZwb6KVy1d2q8wPM64gsxkY6H h8BIk/UmNdNSwhIZ2S6cxNANyTHeAOT1N3Uiq/tQQ5tXnvPR1PRp3ov41hyImBe/NQ65 /mh//dbNiIKtCkMOxp+C1Gm4zBVCCqRxByGmP17PFz3BxWcb+KUSz+IM4GELA81rUzf4 1Z0w== X-Forwarded-Encrypted: i=1; AKwUvBxepJ/IQofDsCU+Hj/eGpUljdKdQhaVv70WmYlAXjSu4pmsOr1vtYtgDPOhZQXeEgZce3H8R1NEjcO4@vger.kernel.org X-Gm-Message-State: AFuF++n4BLZqJt71+ER1IWebjo9L8ttFWdKVAvfz5Cj59azVt1Xh1Fyl P5cKalqTg1vXn1jrmJC1G92pwlzyHFRPQcMdOm/XUIvyJlZnFUDa5J7Z X-Gm-Gg: AYBFou2aYpQ/N2wSYqCF2eskZ40ZJo487/EpBv3el/0XZ39X+EGi0fDsranvr5S1sGm 4fO2Sy+uA9/l0GrWA+ckutbcR+5Yw98y42hYM0W8bkvWECIiECH9UL779torRr/SfdBcBUhJTc8 pA71Ed2pFhh14gnsc/PXYDE8P8KIK8/8DUB1gLBL93N6ZwrUfYGUSfb4sdP2nCc9kKc1pVWq41f sH2vGLy4nopCpEIsk2dfKTiJm23KhIkJ2fsgJUlUmK2B9n3qnWERk+IqMf5VXgsviZrrkppDV9O qEUQlsNJrlxagggyiLIoUEPXYS6rVISvHi36q4HlNtxg5P9WlNfuflPDzKhWeYNwjy/Jj8SzLAv WGy4qXuio2k4/zmBBTlgAe+IcW7m0x31vIJkHlxl4blPb3++GAAu4maFxRDdFus/7kfEhG/sR7O H0PiUhOuVIx4TGoU9ZeErhxRYSrTDeLnVjkOhRMY62VjUyLt/2bbzdnPaXUazXGmvOyS5+jEXan UbcqPqbU3j9M5ek1bQe9JsADun4y5Bm70dikVuYxVzOuGDxF8xg2Pgxj9gUeAsdlLy7ijZl8jyw F0w9fL/T0yJD+KoBxZn//+A= X-Received: by 2002:a05:600c:19c9:b0:49c:d019:70c5 with SMTP id 5b1f17b1804b1-49fe7ae84a9mr291312065e9.0.1790695071599; Tue, 29 Sep 2026 08:17:51 -0700 (PDT) Received: from Lord-Beerus.station ([31.27.155.43]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a013cf8402sm10313705e9.2.2026.09.29.08.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 08:17:51 -0700 (PDT) From: Stefano Radaelli X-Google-Original-From: Stefano Radaelli To: Frank Li , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: pierluigi.p@variscite.com, Stefano Radaelli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Heiner Kallweit , Russell King , Shawn Guo , Joseph Guo , Josua Mayer , Ernest Van Hoecke , Mehmet Fide , Francesco Dolcini , Markus Niebel , Hugo Villeneuve , Stefan Eichenberger , netdev@vger.kernel.org Subject: [PATCH v4 04/13] net: phy: micrel: Check RMII clock select property presence Date: Tue, 29 Sep 2026 17:17:31 +0200 Message-ID: <249f29ecae7cf9dbbeb9691df2c67e4f0cfe326f.1790693249.git.stefano.r@variscite.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Stefano Radaelli The micrel,rmii-reference-clock-select-25-mhz property is tested for presence, but of_property_read_bool() warns when the property has a value. Encoding it as <1> to satisfy the DT schema unit check would therefore produce a warning at PHY probe. Use of_property_present() for the presence test. It accepts both existing empty properties and the new numeric form without changing the RMII clock selection. Signed-off-by: Stefano Radaelli --- v2->v3: - New patch: use of_property_present() for the RMII clock select property so its numeric form does not warn during PHY probe. drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index ae830781824b..acb481a29c25 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -2791,7 +2791,7 @@ static int kszphy_probe(struct phy_device *phydev) if (type) priv->rmii_ref_clk_sel = type->has_rmii_ref_clk_sel; - rmii_ref_clk_sel_25_mhz = of_property_read_bool(np, + rmii_ref_clk_sel_25_mhz = of_property_present(np, "micrel,rmii-reference-clock-select-25-mhz"); if (rate > 24500000 && rate < 25500000) { -- 2.47.3