From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 645C23E5A20 for ; Sun, 27 Sep 2026 12:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790513199; cv=none; b=mEfMKyeobuOxJAkNWiNeBn/2ybo+MoBU5t66oSJeAyNfk9SWqyAnRuk9zdtLAlQ2o753pNqzVUaVOXKtvbIQ90bclWCYUi6AIota32Brfxg6iJ+LAZS0dZFiRCZIlZOjMjQf5ijhYFcmoRPMztUSH2OUei5hQvM4MVAEkXagTPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790513199; c=relaxed/simple; bh=xG8fQs+Nv8hzYaB47vBOWqr+MR+BJEmuFuZwRxqnET0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uyUSPGtas6sdSyGJ2vvfMVjT4GeSY6gvdnfbrJtP1zAn8C8JXHRJNuinB0hDVzj+ijmsU+RkIG03vzAtJUVPhNocfsszuoJuB3E+yBYNa8jxUsStFZMtd6yH8QPCNl5jrlBTwdiiQXiS0oJtd/8kXx+jG99u6gB6eybMXBg8IgM= 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=GVcT70Yq; arc=none smtp.client-ip=74.125.225.141 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="GVcT70Yq" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e7bcb94d3so16093155e9.2 for ; Sun, 27 Sep 2026 05:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790513196; x=1791117996; 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=GVcT70Yq1sylQT1Id4B3ZvvKj8khaXua+PnNtiVOWLBmIYmmwlCFaSHL3SNN5JT6TU iVtMHmSgdt1HPiAjgpRWfvk1zHGEl/9TkWV5Q+MV04O2/p2DEjzjxrjr+QNh95vKBOU4 GCWIIM7N9pMaaGAVf70vVuY7Q39e3Lor+PzwjPu0tm6Kc8VZxmmRRtDeXttGbweubOKt mM54+UFwr2N7a9dDlYtRAxoAiehBd3JyjN+eBmZEiC3AeoUC5vGkthBmtv45q0S5ZPsp fFfOVI3+sqi0n1Js98WKLZQFs6MMEjlKtUkjjeYT3GxjD1fH6jhcoaGohxNGz1c7tqVc Vxhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790513196; x=1791117996; 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=HQ+760y/j02Ur86mTTH0CDzmRiTX8eN+fVS2MyPsO7/z2zEAwPabFBwpBpB4P7YkAW NNKaDYyGTE9y0RDDIs0T0Tu2ysVQQdXN1WAsOPeqps5tyEWVDDhENsSA/bnKhAe3tKB2 YrU1IdDEnsGmUjrkGF784j8HyRmKvvLt8HXApmDMf6J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619 with SMTP id 5b1f17b1804b1-4a000b647f1mr30425705e9.0.1790513195410; Sun, 27 Sep 2026 05:46:35 -0700 (PDT) Received: from Lord-Beerus.station ([31.27.155.43]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fef60da94sm148440605e9.4.2026.09.27.05.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2026 05:46:34 -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 , Daniel Baluta , Joseph Guo , Josua Mayer , Ernest Van Hoecke , Mehmet Fide , Markus Niebel , Francesco Dolcini , Maud Spierings , Hugo Villeneuve , Stefan Eichenberger , netdev@vger.kernel.org Subject: [PATCH v3 02/12] net: phy: micrel: Check RMII clock select property presence Date: Sun, 27 Sep 2026 14:46:17 +0200 Message-ID: <095af7bdb3b28e7776bac12bb4f3f661d057216f.1790512621.git.stefano.r@variscite.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@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