Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp403279rdb; Sat, 19 Aug 2023 06:29:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQcKGfrcox10ODdvionZI4pXkyMO+hoHt2VdyKRuIzgBk5b22MnHnbZW1wkIQqo9QahxGQ X-Received: by 2002:a05:6a00:1d04:b0:679:a1f1:a5f8 with SMTP id a4-20020a056a001d0400b00679a1f1a5f8mr2278266pfx.3.1692451789143; Sat, 19 Aug 2023 06:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692451789; cv=none; d=google.com; s=arc-20160816; b=ljEMDJn5nzheDg2vr7P/9051+ctoL8mxQV/ygVEs/G00gmvvfpibez2ti9OYFtECZB CMBJ/HzLqNdBG4JtXoVNOq75nIh0xf+AZjO0t5kiE05EejyC4yX/1Q9h6kiHOH0UX11A 45Mx9IaxWOlOPZ2AQv+KKJWc6MvarOXOaGL6EWT/Awngo2BuF3YBEwh/RSfD4iIiYR0d UcBpnj5Ti8bMSqZkq1YqqAL1rnGhbfncJRf0Hi7/6pN1ku3L+guSDUBssSaaILPCRbeQ 6Jmh7YNysnDuu7oPEhmNALp5vust29chvyuvhngJCbIpSriSFsnj20/KZ5qLc3f3k589 L1sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bF28iUeNk56JK9TsikccLm4WltEZTE19xKJs8jn9uAQ=; fh=7iC+K1Bo2+OaZhPZNOkG6w74KpnV63TEMVt+3d9HrjY=; b=nrJtZSfsq51I8xEz2phBxbTVDsmYSupft1gUN2Z5qbCtChJ+KeDChomInAy5LryfoP rTdQJ3p8CDU7kI5/A9IgjpSEAv1qd7KKork5CewZ1O41XiSaoqaukAwKyY7ugiJbnG4M 5b6MvtAhTjN7EKcq/tqNpNOPrRumo0Cwq2uoEzv6nqSB/P0C5bHrCZoeUNG9wyRWIMq4 +Kmcj11cyrbOpXwn+0KSb2oDjjwF0eWSHSTNGLoFFLaV1ph0VD0w7QR1t304eVgOee05 i9sIpFpG6lmsAy/MApJaJU86P18ug4ryd5oTVlc+SttVcSLHMz28MgxK6XeMSP/qFca8 bDNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mct1vZmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s1-20020a63dc01000000b005660157a8edsi3405409pgg.206.2023.08.19.06.29.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 06:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mct1vZmL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56E7CA5DD5; Sat, 19 Aug 2023 01:40:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234571AbjHOFLz (ORCPT + 99 others); Tue, 15 Aug 2023 01:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234678AbjHOFLI (ORCPT ); Tue, 15 Aug 2023 01:11:08 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645FE1BE1 for ; Mon, 14 Aug 2023 22:10:19 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99bcfe28909so651343266b.3 for ; Mon, 14 Aug 2023 22:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692076218; x=1692681018; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bF28iUeNk56JK9TsikccLm4WltEZTE19xKJs8jn9uAQ=; b=mct1vZmLVqpwNiftHjdz7sR0wwQM52RIrTCtLvKnBc2sulf7CmZZyCra3ey1Z/4bjF q4kUgcJw32Vs/LONAis+TdSogerfcdo8Bxm1w/USc1PBdt9Dgu0LSJr53rXp3wjxOP3V 7+KEGCJW1Zda2YQoU3E6NWn8gXrqVD93UzAPgpQbP1AqAw2wrnxdyDtlncPHJaknhwHv 6kzV4bMU738my/CRVd1OqkR2vZBCvxBuBU7cHm1uqr+ZJVucJccb+LqgcfBmeCR7Iacl 9IWQJ2AyAhcDpkEGgVY68QsnIhWwUpOFOYTkWdU+LR5v/i1+SSluK/dvGHsRv6Pwde/o NPTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692076218; x=1692681018; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bF28iUeNk56JK9TsikccLm4WltEZTE19xKJs8jn9uAQ=; b=SGLTS3UhqQ/J5OAEA3j4vYtoXVqyUFmJGrLSU8YQWyrOD9+qQualF00eXqBFxBZRzf abDTXWpixZyrit5ndIUHSoGbDyAe1UcnS+A25u8U41cLxRTHZEZQrCUK/5tiw/s+FOoW a07hxOZw41CyrvsWZADKmH/Gf5JV6qGkM55m9l06HvUT6pHDsMwH72u+5+ReF6CT+MVI r5HVDS8wMzNRsCVzCHnFjWQaZD2+8Hmmp8mXpZPVUbiNkhoh1l2e3OXfttwOzv1Q9nHP bVYD/JnvGSxv+kA6zFjgMpyrRjIeI+GX1vLnG6SgROhSFlFDRf5OGy4gwnzdR84CtgSQ /yqA== X-Gm-Message-State: AOJu0YwUqTLHX7BkqIgai4NNXmpBgaHuu1lYljJl8za90jtUavVauxg/ YViRiboGKmTNCn6RqnD8X/FExw== X-Received: by 2002:a17:907:7606:b0:991:e458:d14 with SMTP id jx6-20020a170907760600b00991e4580d14mr8196881ejc.34.1692076217690; Mon, 14 Aug 2023 22:10:17 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id d2-20020a170906640200b0099d0c0bb92bsm6461343ejm.80.2023.08.14.22.10.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Aug 2023 22:10:17 -0700 (PDT) Message-ID: <2d8669f1-bab0-d02c-ece5-a6cd87b51e8e@linaro.org> Date: Tue, 15 Aug 2023 07:10:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v4 2/3] dt-bindings: input: qcom,pm8xxx-vib: add new SPMI vibrator module Content-Language: en-US To: Fenglin Wu , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, agross@kernel.org, andersson@kernel.org, dmitry.baryshkov@linaro.org, Konrad Dybcio , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: quic_collinsd@quicinc.com, quic_subbaram@quicinc.com, quic_kamalw@quicinc.com, jestar@qti.qualcomm.com References: <20230731053712.2220898-1-quic_fenglinw@quicinc.com> <20230731053712.2220898-3-quic_fenglinw@quicinc.com> <19e45248-5fff-d806-81f2-feea56d7778d@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <19e45248-5fff-d806-81f2-feea56d7778d@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 15/08/2023 04:20, Fenglin Wu wrote: > > > On 8/14/2023 6:06 PM, Krzysztof Kozlowski wrote: >> On 31/07/2023 07:37, Fenglin Wu wrote: >>> Add compatible string 'qcom,spmi-vib-gen2' to support vibrator module >>> inside PMI632, PMI7250B, PM7325B, PM7550BA. >>> >>> Signed-off-by: Fenglin Wu >>> --- >>> .../bindings/input/qcom,pm8xxx-vib.yaml | 16 ++++++++++++---- >>> 1 file changed, 12 insertions(+), 4 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml >>> index c8832cd0d7da..4a2319fc1e3f 100644 >>> --- a/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml >>> +++ b/Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.yaml >>> @@ -11,10 +11,18 @@ maintainers: >>> >>> properties: >>> compatible: >>> - enum: >>> - - qcom,pm8058-vib >>> - - qcom,pm8916-vib >>> - - qcom,pm8921-vib >>> + oneOf: >>> + - enum: >>> + - qcom,pm8058-vib >>> + - qcom,pm8916-vib >>> + - qcom,pm8921-vib >>> + - items: >>> + - enum: >>> + - qcom,pmi632-vib >>> + - qcom,pm7250b-vib >>> + - qcom,pm7325b-vib >>> + - qcom,pm7550b-vib >>> + - const: qcom,spmi-vib-gen2 >> >> This does not seem to implement my comment: >> >> "Entirely remove qcom,spmi-vib-gen2 and >> qcom,spmi-vib-gen1. >> >> Use device specific compatibles names only. As fallback and as first >> compatible." >> >> It's nice to respond that you disagree with it. Therefore, I am not >> going to Ack it. > > I saw your comments and I replied your later comments in v2: > https://lore.kernel.org/linux-arm-msm/b5e58172-beb5-0be3-834f-3f1db3e8b3b3@quicinc.com/. > It might not be a good place to follow the discussion though, I am > pasting my last reply below: > > 'Sorry, I forgot to mention, in v3, I added the 'reg' value to the > register offset and no longer hard code the 16-bit register address, > that makes the vibrators inside PMI632/PM7250B/PM7325B/PM7550BA all > compatible, and that was another motivation of adding a generic > compatible string and make the others as the fallback. > > This will be still the case in v4, I might keep it similar in v3 but > just drop "qcom,spmi-vib-gen1" ' > > Anyway, if this is still not a good reason to add a generic compatible > string, I can revert it back to use device specific compatible string > only in next patch. I just don't see how this argument is anyhow related to what I said. I did not comment on removing the fallback. I said use specific compatible as fallback. Best regards, Krzysztof