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 1AA3728DF20 for ; Wed, 28 May 2025 16:58:14 +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=1748451496; cv=none; b=PUqKx735H4nVNh9vAIdwb1VlbXHvOGTa9m7QRcXLbA8GzGcy59CZ/e6Vavi/GSouURl5TeVtzHUMKi5CMO7Jx1YmTiXIcmbtkRzIWDSUnPv91tA0YcqtEyjEfF3bWvEFv8TmAN4AL/TfSNm0ljI7lLo8aj2+vrQM/V2KPTb5k3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748451496; c=relaxed/simple; bh=C/ggDr2U3zgPwsBNLbn/6E0DwqeLz9NmTk3loAa748w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DDTZ4pzy68oOg3nEnhp6r/cwCHk7RiAuVePqoxzTl5P4t6HKX/SdHIKxvrQa7mb+niQoXXdS5S2TVYWDyFTuG8+Cu8aTd0BPwcRu++WAlgDYocZRUa3HApwp2pr1j3+jEhrU5PXVRQu0oxv3IluQ1qS8Jm54eLeeu7pIq9sfdTo= 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=IdQJuX77; 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="IdQJuX77" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54S91DTB001972 for ; Wed, 28 May 2025 16:58:14 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= qPuMK5jZFsmnypBiTqJe5zYuFHyiejNpkSdvHBAX+qM=; b=IdQJuX77asAFx/L9 V9dExB1SzToC288lqlo7biqGHva3PbRcVejs7s2klOYoNqPpzUswLaVaayzdourC f6ZBK+R+SxZqnUn5Ivaknt0kqfg2JtOeZxo7uF/KKOOTQuLiafB8hKLkI0iogjQQ dknU9bBD9+wA5UrUfhfiHB9EEvyeqHEk4cOj69NWgDBDI1RQIH2sWhCGotCrWnzv KDurIHQhb6gXzv5nT9qzCsrDs2waLDJhpztub/2/TSRRhljzR+YFYKD6IFgoDlM0 4IPOs66w2VZhjC+l7jUSxSKjwHmOlH6Ofq0CbNQ4IEUB4egVfCEZN6ATZFL+5CBS 2xiw4w== 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 46u549jvw6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 28 May 2025 16:58:13 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7c54734292aso124201185a.2 for ; Wed, 28 May 2025 09:58:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748451493; x=1749056293; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qPuMK5jZFsmnypBiTqJe5zYuFHyiejNpkSdvHBAX+qM=; b=ambtJhiv9cbEffJwINjn2YXRpUWhmvRQlqxYOSUJHHEcPsVQ+FHDSzuw4kcbf/yMmO CSF1qQ+iLa/Z7h44yO/aqJ6qlglAAMUUzB9eO+8RM9tDEHR3Otm2ugutS5VE3kgE/RFm IbNfr0OHsEDfk7ghGh8YXE8q3fnB8690PEdDUm8MJHMMtlFZl9dMGrFNyPv7fzz6P44t Ejqy9gMs2QmeRqrr/uAMGwSd8VR+BHKsuAX61S0G0q2MYeFuQF2k/S6BTvAmA4vUFrP2 0znX5gkECGM/IZtok0uSf9vZy9pS/N/xxMemzjgD/KUc5biCoqR3SyJQA+cEYs+Wkt5i y2Yw== X-Forwarded-Encrypted: i=1; AJvYcCUIZ2cShiASNZDcmct5D7MZ1vjY1htscxu2Re8vQ8anoNBbGljgs4u9pO52OC94bPwEVgkOAa6yTO8J@vger.kernel.org X-Gm-Message-State: AOJu0YwdLzzak+Vr/+ge3SN/nRi5WFSwd2/z1gxR/bMihYpbC+Jcs2FQ xXJ/dus42S8fVLIP01e8epsGH6CFh5V8a/TOnIrBnKZ0fkja48xzJbCTSmiEhjY0SdowIsvCIkw jVlfARBRGe39uGES/kDBoJHmW+6zUnU7pprmRjDp8VkNUYCSrvjtugol/uaSjgt6W X-Gm-Gg: ASbGncuYLo+0nMc4c5G3SEYgvd3wZQ6MBammYs+yprMLr/h/qjJEOYDauQ5aPnrCyYh pdsIkF5xHmfIrJAvNUiIdPUlQGTfnrFNzVc0J5IB4OE4kkK2FdbFSsAQCGXlrVh5X2zWs67wvyW tVyNetkmk9hZQNkUwtZf7UW/w5VZKBOgeggMiFOw+xlXrvJNxTXj4cvzj4WF9N5Xa+g/E/CGhl7 eZqH4JpV2/YWJ/XkXtcvsmN/mW1+x/5qzOQEiOoLnwAXwaOYUVwVKa3T3cUQzohrAV8OUlv18GJ 54pM7fQLgfoX6KeHc3PMyL/2kHQKZzgEz/4UM3ZNDXG4AinvwJ9a8/IP5bm/6SpRjLbayEP7h8q o X-Received: by 2002:a05:620a:3198:b0:7c3:c9d4:95e3 with SMTP id af79cd13be357-7ceecc09f86mr921829285a.10.1748451493042; Wed, 28 May 2025 09:58:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkAjuwttwsySAmNXr3cyWyVH5nivsVuo17QQGa94DXhh90c8s++PqJyE2HPepyHAHWSRNEhw== X-Received: by 2002:a05:620a:3198:b0:7c3:c9d4:95e3 with SMTP id af79cd13be357-7ceecc09f86mr921827385a.10.1748451492681; Wed, 28 May 2025 09:58:12 -0700 (PDT) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad8a1b5b865sm135090966b.168.2025.05.28.09.58.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 May 2025 09:58:12 -0700 (PDT) Message-ID: <7938374e-85fb-42b9-893c-ec3f7274f9c0@oss.qualcomm.com> Date: Wed, 28 May 2025 18:58:09 +0200 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 02/12] dt-bindings: arm: qcom-soc: ignore "wsa" from being selected as SoC component To: Alexey Klimov , Krzysztof Kozlowski Cc: Srinivas Kandagatla , Mark Brown , linux-sound@vger.kernel.org, Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Dmitry Baryshkov , Konrad Dybcio , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org References: <20250522-rb2_audio_v3-v3-0-9eeb08cab9dc@linaro.org> <20250522-rb2_audio_v3-v3-2-9eeb08cab9dc@linaro.org> <20250523-fancy-upbeat-stoat-e9ecbd@kuoka> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: N1oFZuZI77ondFMlftQLFsekZJp02Bfc X-Authority-Analysis: v=2.4 cv=E9nNpbdl c=1 sm=1 tr=0 ts=683740a5 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=KKAkSRfTAAAA:8 a=RZIJFy7CuqSkVLaUGaMA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTI4MDE0NiBTYWx0ZWRfX+PxZdP4Ywqq9 Ib1eX8hhv+d4WUSVbpyOf8E02ZVCtYIqQ0Qyg3jgaDJo5dJh6GYfvs0fCbbnUsLEE3+bup2XZZE sOIeCwtf78apQwW4BdyL16FlRjXszTQR2MB3xDzYrURSbA9pkO8WwT0yzFAutUNclicEr2u7THI saMIp6efOhTQoJSUPpjMq3Ke8WcW7/Cmhz2cYeFEPViOoLsHak80I7rfPkUiaTsoyetjHJhKABa E/lXtbgZtMTYC60LRFU3mXm0RoOpo/bw/chCIlb+AGT4rtybjBw4qkdL3ixNcDO4y+t6CBCesHD Wu5BmC/B+2bMVY0dceGOvMxO3ZXYquTBUsvdBDR+msEofqQSqH5/uJXaFF8tTjo3r+qazAmNUva 87sCRJB0baj4s1/8nqZ/s/QDcHyrN3CKyA9fjMDKmU/VjJ9UlzQLHv0SqyzpE+SnGuK2VOOn X-Proofpoint-ORIG-GUID: N1oFZuZI77ondFMlftQLFsekZJp02Bfc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-28_08,2025-05-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505160000 definitions=main-2505280146 On 5/28/25 4:37 PM, Alexey Klimov wrote: > On Fri May 23, 2025 at 9:12 AM BST, Krzysztof Kozlowski wrote: >> On Thu, May 22, 2025 at 06:40:52PM GMT, Alexey Klimov wrote: >>> The pattern matching incorrectly selects "wsa" because of "sa" substring >>> and evaluates it as a SoC component or block. >>> >>> Wsa88xx are family of amplifiers and should not be evaluated here. >>> >>> Signed-off-by: Alexey Klimov >>> --- >>> Documentation/devicetree/bindings/arm/qcom-soc.yaml | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/arm/qcom-soc.yaml b/Documentation/devicetree/bindings/arm/qcom-soc.yaml >>> index a77d68dcad4e52e4fee43729ac8dc1caf957262e..99521813a04ca416fe90454a811c4a13143efce3 100644 >>> --- a/Documentation/devicetree/bindings/arm/qcom-soc.yaml >>> +++ b/Documentation/devicetree/bindings/arm/qcom-soc.yaml >>> @@ -23,7 +23,7 @@ description: | >>> select: >>> properties: >>> compatible: >>> - pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sar|sc|sd[amx]|sm|x1[ep])[0-9]+.*$" >>> + pattern: "^qcom,(?!.*wsa)(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sar|sc|sd[amx]|smx1[ep])[0-9]+.*$" >> >> Why dropping front .*? Are you sure this matches what we want - so >> incorrect compatibles? To me it breaks the entire point of this select, >> so I am sure you did not test whether it still works. To remind: this is >> to select incorrect compatibles. > > Thanks, great point. I tested it with regular dtbs checks with different > dtb files but I didn't check if it selects incorrect compatibles. Maybe we can introduce a '-' before or after the socname, to also officially disallow using other connecting characters Konrad