From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 945592D47E0 for ; Thu, 13 Nov 2025 14:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763045243; cv=none; b=aBKWMbKZFnpnig6DsscdHQD0BbouP2H8VPh8FeUkvSGqgrFd+eMGexnRRJohLuy3Azna8yQOCkzGzvm2JJRuHEJO1WH6orWoPDVlXGtqH2fDG/QtEsPkIeTfBmi1txkEjspsc7Omg++psCEYIkOjvQr3xofKF7QNGryztG72waw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763045243; c=relaxed/simple; bh=F2kBxpSXrkU6fwfKy+g1N0BGk9Qwugl4Eo5aCFQcm9Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZXal/AWxKM2oI8r+IjfZdrpAV6E+dNCrZitOqQVVmmyDhtYFuoNl+DFjI/QYcB1UI81LoMPbD+S8r+mvgbVLT7fmaQixzno0Ac5Xwx56tkChkREcxs2dbiw1JWjmziaeHqGMpJGgOEMkfro6oc+gnMJH476sNMWejAfYJ+RUxDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=b/JRKlQa; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Qu/fMztw; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="b/JRKlQa"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Qu/fMztw" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5ADEJArc3801121 for ; Thu, 13 Nov 2025 14:47:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= c/j8O4OMZ/iO6ANHgdWOttUeORFw+6paoVM6GB+aNhc=; b=b/JRKlQaoXhQbjBg 7mm9S/5h3Fp/qe27uSlmDQXdKJyVelTPms9TAYlDvBXVpwrx7Y/JPF42qOoJETR1 cZsoxMoudkiU5Xx0VLidAV4Vf4PHDod433Ykxn74s+LsoMkTrwjARIl3IDm/A+Rr grUZjvJu70AF5w6jwH7l4Aq5Be8BuM4nP6pt3KJhqDbJ+xtwdCLznzo3aNk/9SZu F6Qj+Ub89gKav1oigAckmv9WKdjgeoUN7Q2qgBe471l3GyeBKiIxCveVSXs/+XGB RXI/WhEDsA6qtDMbbTNJWwMSedDbYI2Id5NJthr9QY3IvsFmN+3HmL11WKKwX00L cTlHdQ== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4adaam9eux-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 13 Nov 2025 14:47:19 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8b222111167so25703185a.1 for ; Thu, 13 Nov 2025 06:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763045238; x=1763650038; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=c/j8O4OMZ/iO6ANHgdWOttUeORFw+6paoVM6GB+aNhc=; b=Qu/fMztwal7IQvrRc8wirJ5mDqqB2Sf5JTrriadms8HMFC5f76zkDWpHitRaLboFfx NJl8XcqZAyymHWl3PmV8D9BlTD2jebPa8c/gz1kNTa+yKZw+WYvPecwSsRkfDbkBGUWD VdZ3SE8gfCZDVirKgCawIYIe0YVKXOk/bwVSYoKafll1taAYnbzbnlsg58wDY9VCyFsJ 0FVxD7u9jPK45x153uTUzjKsHP8g9Q11C30iVLXM0xp0Suur9/q6IhEjUYRb1qw2N6QG XcNo6dye3nCze0ai1e3vzc5IwuDxWWFwgPU6ldP3IXAb+dAvSv8cu7cGVQ8e2N/UAvSE P0kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763045238; x=1763650038; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c/j8O4OMZ/iO6ANHgdWOttUeORFw+6paoVM6GB+aNhc=; b=g/jYbKBu85txlZH+aaOrmSimasgb01C7FoyikM9LVlPy74PAznJX5ZMpky7SyAptic AaBOok9tyrTLkGWEI+1AtLjoDADYSCHW4Qiic3pgO5GFuoIUy5fdIrypyEZFpr44VCWh qEYX2E3IBus7dQfZ36vfk7aNwUVm2EUbOIm+Civ+8vcNsQaiA6GYcSG2FECb0owYlxN6 lrai3W55o5Recm/nJGlnw0PG3nYjbMYuP3e+WI1RxKt+nf85x2OMUAxpvWEJ1/5v/o3U q46vh8YT1prmokWBTu9S6FDkVsbqaqcxtAli+M4MEgoK25O7YDdfN5EyBkAq4SdWc4rb +cmA== X-Forwarded-Encrypted: i=1; AJvYcCXvosHeZZes81mhbiVwAadawyejUqoeXyNP6EnLBRfn/HlA0J9dODsK8ZqUIHSUXETrArDDRdCw+uC3icVY@vger.kernel.org X-Gm-Message-State: AOJu0YxiuDCPA870THb8GmggENqiNOPp7lBM9ysPaqG9wP9YFQol95RU ZpynNJGwdpgJCzQ7AypLMdBCBwrFELENLt3R1O6V5n2pilJMPb72wX5fJ9gZXpnWFEC4XTfyRk1 cPkwlZ5aApyP6ObQaF1V0H0v2PJ6eJ+NRBey1Zuc1n2G8td/HhZbzFjd5a5WlOLD7Wf5D X-Gm-Gg: ASbGncvTaDoqTfG/137P6cC75GC5aP6xFeDQk3xnEs44N3j8XGW5HHBeg2rZqg7AYiG 247icmrh09kXSre86mQ4d7zGDhV/Z6YuI7Zpg45o8TL/Rh+hkOA2PZrQyrCVIBqJiUT5l+mIN0f F+zTWRYE3pHp+IrROElqTfoguAVq40q7SoENX1CYeV59QMG4PVijZvCvA7/6ekHLAOK3NDc1hD7 joJCKiNCZPGTy3SOCwwqUwtOS4qnWNaR3sTZkSFTJjd2liuT7eGMCqEj2zifhBvTqTpWbgWc0fy O9cgQ+evVQQwOCe5YsHaHdu1dOki30PVIgnEPrMmWHclpRBykg17lA2IwtFpv/7qfQ8hyhJUHHw sDVihuY6ZlnMLltHCU0silgPN3UYJgTAp9IfipuI8/zadz1Al/9kaeuXL X-Received: by 2002:ac8:5f10:0:b0:4ed:7ca:5f33 with SMTP id d75a77b69052e-4eddbc9256dmr60354891cf.5.1763045238327; Thu, 13 Nov 2025 06:47:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFM7YamsAo7x44iby6/PzuNKLIab4wveVf6S4JQ4cd4mg9yAzxbvu88BKH+RnT7m5FWyF+0JA== X-Received: by 2002:ac8:5f10:0:b0:4ed:7ca:5f33 with SMTP id d75a77b69052e-4eddbc9256dmr60354251cf.5.1763045237576; Thu, 13 Nov 2025 06:47:17 -0800 (PST) Received: from [192.168.119.202] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b734fdaf6dasm176196266b.63.2025.11.13.06.47.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Nov 2025 06:47:17 -0800 (PST) Message-ID: <45915f40-caa1-417b-95bb-deb7363a2ffc@oss.qualcomm.com> Date: Thu, 13 Nov 2025 15:47:09 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 2/8] net: stmmac: qcom-ethqos: use generic device properties To: Bartosz Golaszewski Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Vinod Koul , Giuseppe Cavallaro , Jose Abreu , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Matthew Gerlach , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Keguang Zhang , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jan Petrous , s32@nxp.com, Romain Gantois , Lad Prabhakar , Heiko Stuebner , Chen Wang , Inochi Amaoto , Emil Renner Berthing , Minda Chen , Drew Fustini , Guo Ren , Fu Wei , Nobuhiro Iwamatsu , Geert Uytterhoeven , Magnus Damm , Maxime Ripard , Shuang Liang , Zhi Li , Shangjuan Wei , "G. Jaya Kumaran" , Clark Wang , Linux Team , Frank Li , David Wu , Samin Guo , Christophe Roullier , Swathi K S , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Drew Fustini , linux-sunxi@lists.linux.dev, linux-amlogic@lists.infradead.org, linux-mips@vger.kernel.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, sophgo@lists.linux.dev, linux-riscv@lists.infradead.org, Bartosz Golaszewski References: <20251107-qcom-sa8255p-emac-v5-0-01d3e3aaf388@linaro.org> <20251107-qcom-sa8255p-emac-v5-2-01d3e3aaf388@linaro.org> <21a3d269-76e6-4da9-aa25-bfd1fb6dfb07@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTEzMDExNCBTYWx0ZWRfXyB+9EEyb/LT8 1hZbsz/KapMawK8qqQYQRTmLwytxInSvzifEGiZ1Ms3OgHUG7wFka36UZREONVhqqGpNpERo+Ze tHkYmBvMK9al95dIQ2hF1bkBpR/cesO1DyyplCtmvs6Qng6TAJJhlymfn9tUS0nVpGvgb9kOdXB wbiYcAFdYbPwsrdEr2CG7g/2vS5JiIgMSb69IBGEZj+IeisNyGqhkvtPUVR2o87lMzyXJdoG3R5 2oOUHuVEINKbdjDC4nkzKXZseiIkM3JH9ronfVmUvWZ4pPVRKN7SvCZl6/87w8sfHQl3ewBKO7T +XqWVKe6Ee26XsIMjx1kZKWjBSOD6Qzoy8f1/JiAh9ZRNOoXk0HRdt8utUZORQfsQb7iOYIB5FU 50S+r4k+AcPysEjUsrXGwzdDgZmO+g== X-Authority-Analysis: v=2.4 cv=d4f4CBjE c=1 sm=1 tr=0 ts=6915ef77 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=IegXRtMujPCPvfbY5ZIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: pXWeAMojVXXHpVDafgpe-T8puzF6SxYr X-Proofpoint-GUID: pXWeAMojVXXHpVDafgpe-T8puzF6SxYr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-13_02,2025-11-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511130114 On 11/13/25 2:41 PM, Bartosz Golaszewski wrote: > On Thu, Nov 13, 2025 at 2:33 PM Konrad Dybcio > wrote: >> >> On 11/13/25 2:18 PM, Bartosz Golaszewski wrote: >>> On Fri, Nov 7, 2025 at 11:49 AM Konrad Dybcio >>> wrote: >>>> >>>> On 11/7/25 11:29 AM, Bartosz Golaszewski wrote: >>>>> From: Bartosz Golaszewski >>>>> >>>>> In order to drop the dependency on CONFIG_OF, convert all device property >>>>> getters from OF-specific to generic device properties and stop pulling >>>>> in any linux/of.h symbols. >>>>> >>>>> Signed-off-by: Bartosz Golaszewski >>>>> --- >>>> >>>> [...] >>>> >>>>> - if (of_property_read_bool(np, "snps,tso")) >>>>> + if (device_property_present(dev, "snps,tso")) >>>> >>>> This is a change in behavior - "snps,tso = <0>" would have previously >>>> returned false, it now returns true >>>> >>> >>> This property is a boolean flag, it cannot have a value. >> >> Every DT property may have a value, so this is not as obvious as we'd >> like it to be (IIUC - unless that changed recently) >> > > That's new to me. I thought that if a property is a > /schemas/types.yaml#/definitions/flag then only its boolean form is > allowed. The fact that the dtc can compile it with a value doesn't > matter as the bindings are the higher authority for DT sources? You're right, I misrepresented the issue. read_bool() was historically used for making sure a property is present and this was a problem when the type was != flag. Please discard my comment Konrad