From patchwork Thu Oct 29 07:46:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 310915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5193C5517A for ; Thu, 29 Oct 2020 07:48:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EAED2076B for ; Thu, 29 Oct 2020 07:48:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SG2X8Cgs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733189AbgJ2HrO (ORCPT ); Thu, 29 Oct 2020 03:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733219AbgJ2HrN (ORCPT ); Thu, 29 Oct 2020 03:47:13 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFEC7C0613CF; Thu, 29 Oct 2020 00:47:12 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1640006pfa.9; Thu, 29 Oct 2020 00:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V08PspyNA/Gd/mjf5dTuZbIBxLthbWMSkSzjG2zBo0o=; b=SG2X8CgsISg+8I/Lq0S7/HW98gq4rL+wuR+jZ2nrUH6do8lmt7Vq7N2hJdCSijkXrn mVNqUm6B3SaFqHDoEzvylvI+i9lclHzZd5p0SNMrIHTTwZBYUaeJLX9DTwft7sgTc83Y dwGohqw/6D1GjoeKawPA4RVlrLd+Pz1nSnM6lcLafhjCc0PTfYqeALZER8KZgcd3s/+j w8/nm4moV6Tfw90068cMIEXONYOsXXjMkJDCg+LZubWbIM+YTKdzukxM5EEfnuZ5UrmD 74NjdWkEnDZrUxF4cbkaHWjNWrAJZFVG2/wJs4SCJbT0qwONNaapQhxSrRTnYXvod7q2 JBxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V08PspyNA/Gd/mjf5dTuZbIBxLthbWMSkSzjG2zBo0o=; b=doMUdxP60DRFnMGW8mS06TYK4JTOp6Fkjyr3Zk0W3uxXMAZ/yfgGAzHJmpDJvkE/7Y 6BZfZU0NcPMmI26e2OsaUS2yxlXJeqUP0d5ZX6IlxxMpCwtG8/XbNirmCNrU7uSv13xC MTtSkB2ozJS9X9q/6N4z45/kLu3VerOF9fhIYmZZhXl26kApPItkyAUH+zz+Yhh1Hk9v og2xzqk4h43VdtC1xltjJVzNL3OWxLLczXqf3TyoTIw25etRs9MEmykbE7WbWVHlZHdI 5/EjxGG8W8sM3HBKzvp8p7anmEOXJPCR+ehoELmw8h1sWrhGVIEj1XYZhEF0YPClTbQ1 sg8g== X-Gm-Message-State: AOAM532KdttVLZrwCtp6S7KtSvhvtyacBVO3FwQWHlMfTVjeTIty1hPX ZEunx2wM5sRrv6LeQQneAeYyN1ECsInVQskw X-Google-Smtp-Source: ABdhPJyNXhvqb/kNPoP0bT3VqfcZ0W70z0M09OthqII7aEcE3f4rPU0NG/wWU/CIvU0ZQ4ihDKj10w== X-Received: by 2002:a17:90a:aa91:: with SMTP id l17mr2964947pjq.198.1603957632406; Thu, 29 Oct 2020 00:47:12 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id b16sm1850091pfp.195.2020.10.29.00.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:47:12 -0700 (PDT) From: Coiby Xu To: linux-i2c@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/5] i2c: qup: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:46:50 +0800 Message-Id: <20201029074654.227263-1-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu Acked-by: Linus Walleij --- drivers/i2c/busses/i2c-qup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index fbc04b60cfd1..bf63e4567705 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -1940,7 +1940,6 @@ static int qup_i2c_pm_resume_runtime(struct device *device) } #endif -#ifdef CONFIG_PM_SLEEP static int qup_i2c_suspend(struct device *device) { if (!pm_runtime_suspended(device)) @@ -1955,7 +1954,6 @@ static int qup_i2c_resume(struct device *device) pm_request_autosuspend(device); return 0; } -#endif static const struct dev_pm_ops qup_i2c_qup_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS( From patchwork Thu Oct 29 07:46:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 310917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D821FC55178 for ; Thu, 29 Oct 2020 07:47:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 81FCC206ED for ; Thu, 29 Oct 2020 07:47:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ujy//ADr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387630AbgJ2HrW (ORCPT ); Thu, 29 Oct 2020 03:47:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387599AbgJ2HrS (ORCPT ); Thu, 29 Oct 2020 03:47:18 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ADCCC0613CF; Thu, 29 Oct 2020 00:47:18 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id e15so1651823pfh.6; Thu, 29 Oct 2020 00:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RMptxvJmzOcZiuXNgbU/HwziNAPryxG8DYu7tZwcxLQ=; b=ujy//ADrms1eofnQAz11bblwO1E1flvt7rEanUwzH3ALIbzvBP8QBeaL8UwceylDcl YXu+MnsHF6Ic+PrAKO3yIyzJLA1R99bWvJYzlrOClwOiPjDKaipwPPi5E4RC/kYAE8SQ ZAaFZFUfYjlzhrKNLO/PD4/DxffevErzJ21FnJ8G9pPKJQnLrqQgnaYSF1rweqqAf/lm qrlo+rrqS+2m+4fbCkt8p94IQXKMtyAIOmlbGUmz/fX5f9JdlaYyBAEqlGq37dpDK0AV NQIDiHozX1XNOaonMf0QYYT2GexsXc/bwQWdeiaodSADmULgs8GPhKr9yk5arffDnDf2 wTbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RMptxvJmzOcZiuXNgbU/HwziNAPryxG8DYu7tZwcxLQ=; b=rXLkYuX7VzEioQiYL/FweKtmwUcSblY5LbUHmPn+XQEM8+6vTxjNd8EzvOGP0tlou0 Yu0tuyQ5rasqxmU5QJfXs5ayYlLn4jVRAXZS2BwWMzqr8EdEUtKDoQizELLIbpgsCR59 kAzXmnfRi8i/n0/0/X570Z7g9R2dPZiFdHUpySI0ZIkw/3xjxHN8StMOkDICFq3NNY1O RTQ6+hsdXUzx/Y2peHm5quCoFH3tfljqR8F8rtH6yMX1iYL4ORqLRTkCKMqsQcyPK8+E Vb+dHdDvyEEei0oUWwZYDRhbWOdTjlOKBhPEdpdLzojm/1/xkZ8mu62+/7WGt2Rfp1Xk jrXg== X-Gm-Message-State: AOAM533onKxjH/O1N/ZZTFPRDOxBzIDsf2+Woa2YHcibAdxffSavM1Nc II3h5wTCShdhI/1FUjlXnw29bYKY0f0KTKHI X-Google-Smtp-Source: ABdhPJw8P1RoK4I78C2zTcT3FY9ZJ4cZamb/26Rqvh2ViBc7KDj3Fnsuu9LYIO9HCkQJTW/1BzyCMA== X-Received: by 2002:aa7:9dcd:0:b029:152:421f:23eb with SMTP id g13-20020aa79dcd0000b0290152421f23ebmr3223431pfq.58.1603957637685; Thu, 29 Oct 2020 00:47:17 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id v125sm1864615pfv.75.2020.10.29.00.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:47:17 -0700 (PDT) From: Coiby Xu To: linux-i2c@vger.kernel.org Cc: Qii Wang , Matthias Brugger , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/5] i2c: mediatek: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:46:51 +0800 Message-Id: <20201029074654.227263-2-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074654.227263-1-coiby.xu@gmail.com> References: <20201029074654.227263-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/i2c/busses/i2c-mt65xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 0cbdfbe605b5..c2939f2e5dea 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -1284,7 +1284,6 @@ static int mtk_i2c_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int mtk_i2c_resume(struct device *dev) { int ret; @@ -1302,7 +1301,6 @@ static int mtk_i2c_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops mtk_i2c_pm = { SET_SYSTEM_SLEEP_PM_OPS(NULL, mtk_i2c_resume) From patchwork Thu Oct 29 07:46:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 310916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14CE6C55178 for ; Thu, 29 Oct 2020 07:47:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE2E820706 for ; Thu, 29 Oct 2020 07:47:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UkuEIBks" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387744AbgJ2Hrs (ORCPT ); Thu, 29 Oct 2020 03:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387809AbgJ2Hrp (ORCPT ); Thu, 29 Oct 2020 03:47:45 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A764C0613CF; Thu, 29 Oct 2020 00:47:45 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id r186so1679758pgr.0; Thu, 29 Oct 2020 00:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uv2FWQlSBJFmE706ogx6rH+lBxHwtXvvktU8G7mdeHE=; b=UkuEIBksTIBEx0rU9xx8YSrprU5SuhUkN7XbFd8Ss4WqdzUiRKgQToHyt959jtOKzE descPPhCAOW0XNzIJF1XRtujK2NMKSeIKOais3aepphrSUfUB3jAs7x01P+pOrYsaygI tksDMUUbjLTMKxTbn4Cb5pdlHLDgNO0QF4+tJM9jsZ6ThxQ7y5mXMg7ujImMn+wzmyRR 8i0IxBH/r//xZ1LE6r79PribG82uJ0XwUtm05Dd+IXedix0wIz0c9GdQkKf0oNQ3vD5Y elnrMVaYVrgf9Fb4wuKD93ftXMWvP7e9uCX8HlzzQ/4hXezZp/iJaHbuaZ1IQDyaoEUH xBEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uv2FWQlSBJFmE706ogx6rH+lBxHwtXvvktU8G7mdeHE=; b=DAH6224FMVUeZ9gxFYFIeYVx1SF7cJjungQyeufiTrHW2wZZJdi8wtLVcck6WjYSrt AuR10kweLVeEoV5pXVaQVsBlMtf9oIA2/L46dq32jSREe1VhIyXE+mX5xEVTCyskQptS 9qCagr3zRd3Kd/nwl0ts8neEVfO4VHR/HC8KvmHT76FBmKSzT7Hr23e/rDb8AGYCyIqW MwZG/NrMfR6hx8iEG8tXvWgOhaSA0/4LPw8GjqnMumtB7+0FQ2sN4zDsgJqtpfjVTMtn d9WVgTp2zlRr6lW6TtGXxPsukZRMjyUZkxCvfpbI+GKRQO8XuHmGf3R/c9DpKkHaCZgd evwg== X-Gm-Message-State: AOAM532SPF2vcYbmkfyir63ozfpWrmMubI5dYDdvzfrLzDmCV6K5oNeO J3B1+srwDUawV8IUitH7EbrzU5FeqC79L0tr X-Google-Smtp-Source: ABdhPJxKwsyEZXm+NRlnPeeDS94chF16rqocvuwXKW/X+8833uLeRKJCpBpQq0NAIMLEiiDLcXXemA== X-Received: by 2002:a17:90b:17c3:: with SMTP id me3mr2716736pjb.56.1603957664762; Thu, 29 Oct 2020 00:47:44 -0700 (PDT) Received: from localhost ([160.16.113.140]) by smtp.gmail.com with ESMTPSA id z5sm1834680pfn.20.2020.10.29.00.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:47:44 -0700 (PDT) From: Coiby Xu To: linux-i2c@vger.kernel.org Cc: Pierre-Yves MORDRET , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 5/5] i2c: stm32: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:46:54 +0800 Message-Id: <20201029074654.227263-5-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074654.227263-1-coiby.xu@gmail.com> References: <20201029074654.227263-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/i2c/busses/i2c-stm32f7.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index f41f51a176a1..95ac9dfdf458 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -2262,7 +2262,6 @@ static int __maybe_unused stm32f7_i2c_runtime_resume(struct device *dev) return 0; } -#ifdef CONFIG_PM_SLEEP static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; @@ -2356,7 +2355,6 @@ static int stm32f7_i2c_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops stm32f7_i2c_pm_ops = { SET_RUNTIME_PM_OPS(stm32f7_i2c_runtime_suspend,