Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1600765pxb; Thu, 7 Oct 2021 11:00:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySQD5F/miPFE7Gb49E+HEnd6Uqj4MzVuadivHMZCrA66JAegXKUxYacej7HmYhccR9CbnQ X-Received: by 2002:a17:902:758b:b0:13e:8b1:e49f with SMTP id j11-20020a170902758b00b0013e08b1e49fmr5198045pll.6.1633629621325; Thu, 07 Oct 2021 11:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633629621; cv=none; d=google.com; s=arc-20160816; b=dzYgZ9AROaC1fR4Vch9w8CL8GBSC69Rs23qLBIQkU2VAbwOvkCxGWINCMHyV69A17+ 3e7cnUPyDiPn+1HuL2+uZ7c4cs/rpCzHt4mw7yRUVOx3fqzvpx+eoGci9Ia/N09Ix0i6 QUkXKoslfj+PJupigkWTBGQedSYKY4bxV7kAWiwG2X5nFN77MJGCyUvXBikz215mS7+G ekuvYR+HRo/i69uKU2tVCBLBhv3D0UTlzgosG3eHugSj5r6u9epXXjBn/T9ShGTzvk7x 0VNmWCABsK7AQLndvpmJem8E+zEF8NAitC/ujqef1cwyWpdlrzmcwFWURWOe/xCW6vF8 VALg== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=tNffkl0Q4XYFcl/VueyyIpHh5QtOfORzbwnyFe2lGUk=; b=jbn4uy2Lgx/AuGdaS/dEmb2eJB6TsKpNqP3UwKUl+411fzJiPD4oSbGWVg2VSbopv9 4YGf4ETIisvgyUDULyxtnqJiJhXY7yL4jghq2CgNI/bKn+l2vmlEgBHROfrwtRS8VxY/ YuDuxrzl0XwTSvEL/n2e27qjH5IoaOHQCMq9hGU6bcKc+1dym/aWcef7JDeAqjKlKNOg J4NldckMmDTXIuxJAWGCpEn/s7YWyaVFzp8SEln3NmxzJuWDEj5KABEDv6ELcVuYYF7K V2n4V4BQkMux0QzgNROqswg1Sa3xSCC8u8laqsDuDfblGy6j+JoTb6OSo0WdX/r51wpn T8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b+B3rRcr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si66375pjl.80.2021.10.07.11.00.05; Thu, 07 Oct 2021 11:00:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b+B3rRcr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243379AbhJGR7W (ORCPT + 99 others); Thu, 7 Oct 2021 13:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243254AbhJGR7V (ORCPT ); Thu, 7 Oct 2021 13:59:21 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10DAFC061755 for ; Thu, 7 Oct 2021 10:57:28 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id 77-20020a9d0ed3000000b00546e10e6699so8556708otj.2 for ; Thu, 07 Oct 2021 10:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=tNffkl0Q4XYFcl/VueyyIpHh5QtOfORzbwnyFe2lGUk=; b=b+B3rRcrnNNlpsNamNM5v+Dg5DxzaCynl+SWNFYgRP4C1AnU07jrfTNLTW3dVfQRNr m16M6gVxXz3tLCf9fGZXHnleEiyRdUWguUWmryHmIQ82olFUq30yn7iNGN3fm3PbT7gq iuVijXL/lXLB2gsZHyuvZ/TeV4YTcLK+kzvu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=tNffkl0Q4XYFcl/VueyyIpHh5QtOfORzbwnyFe2lGUk=; b=y8lCaNByFI18csAMYys3ch+Lgo7l8pzkwQU+hqQ6cNiBY+AyY78C0gf5+/d/BU9bX7 S71Vac+1AxaTwpkVae5szwT80nlry3Xf91yI+dRrps/5kZLS5PfamiDBSBt1UhZ5LV49 he5G4MBjsqkvLuUdlRqzTyli+ecDpB6n64ft1s8vjoi979fA2xY5MQAZx/CBnkZ7BTE7 +g7ycICeOxrJy6sAgxFKbAqT/0MF8Vw87kOAxNHkQozrR9C7V/nDBsZnEgbr5szQKLbc 64obyq7dA51kWAQwfAe1WVh/ylhFt/KFf2P7RfLQy4HwRKed6NPtkWITenrshDIu7LAJ r2Yg== X-Gm-Message-State: AOAM530P83/znsTZdYLvJTMcYZzMzurMURlStiMvGExBYhHBsx5H2zqj md/HKyWNiaNPVc1PayQFQ/1MoX+yJk2RLirBSqHh2A== X-Received: by 2002:a9d:12f4:: with SMTP id g107mr908111otg.77.1633629447464; Thu, 07 Oct 2021 10:57:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 Oct 2021 13:57:27 -0400 MIME-Version: 1.0 In-Reply-To: <1633614519-26680-2-git-send-email-srivasam@codeaurora.org> References: <1633614519-26680-1-git-send-email-srivasam@codeaurora.org> <1633614519-26680-2-git-send-email-srivasam@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 7 Oct 2021 13:57:27 -0400 Message-ID: Subject: Re: [PATCH 1/3] pinctrl: qcom: Update lpass variant independent functions as generic To: Srinivasa Rao Mandadapu , agross@kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, perex@perex.cz, plai@codeaurora.org, robh+dt@kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org, tiwai@suse.com Cc: Venkata Prasad Potturu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivasa Rao Mandadapu (2021-10-07 06:48:37) > diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > index 2f19ab4..c0117c5 100644 > --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > @@ -124,7 +124,8 @@ static const struct pinctrl_pin_desc sm8250_lpi_pins[] = { > PINCTRL_PIN(13, "gpio13"), > }; > > -enum sm8250_lpi_functions { > + Please drop this extra newline so the diff makes sense. > +enum lpass_lpi_functions { > LPI_MUX_dmic1_clk, > LPI_MUX_dmic1_data, > LPI_MUX_dmic2_clk, > @@ -203,7 +204,7 @@ static const struct lpi_pingroup sm8250_groups[] = { > LPI_PINGROUP(13, NO_SLEW, dmic3_data, i2s2_data, _, _), > }; > > -static const struct lpi_function sm8250_functions[] = { > +static const struct lpi_function lpass_functions[] = { Why not follow the approach of other qcom pinctrl drivers and make a core driver that each SoC uses as a library? > LPI_FUNCTION(dmic1_clk), > LPI_FUNCTION(dmic1_data), > LPI_FUNCTION(dmic2_clk), > @@ -615,7 +616,7 @@ static int lpi_pinctrl_probe(struct platform_device *pdev) > return dev_err_probe(dev, PTR_ERR(pctrl->slew_base), > "Slew resource not provided\n"); > > - ret = devm_clk_bulk_get(dev, MAX_LPI_NUM_CLKS, pctrl->clks); > + ret = devm_clk_bulk_get_optional(dev, MAX_LPI_NUM_CLKS, pctrl->clks); Please mention in the commit text why this is now optional. > if (ret) > return dev_err_probe(dev, ret, "Can't get clocks\n"); >