Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2285540rdb; Sun, 11 Feb 2024 22:11:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3XMUBYlrx/n2yw/4ZZKffMtq6a5uUHBN2TQ4luMT1S6LTHaqTpjYUs1i5t9w+rk3YewddW5VvV3f67/V5p159ld6EG1SuublqBLdAcw== X-Google-Smtp-Source: AGHT+IH467XnLzG0ohSF7dMZi7bn8f8kcAOnORP9AnKpRSzZR9kwonM0w7FrWmxZsW/U7Rqr6PMR X-Received: by 2002:a05:6a20:94c6:b0:19e:9728:f4a2 with SMTP id ht6-20020a056a2094c600b0019e9728f4a2mr11177272pzb.7.1707718262901; Sun, 11 Feb 2024 22:11:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707718262; cv=pass; d=google.com; s=arc-20160816; b=dOnrzbjq/X1eOu1OVjEAn721T7PhL/liOPM/iNlpRhqMvfcPz4Bgmw8UkstFWKSEyZ IIXZWhgoPNht6nQf6lIE37GvPo05xY+Av5YXkFrk8Hq/JmN7EGPi/1bq2F/DYrQXEMeV wb25GNaGo9QGY6SXRcJVYrs1O9tuvthgHjE26eztrHMGD/TxKJngqb/qx6qqidCNG0NM o6DOuS26kjBv26NsoVj7GY9VcShfmQI5jnAcvrcv8YYgW0H+1FD+b7s+vHNKIIueMIpY S4VxWsfds5OOC2xM5quaR+KneHRr/txi5FFqiWpKNXRAFKZJFFUBGS0w3pRW/n6Gkhvd xjdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=edZjh9zBfnv91FVvi/AanVEQiAelAuIIxeURf0xsBPE=; fh=yDq1/c4cnTwjiYHM64sh/5GV6coeIQmGag0j0dWpRjw=; b=0F+43Ta2zPW+H9NFt9lfRBuIxCgdHMOb/01Qsrs5XMesqfiAFS4QfyumctuD9WbNVt qASHhlkoUFDjoO1rcu30RxDYruVIgSXBcKASx9VpMKV0/dNZAItDHYgodE2p4Z7ApgX0 k8grVUYXbRmui965gms5turbNcceW3wZJK+egCaBJkmVnB1HDxdBs50fvZolX+ZQVklY 3YeLeIMeQDHoB4c0I7+ADdufXLXPlCRvqoO/jb5Zfl1jTMkXHmgI1dIbzgka5E4Q+B+c N637OMYRUXeUCUiXI1j2iCZmy9r5EyGLqYZJp78RO9rEQenWnn+p0fxzWMG6vlC+Jdpu ukHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kxuo9xJw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCWHTWAFG6gTIosM/nBlVq/WOGRc/kqR3mJhCcNcMZKNVxmw5mkq27TPAPReLo8yGqAfQfKrhHUuugzgWVgxJee5Bn8QHzmN+YkDaHD9JQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y68-20020a636447000000b005dbd4cf445csi2701558pgb.35.2024.02.11.22.11.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 22:11:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kxuo9xJw; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-61113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8977B2818DA for ; Mon, 12 Feb 2024 06:11:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25BFF7464; Mon, 12 Feb 2024 06:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kxuo9xJw" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE9B96FAD; Mon, 12 Feb 2024 06:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707718256; cv=none; b=nRYMMM39jRnRuk9P/wy1LwNToBA6Fn/DHbOuLIgAEmye7VegRpE1UEVK1ffFW1DgFBE9RWYtIVRVGMmuTcTaYYYPIeGaotiYzd6doPT8iLrJfIpmCJzyaGKw7kkUOVc2zhd5amsb22c08cOw97GZgP7mjR0NkDqweoZNc1oqofc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707718256; c=relaxed/simple; bh=kFsYgesT2OuI7NyKvUcKDZ7z+d8fMM9cVlbYxuZzWg4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aGLmtC3wi0zU/DP3M7GwYD0ou2uCmNRLLaR0+CGA1y1wpVTLQILnVU7CmCBxB7TEAcI2Yqn616jGuYJad/FJ/Caqx/Eha6tqq6xPCKmsQw0xrW8fLVwy6++6rSJQ/ezQ1ktwGqhD27wmiS1eMk77RzYuwZhmN1j9YlOj6W1T0WA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=none smtp.mailfrom=ecsmtp.iind.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kxuo9xJw; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ecsmtp.iind.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707718255; x=1739254255; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kFsYgesT2OuI7NyKvUcKDZ7z+d8fMM9cVlbYxuZzWg4=; b=kxuo9xJwWhuvS8JlH54MXkU8WFN6+oxjsnBcWob/otlfieUxEXlQDF1d 8ZTUKuBH1PlPMX3zT7BlOBV1xan04LTd88bmyz5d23s0Vc5tOupZQIbK2 94DVpxgbQrFkob6tPml0FfT/o+6FvliFfZE7cBYr6E6ZotEJAoKVW4G7x KVAVFbyzt6yW311wOXhLyD1ZbyThY8D1scZBuvFrwrSS2vxyxyfwA0WBV s5xjQ7ToWfZGqtWBiSW1qhNiueIoNrD15U/qkgLYKnG0UYn6gnZoxyr/d +ShGdPLkj+NzG4MZKExAnreC3MS5AjrpzHYq1ihlS7DSoWSahi6vdtKwt Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10981"; a="1833044" X-IronPort-AV: E=Sophos;i="6.05,262,1701158400"; d="scan'208";a="1833044" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2024 22:10:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,262,1701158400"; d="scan'208";a="33574489" Received: from inesxmail01.iind.intel.com ([10.223.57.40]) by fmviesa001.fm.intel.com with ESMTP; 11 Feb 2024 22:10:40 -0800 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id 581291CAEA; Mon, 12 Feb 2024 11:40:39 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id 55F891600102; Mon, 12 Feb 2024 11:40:39 +0530 (IST) From: Raag Jadav To: u.kleine-koenig@pengutronix.de, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Raag Jadav Subject: [PATCH v1 2/2] pwm: lpss: drop redundant runtime PM handles Date: Mon, 12 Feb 2024 11:40:37 +0530 Message-Id: <20240212061037.4271-3-raag.jadav@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240212061037.4271-1-raag.jadav@intel.com> References: <20240212061037.4271-1-raag.jadav@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit We no longer need empty runtime PM handles for PCI devices after commit c5eb1190074c ("PCI / PM: Allow runtime PM without callback functions"). Drop them and let PCI core take care of power state transitions. Signed-off-by: Raag Jadav Reviewed-by: Andy Shevchenko --- drivers/pwm/pwm-lpss-pci.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c index b4134bee2863..51efe37e23fe 100644 --- a/drivers/pwm/pwm-lpss-pci.c +++ b/drivers/pwm/pwm-lpss-pci.c @@ -48,25 +48,6 @@ static void pwm_lpss_remove_pci(struct pci_dev *pdev) pm_runtime_get_sync(&pdev->dev); } -static int pwm_lpss_runtime_suspend_pci(struct device *dev) -{ - /* - * The PCI core will handle transition to D3 automatically. We only - * need to provide runtime PM hooks for that to happen. - */ - return 0; -} - -static int pwm_lpss_runtime_resume_pci(struct device *dev) -{ - return 0; -} - -static DEFINE_RUNTIME_DEV_PM_OPS(pwm_lpss_pci_pm, - pwm_lpss_runtime_suspend_pci, - pwm_lpss_runtime_resume_pci, - NULL); - static const struct pci_device_id pwm_lpss_pci_ids[] = { { PCI_VDEVICE(INTEL, 0x0ac8), (unsigned long)&pwm_lpss_bxt_info}, { PCI_VDEVICE(INTEL, 0x0f08), (unsigned long)&pwm_lpss_byt_info}, @@ -86,9 +67,6 @@ static struct pci_driver pwm_lpss_driver_pci = { .id_table = pwm_lpss_pci_ids, .probe = pwm_lpss_probe_pci, .remove = pwm_lpss_remove_pci, - .driver = { - .pm = pm_ptr(&pwm_lpss_pci_pm), - }, }; module_pci_driver(pwm_lpss_driver_pci); -- 2.35.3