Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1895409rdb; Tue, 3 Oct 2023 04:41:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJhOK2KRRGCEOF2qqqYXojqG8Az+DPYbytHpan2y4NPp7nJbYwbqkWgtQBHd08fr+aa0gF X-Received: by 2002:a05:6a20:3ca6:b0:159:e04f:e184 with SMTP id b38-20020a056a203ca600b00159e04fe184mr4170803pzj.7.1696333279787; Tue, 03 Oct 2023 04:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696333279; cv=none; d=google.com; s=arc-20160816; b=yBUaA/JU2pFZJ8QmgUl6MavUd3kXub/pIcXXFEAiN2jhdwQYxObRdDznDwjdtT8K70 EKl/RlbcP0aYKm2Qd0+zI5G8JIK6KFgH61g3QR2rgJk4EOikNhgaU47dMzkk0uelJFhu y+B0SJE20IEln+gQ8v8vm+ykvT6/Ocx0eQP1SR7+YUq8eLI5OdnDBshRpgl/hQ35ykHQ y25bAUBq11dGlCM9EX+6K3bR6pjeVV0QO2NkfaaY8yBi9Ckt3jHESqgUxaBjgTHnetqE DVcbfnSuyCQYypvxx8yEINn0ffciJ47kmb7LjJFUqyfu/1HwZXNlmUys4fzSScDjfgyI XuJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=n7ODQDXfFfT3sZWI4crYJMeT5e5axH2w41Qw6vXYgnc=; fh=TCIe+ouf8uohijk8u9x7Etapavm2wN3Yd42AQXAH15U=; b=EoTwefwtSlb+c69KRDanCS7jiyv9Ibtn8zYhwbZTek19zKe5JCY101ToeHeKjNITBz UDk6icbRCkkyX91yiJpuInDIC6w1ek9Te10gv4s4GKiA76ZfJxvOtRiaX5jbIopvEvhi XvFfTh21xENehrI8jhfbboTvAmlfGDxihdXyRUlhtgcEokYfJlAHIP7+yJ4gYQy8IrI6 vcrh3F8hFhRwcULpRu6J71nz2zPHC6VIiKpqC1PnAQ96I37bmt1gMRS7o9+HHQf7Yc9p /f5Tum6oYHiMHy5J9w8OiuoXhjiDMNKlTMdKGJrEaDKjN6WqqTksKsHeA145EwdYU2gl uAZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NuAwp0gw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j70-20020a638b49000000b0057d7cff25a9si1233539pge.323.2023.10.03.04.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:41:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NuAwp0gw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 90A4A81896F7; Tue, 3 Oct 2023 04:41:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240620AbjJCLlO (ORCPT + 99 others); Tue, 3 Oct 2023 07:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240604AbjJCLlL (ORCPT ); Tue, 3 Oct 2023 07:41:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE439B; Tue, 3 Oct 2023 04:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696333268; x=1727869268; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0oH2WuMFS3hMNwVP0Fyc9/MWBSTPyzuobdreAreUTUI=; b=NuAwp0gwZNL4JipB8T1y9FfU9vmS42Z1mKerbLcSRBnuyrC/JE8at/bk R1qT/nv0DC1eO8K7YfIYuytB6vSxkyuIaglDbWoOq+zMxgoRlNWWDdd20 p3VVAHnpAjhOvmtFvU4/cV/7LsVKdRDiLjJdECZyDkuPfg1dyUqstcHoS zsGeIWKtacVnrCWIeyPjnS0HeVuEF/OZOMljUetj80mPduBo8RNTHJTzO +am2M9X0kGbYrFVDc+wIWKChzVJ5xHgdtpty9lSGxqWxBJ+j/yu7MZDYu DRd1G4sg6FuLqAxSv87ciX+VmjAZIZgOYx/G3B2uPudOknvg1HUyvobqc Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="1444124" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="1444124" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 04:40:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="786070230" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="786070230" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga001.jf.intel.com with ESMTP; 03 Oct 2023 04:40:56 -0700 From: Raag Jadav To: linus.walleij@linaro.org, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v2 1/2] pinctrl: baytrail: drop runtime PM support Date: Tue, 3 Oct 2023 17:10:35 +0530 Message-Id: <20231003114036.27674-2-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231003114036.27674-1-raag.jadav@intel.com> References: <20231003114036.27674-1-raag.jadav@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 04:41:18 -0700 (PDT) Since Baytrail pinctrl device is not attached to acpi_lpss_pm_domain, runtime PM serves no purpose here. Drop it and switch to pm_sleep_ptr() as now we only have suspend and resume handles in place. Signed-off-by: Raag Jadav Acked-by: Mika Westerberg --- drivers/pinctrl/intel/pinctrl-baytrail.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c index ec76e43527c5..c9a9bc594c63 100644 --- a/drivers/pinctrl/intel/pinctrl-baytrail.c +++ b/drivers/pinctrl/intel/pinctrl-baytrail.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -722,8 +722,6 @@ static int byt_gpio_request_enable(struct pinctrl_dev *pctl_dev, raw_spin_unlock_irqrestore(&byt_lock, flags); - pm_runtime_get(vg->dev); - return 0; } @@ -734,7 +732,6 @@ static void byt_gpio_disable_free(struct pinctrl_dev *pctl_dev, struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); byt_gpio_clear_triggering(vg, offset); - pm_runtime_put(vg->dev); } static void byt_gpio_direct_irq_check(struct intel_pinctrl *vg, @@ -1661,7 +1658,6 @@ static int byt_pinctrl_probe(struct platform_device *pdev) return ret; platform_set_drvdata(pdev, vg); - pm_runtime_enable(dev); return 0; } @@ -1750,26 +1746,15 @@ static int byt_gpio_resume(struct device *dev) return 0; } -static int byt_gpio_runtime_suspend(struct device *dev) -{ - return 0; -} - -static int byt_gpio_runtime_resume(struct device *dev) -{ - return 0; -} - static const struct dev_pm_ops byt_gpio_pm_ops = { LATE_SYSTEM_SLEEP_PM_OPS(byt_gpio_suspend, byt_gpio_resume) - RUNTIME_PM_OPS(byt_gpio_runtime_suspend, byt_gpio_runtime_resume, NULL) }; static struct platform_driver byt_gpio_driver = { .probe = byt_pinctrl_probe, .driver = { .name = "byt_gpio", - .pm = pm_ptr(&byt_gpio_pm_ops), + .pm = pm_sleep_ptr(&byt_gpio_pm_ops), .acpi_match_table = byt_gpio_acpi_match, .suppress_bind_attrs = true, }, -- 2.17.1