Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3863847rwl; Mon, 27 Mar 2023 22:17:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZMbk3nwYnDcfmWVV5tm3Gq+pPcgu91vrvjWfPqQ1ahN/XRd05ZfixAqC0/XjomegsrEZtE X-Received: by 2002:a17:906:94cc:b0:930:b130:b7b with SMTP id d12-20020a17090694cc00b00930b1300b7bmr15253468ejy.6.1679980626498; Mon, 27 Mar 2023 22:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679980626; cv=none; d=google.com; s=arc-20160816; b=GcK9VVL3j/r5RJ5IL2F7b7v5xsp/xg6g6OBQuI0YkgdO5wFgFtG5sR0ZpgCj8eWCJX Y0/ptogSMIdUZxJlfjExhjiU8ddiihojzcvrl1Z4227SZLIMnP/cQ0j8UP3gpRzhAeFQ ZyBosH0R+ZrPBiyJ0iQBBeJ2gML1jhSE2hJ8oILD3Th37oHgE0gRK/dmzsBgoDC+Ht0Y QsB3EZ2pLVb4IcCvz4qfkkFyMrNX+wJW1Gdj+z/yYiBYem7Z2VEkGRk+CyP5y5SlJUyn EganVpFdpQfVWTNOYqL31Kx9uW4mmT4ntpvUoU2FIhqtb/zkHWv5OECMQeFlsSODhcoF 7xqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7NL5B2zEB3jTPHtWtDx1iz+SHXOLfKNEdYRThYQwGLc=; b=fu0RoomDXFaQw6yYjAjjrpjFHmGK8d+JpyjPH5ECE5tIFPtLOX596ElsEVi0qONC+1 eMzpiveA3g3FM5c3GnerzOI3pJnAPDTzQZNYZizE3BrUROll153nJzmUCgLfKzgtpCmV zS57O7NGNwPgJn7As5gxVUb2QS9p0PkA2eAa7HNn4yCLBX7bFL2h4GTnE8LS7IcFztVI h1FTRCuOX5V55Js0McV0/GkTMOax0xEZVzppBhC5HOtpwKj4e7mSGsb8wCQ83Zv6WOls V1nu22ID29ZLRAvHq0qjIfQ6odBSGry1K1KqDawXj7ImTURa40mE33/GSw6RdEBvO0Pk vB7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zlnoQGiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb23-20020a170906b89700b009331b05885esi26040179ejb.445.2023.03.27.22.16.42; Mon, 27 Mar 2023 22:17:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zlnoQGiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjC1FND (ORCPT + 99 others); Tue, 28 Mar 2023 01:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjC1FNB (ORCPT ); Tue, 28 Mar 2023 01:13:01 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2585019F for ; Mon, 27 Mar 2023 22:12:58 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l8-20020a05600c1d0800b003ef6708bbf6so4486345wms.5 for ; Mon, 27 Mar 2023 22:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679980376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7NL5B2zEB3jTPHtWtDx1iz+SHXOLfKNEdYRThYQwGLc=; b=zlnoQGiVIjJQBluz7v2YslRDbX63SbDbQkVOJkD/dKCrBo2xUDsMADewjEASdH0oTk MT3kPwB22TWJZA0dWtYlg7kZ0x+102BmK2n40Dvk1lWEbInKiGKNLB8nL1EJ9PreJf4d +IOuTuIsy0HD/Wg+rP3J56aUUchOwePBSkrtueL7/e7e7ATfA+mIApkDVsMndN/JkZPT PrRQOWE9/8o8fPS7IpCV7aCBpNFwBKRaB2mq/Kbxp2sdXqSVWO8EQd4raCQGPgxV4mEC cLyOPnMYmrFYyt8vKCo1vkW/bgA5MWrF2MTJWzyMMrTHphDU0FTSncc9pJpkEzrxwjsO jYDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679980376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7NL5B2zEB3jTPHtWtDx1iz+SHXOLfKNEdYRThYQwGLc=; b=oHkW94Q59s3+b/63/S8Mj8ZIbb0lePiU3a+bOo5/zxK5A3RxqLFTOVR6BYWYzMxDG1 SZPxiyaG7BwWPLYoSbF9Ey4CoDLa3+ARQaf+ldLQ7JKRsFfzlvQB3qdHUYci0Nv12k8S XlZzxtA/tuukT9e5y0h4/FinxCW6/bA6S3cuH4DnutMwpRv/zBrCnIupUjkJYr84vKLH 5B0z6hwj6REh9jbglLhLDdCy/6szLA/vRymF0U1vaUGC/UunGa+uxx6otgF0AQyKUUbm vadecBRco89zdnsVY/ZVG6iJklNCc0eXVOgM0CIKjneA5jN6xbb0qfSBl/Uda7qKwWPV WRfw== X-Gm-Message-State: AO0yUKXzDQc+aEaF0gmC/JjkDliFT7lfGIc4nyilG6VQDQtZz8NADulV EzJKQ3BIYVj3FKZYzmGXtsKM8fHexConl23rdS1vFA== X-Received: by 2002:a7b:cd17:0:b0:3ed:526c:25cb with SMTP id f23-20020a7bcd17000000b003ed526c25cbmr3217797wmj.8.1679980376495; Mon, 27 Mar 2023 22:12:56 -0700 (PDT) MIME-Version: 1.0 References: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> <20230322114519.3412469-4-bhupesh.sharma@linaro.org> <333081a2-6b31-3fca-1a95-4273b5a46fb7@linaro.org> In-Reply-To: From: Bhupesh Sharma Date: Tue, 28 Mar 2023 10:42:45 +0530 Message-ID: Subject: Re: [PATCH v2 03/10] dt-bindings: qcom-qce: Fix compatibles combinations for SM8150 and IPQ4019 SoCs To: Krzysztof Kozlowski Cc: Vladimir Zapolskiy , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.linux@gmail.com, robh+dt@kernel.org, konrad.dybcio@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Mar 2023 at 17:49, Krzysztof Kozlowski wrote: > > On 27/03/2023 13:49, Vladimir Zapolskiy wrote: > > Hi Bhupesh, > > > > On 3/22/23 13:45, Bhupesh Sharma wrote: > >> Currently the compatible list available in 'qce' dt-bindings does not > >> support SM8150 and IPQ4019 SoCs directly, leading to following > >> 'dtbs_check' error: > >> > >> arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dtb: > >> crypto@1dfa000: compatible: 'oneOf' conditional failed, one must be fixed: > >> ['qcom,sm8150-qce', 'qcom,qce'] is too long > >> ['qcom,sm8150-qce', 'qcom,qce'] is too short > >> > >> Fix the same. > >> > >> Signed-off-by: Bhupesh Sharma > >> --- > >> Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 6 ++++++ > >> 1 file changed, 6 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > >> index e375bd981300..90ddf98a6df9 100644 > >> --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > >> +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > >> @@ -24,6 +24,12 @@ properties: > >> deprecated: true > >> description: Kept only for ABI backward compatibility > >> > >> + - items: > >> + - enum: > >> + - qcom,ipq4019-qce > >> + - qcom,sm8150-qce > >> + - const: qcom,qce > >> + > > > > thank you for the fix, the change is correct, please apply the tag: > > > > Fixes: 00f3bc2db351 ("dt-bindings: qcom-qce: Add new SoC compatible strings for Qualcomm QCE IP") > > > > But let me ask you to split the "items" into two: > > > > - items: > > - const: qcom,ipq4019-qce > > - const: qcom,qce > > > > - items: > > - const: qcom,sm8150-qce > > - const: qcom,qce > > > > Why splitting these? The enum is the preferred way usually, so why here > do it differently? Exactly, so our compatibles as per my patch can be : "qcom,ipq4019-qce", "qcom,qce" or "qcom,sm8150-qce", "qcom,qce" which is what we want to achieve as these are the base compatible versions for further socs, with compatible strings as: "qcom,