Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp508996iog; Wed, 15 Jun 2022 06:51:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypfqQjxHwXp5oPD6drs3RUrfSxbc98h9m3HOLMjCjUGpmP9Er4nNFc3Xmyi3kMT0KmS4yl X-Received: by 2002:a05:6402:34c8:b0:42f:b59e:b98c with SMTP id w8-20020a05640234c800b0042fb59eb98cmr13036153edc.275.1655301116194; Wed, 15 Jun 2022 06:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655301116; cv=none; d=google.com; s=arc-20160816; b=ZDsYXa0Btg1BiRr3BGwTpYIhUSFg6QV3SCh8Gzu4bq/BnIPMiAVGcTy31hdGCC1/h3 v0pgH3PWHCFEd9Cl8QnRjQ4vYSfV5TZVMsxBthfa61/4W0IUTJqWJZkG/60HpYwKXQrp IxSL+969Yx/2FMEFFi6Br9JRG1KBxxmV24YUXz+i/9/b1dTQC5uRKFC239QyvuOz6c/5 UUql58E/z8UavyHGASE/UNXtta+ZO34Yr9QXyZ2aDT2WoSp8qQ6X6hQSdWM2pbNHZ/DS c8YdIIS9CKZ8NMd1WRxSKiDRestnmQwZXiXXc4lSTcXVwnWgZacz0GR5uMpfwWcRY/By xRHQ== 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=Hd2Q7z9uWW7dB0gy7lxuAP2GK3dj82/CD4CwzUHIa4U=; b=i2DpCweNb9elVNRmUIOCwBP/Ij+8P2o631IL49LKXF286Ggu8H9d1H5niDE4+reB9R De+4XiEL/MlIkpBKsTMslzYh+1yfEDj+cxFN1mmNfwiHJad7ToP5t63fR43L2PIBzC4h de0/03qVFjDv7DEtwZq9vZXIJFK9JmJQgZ+j8a0pPCFVp62wMSGH8qv1DMMPj8qAmAo6 bBWwXjOSEbqSTtIngeD1OGpoqmVWKhsfeuCPaTOfLasxXJDh/istuZw2exWgsonuRGzb O/oLkpI6M3leAISxZb4G0LVzeDceXC3CriKQmZym2uyS6hid5Z/SP7zwrLkyrzylCHsQ vnjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rPkstlrZ; 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 t8-20020aa7db08000000b0042dbf3f21e7si14033977eds.139.2022.06.15.06.51.21; Wed, 15 Jun 2022 06:51:56 -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=rPkstlrZ; 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 S1354276AbiFONjw (ORCPT + 99 others); Wed, 15 Jun 2022 09:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354312AbiFONjp (ORCPT ); Wed, 15 Jun 2022 09:39:45 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A121035DEE for ; Wed, 15 Jun 2022 06:39:44 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id p13so20606197ybm.1 for ; Wed, 15 Jun 2022 06:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hd2Q7z9uWW7dB0gy7lxuAP2GK3dj82/CD4CwzUHIa4U=; b=rPkstlrZwE646fy1fdO0Vu8lKssadxnY/cq1nHk/4Drjaed9Hyl/FzAV97Qw6CvIOZ ukuClPhw1cqKIxSdjV+m1grXdgBQgi+gLNnMZ7HqXd0JJeUPu6JXC1gVuTwBjilsC25M 046vbKX3N0sgQ1TA9dwRUme8KeoU1PUtU8IECplVwcTFYaJIgO/VSyyVD4xWFk4Afnl8 7o7tzI6DEzz4TuN43YTXQPTuXTvo1omNKgiz4HSoz26G4MBgCF0gubbzX3NnlnAvpfqL cKHyVg2yoBW8qKIxE+KQiKn3UdKz47hR2QBV3lkKhJTUCVPlbM/fFn9AGhFZh6f1wIyx o+7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hd2Q7z9uWW7dB0gy7lxuAP2GK3dj82/CD4CwzUHIa4U=; b=gwW7bAp0T7EDo+m8rv3HhkJXv1feZ4bHUJf0NujjXP1kE5pLBvrk7Oe8Cn8NKXCrzO HYsXtHbSNjYL1ED03tWtqHfr/U5ZId52Wg8NT5KmJIKA7lF+0oukCqiKk6MyKWwrMPF7 MuHQeKu4W0KwP6+Ycvgaog+gW2tG1GXpNQliDH4k+7qErp+nUCSkFY04TAqwJm5RK58j e7Tkkqkw/4qGNq7DPe++Iudv/Yn/eBEAgm7MdzOypYu/3s9YNr75u1fy81DWU7rDfd1E o4rSa6TS3pTUvw/xIVp88l3yWs9Cy1J2iyWnsSU//SYfZjXadcfl03BtbvhRGYddr5V/ Srig== X-Gm-Message-State: AJIora8bXhu8/WnMdogfRNQfrHDG5m1ODJ0ssmaBaIE1n1+GlFOKsJYH 7i3ROmdBIftAA4xKmdmBpjDQsB+sU9XEdfEVU1sdfVN76rc= X-Received: by 2002:a25:1256:0:b0:65d:6433:7993 with SMTP id 83-20020a251256000000b0065d64337993mr10062220ybs.626.1655300383762; Wed, 15 Jun 2022 06:39:43 -0700 (PDT) MIME-Version: 1.0 References: <1654079415-26217-1-git-send-email-quic_srivasam@quicinc.com> <1654079415-26217-3-git-send-email-quic_srivasam@quicinc.com> In-Reply-To: From: Linus Walleij Date: Wed, 15 Jun 2022 15:39:32 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] pinctrl: qcom: sc7280: Add lpi pinctrl variant data for adsp based targets To: Srinivasa Rao Mandadapu Cc: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, quic_plai@quicinc.com, bgoswami@quicinc.com, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, quic_rohkumar@quicinc.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org, linux-gpio@vger.kernel.org, Venkata Prasad Potturu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Jun 3, 2022 at 1:03 PM Srinivasa Rao Mandadapu wrote: > >> @@ -149,6 +159,10 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { > >> .compatible = "qcom,sc7280-lpass-lpi-pinctrl", > >> .data = &sc7280_lpi_data, > >> }, > >> + { > >> + .compatible = "qcom,sc7280-lpass-adsp-lpi-pinctrl", > >> + .data = &sc7280_adsp_lpi_data, > >> + }, > > Drop this and instead add some code in the probe() > > in drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > > lines: > > > > if (of_device_is_compatible(np, "qcom,sc7280-lpass-lpi-pinctrl") && > > of_property_read_bool(np, "qcom,adsp-mode)) > > data = &sc7280_adsp_lpi_data; > > Here, only diff between ADSP and ADSP bypass variant dats is > "is_clk_optional" field. > > So we can keep something like this. Kindly suggest, if it's not making > sense. > > if (of_device_is_compatible(np, "qcom,sc7280-lpass-lpi-pinctrl") && > of_property_read_bool(np, "qcom,adsp-mode)) > data->is_clk_optional = false; Looks good to me! Yours, Linus Walleij