From patchwork Thu Oct 29 07:53:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C123014B4 for ; Thu, 29 Oct 2020 07:56:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AAA721534 for ; Thu, 29 Oct 2020 07:56:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jpkjTuHp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731482AbgJ2H4l (ORCPT ); Thu, 29 Oct 2020 03:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731422AbgJ2Hxq (ORCPT ); Thu, 29 Oct 2020 03:53:46 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491D0C0613D5; Thu, 29 Oct 2020 00:53:46 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w21so1660198pfc.7; Thu, 29 Oct 2020 00:53:46 -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=hGeI6Nxv27zFf1cpMaROkZffEIZtimpVmaFXRbyPh5g=; b=jpkjTuHp/ctst1xgZYhQNSh47JeAQHhVsyo8EnPyzhahwTfkT2Fb+NAYJfV2Rdu2vi o8JuN/eNsBnk/h5Bp1VG+kpYoXHlnKcyzoj6PjL4IgsG8w0yhOIFaRIHdkyj37t4loZm NB9XE98LfUzwNQvLNA7tEeyvaScTMT3vSPFT6L0UzF9ETeC9joKPc6RcDe4lRmjBp+uf QiZLY0q1l33KFgXJdVeNp12KiRrzOmQ1LvUy85ukxZlR5cfI/ZoNVYwfENs7frtCQumf NuzpeLAW3Mn75bAAduwhfPG1hDOHrpoYIVk1tlP+lRW5vpm7iSJma5jFZE4AE4WgEpJW 19DQ== 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=hGeI6Nxv27zFf1cpMaROkZffEIZtimpVmaFXRbyPh5g=; b=rdfHVgdMXNmSJwcDullGpZW1dil+wPtgawmqRZBkoZ3LAwK+8FVbK0mGdFP71WExOE bEwpRtpgsMjup9aFbX4HUWaxU4ZUjIsZ3gUv6HSPETnxBPQvRrNDCkmOfLi2xwrQhSQm 8IFdriPv8icJIcYjvz6LXSVv00xCCfGJ5Lzy7znFDzz6jmmXrg0BpviHk0tbXrwCfHB+ t7PFboN+1YcZ2ayXVchd3vHevJuEyDBxBLFiCfDsYggnHDn00OAWLBiiin5cHjAEzhEM Meuj6Xp3uQk8vD3Y2ekOZLkqjzQkmWmWer5QnM3E6x1zCO64KwDH7JlN6y5gO8TBEwcF gftA== X-Gm-Message-State: AOAM532qVFJxPjDKYYf/+DR640LPuoV6TLomBM70KZJkGrUv758UkWXy 0klrlQu3oQuk6toOAxYAg38= X-Google-Smtp-Source: ABdhPJz2IbK59ooRsRBpzJmOcejoWwaK66Nh3QtHv/cEW0cCfp9Hlvco1DL9HvRtNqhvEYfoM76LHg== X-Received: by 2002:a17:90a:4b45:: with SMTP id o5mr2843503pjl.223.1603958025956; Thu, 29 Oct 2020 00:53:45 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id h184sm1890523pfe.161.2020.10.29.00.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:53:45 -0700 (PDT) From: Coiby Xu To: Guenter Roeck , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/3] ACPI: watchdog: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:53:25 +0800 Message-Id: <20201029075327.228570-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-watchdog@vger.kernel.org SET_NOIRQ_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/watchdog/wdat_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c index 3065dd670a18..0d912ceb2ecd 100644 --- a/drivers/watchdog/wdat_wdt.c +++ b/drivers/watchdog/wdat_wdt.c @@ -465,7 +465,6 @@ static int wdat_wdt_probe(struct platform_device *pdev) return devm_watchdog_register_device(dev, &wdat->wdd); } -#ifdef CONFIG_PM_SLEEP static int wdat_wdt_suspend_noirq(struct device *dev) { struct wdat_wdt *wdat = dev_get_drvdata(dev); @@ -526,7 +525,6 @@ static int wdat_wdt_resume_noirq(struct device *dev) return wdat_wdt_start(&wdat->wdd); } -#endif static const struct dev_pm_ops wdat_wdt_pm_ops = { SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(wdat_wdt_suspend_noirq, From patchwork Thu Oct 29 07:53:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 97DD714B7 for ; Thu, 29 Oct 2020 07:56:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7177521534 for ; Thu, 29 Oct 2020 07:56:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RAjVn4o2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732450AbgJ2H4d (ORCPT ); Thu, 29 Oct 2020 03:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbgJ2Hxz (ORCPT ); Thu, 29 Oct 2020 03:53:55 -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 64DC5C0613D5; Thu, 29 Oct 2020 00:53:55 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id w65so1678007pfd.3; Thu, 29 Oct 2020 00:53:55 -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=jTgCofqTZH3uvNft4bI3w2FkkPwa29NU3EvFYtPNW3M=; b=RAjVn4o2DSdCAF6XKMpACtzgiJuWB9ajdxrH0gTfgyV3XmwLMN7nXXL8BNCJhpJn2z 9cwiVICKeC1C+VwjORfdlFyjdMjfBwMWiQKqTQ1wxXKe5Y5zeE6vQTSaNL06f8Y6HALg qb8Bq/JnxLomcs9763x+GQ7AV3Y5huHDCk2xqSjo0lTTAM2qXGVsLv4HT/uGzFVzglvv bAzYgHWwgFfzWM24j4zl1mYIVquGfYZMkUO+tPew+WsYw/3kbNtfSStPy7vb1/57rIqa 4h7SvcZFvgBvpl601NK3zlrSUJIce23yt3GPTNmbLDnUEuamujRizFdV1aJkZ2kCbem+ RSAA== 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=jTgCofqTZH3uvNft4bI3w2FkkPwa29NU3EvFYtPNW3M=; b=TEySfSYI1Yi0/knemkF5djxR6twFjM9E3hVxlWyuQC7WsCmanj2h/7fmvAXdbzGX5G q8+r5jNK8bgt9fq4OHHhnNZ3D7njazIOFGI+Hjd936Z/NDpy2Wm6ves1IGtz1M/jclnv NuwltbagyD8iokYaa3XVB6G/o9FpidBtL3A3KjDyyNq8fZ+wunPDhLM62+zl6chzTQ7G QohuW4ZmWMt8IB3lgcSMhTtdz8VKZ+x7PIGMUnN2o7s8juSHGRF+7AxvlWRz15gsw22M uq1xFrbaPwYd2maZzkSUkzlTU2TNHtlEX4xTe+AsVZfhFjhhTRhoFuWAQPJGl5qPBJoq GXqQ== X-Gm-Message-State: AOAM533au953UUHjaILEKc9FN8ayBkdL4S8YVxLaKEJEDdhj5CYP3/uc XFH/l5A1oRLNyUXSlTPHq/M22AQI8ZwVHyhb X-Google-Smtp-Source: ABdhPJy2ehajgbrB/4gdRfKNx0c/XTtErSwv2PVyts3tF8Q5u1Z99yQHorUE2vqfLu4KuzDQtz0j+g== X-Received: by 2002:aa7:83c2:0:b029:156:5ece:98b6 with SMTP id j2-20020aa783c20000b02901565ece98b6mr3001488pfn.4.1603958035020; Thu, 29 Oct 2020 00:53:55 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id 20sm1900352pfh.219.2020.10.29.00.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:53:54 -0700 (PDT) From: Coiby Xu To: Guenter Roeck , Wim Van Sebroeck Cc: Patrice Chotard , linux-arm-kernel@lists.infradead.org (moderated list:ARM/STI ARCHITECTURE), linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/3] watchdog: st_lpc_wdt: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:53:26 +0800 Message-Id: <20201029075327.228570-2-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029075327.228570-1-coiby.xu@gmail.com> References: <20201029075327.228570-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu Reviewed-by: Patrice Chotard --- drivers/watchdog/st_lpc_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/st_lpc_wdt.c b/drivers/watchdog/st_lpc_wdt.c index 14ab6559c748..c1428d63dc9e 100644 --- a/drivers/watchdog/st_lpc_wdt.c +++ b/drivers/watchdog/st_lpc_wdt.c @@ -248,7 +248,6 @@ static int st_wdog_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int st_wdog_suspend(struct device *dev) { struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); @@ -285,7 +284,6 @@ static int st_wdog_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(st_wdog_pm_ops, st_wdog_suspend, From patchwork Thu Oct 29 07:53:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 11865487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EAB1D14B4 for ; Thu, 29 Oct 2020 07:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2CE62151B for ; Thu, 29 Oct 2020 07:56:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tsgIMHwo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731836AbgJ2H4Y (ORCPT ); Thu, 29 Oct 2020 03:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgJ2HyI (ORCPT ); Thu, 29 Oct 2020 03:54:08 -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 71B39C0613D5; Thu, 29 Oct 2020 00:54:07 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id a200so1651641pfa.10; Thu, 29 Oct 2020 00:54:07 -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=45WrHfAKbdYHjpbC20AMO5osfugbGDlzHaoUzU5Icuo=; b=tsgIMHwo30bupNgyRYBxQu2rGAfExKotwCphoybjhufKRCTb3vJjtsAJJRcXjKXvD6 LRTFzBRuz3x95vTMXb8osjf93WFT5UR6Bs/VHkhu3r5z7w1+yRur1hslaq3eobRenbYe 6V8kG40I7rI6J6KchdjtOqMHhifU6t9nHd1YYeMzMOrKBp+0dbeE+I9ohPgj8h8oJZYV cU6v80uAlvJwWelSuQFgrl9AxBXVCpNilmSjDW9++G8ZuczFzdjG+C9q5boqW+tISfOF Mw1PYGFmsgt4oZZbHm/ql1hyE4mwyudvcuq16AC0kjhn/hEhB3NvsSwXn1icU8S0FTFY c6gg== 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=45WrHfAKbdYHjpbC20AMO5osfugbGDlzHaoUzU5Icuo=; b=FKQcm6wRpL4fpLVKnTIs8C1WWylrlhW+mKobrw2qp3b87kXcGsACVBIjSdVcP/5YWK eSzxq7/yU1EZ13Hekjr7bosG/uclO/9LAICQBu31S0lmdmKckoFCWmRxb8BE7w8+dOf0 HZ5sJePmBrOmBzNcQaZ4P3lfD2nJD0nCpgX3zW8/4OqxubygnCmCzk5qnwnZXBRR4zdC C2xCy5J9nGsmvj789JLwaD/61Xu4ms5QtswDzIJixWuIaNVzPC8qdKPTCuYQWXH5s2r9 maciq51PXj1Aiynay7Wg7Zd7gxhDBbobJvP+t0QX9m4c9J0N2DhYfKHTHaiAJ1gHYQvF PBIQ== X-Gm-Message-State: AOAM530lKCIg0FdB93aQa7t4WkWRQRzInHmsU8TKQPHM8Q/0Eiv3Q6yY p/NxDTg6u6l1QDYWaKqNwug= X-Google-Smtp-Source: ABdhPJx99n1MhtdolJkw34LO55uySelHItQmK6db7xOJvZRohQV+1cIV/6MP4ynkPxX2n4qvV/sq2A== X-Received: by 2002:a63:f40a:: with SMTP id g10mr3027586pgi.66.1603958047062; Thu, 29 Oct 2020 00:54:07 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id 65sm1573098pge.37.2020.10.29.00.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:54:06 -0700 (PDT) From: Coiby Xu To: Guenter Roeck , Wim Van Sebroeck Cc: Barry Song , linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/CSR SIRFPRIMA2 MACHINE SUPPORT), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/3] watchdog: sirfsoc_wdt: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:53:27 +0800 Message-Id: <20201029075327.228570-3-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029075327.228570-1-coiby.xu@gmail.com> References: <20201029075327.228570-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/watchdog/sirfsoc_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/sirfsoc_wdt.c b/drivers/watchdog/sirfsoc_wdt.c index 734cf2966ecb..dc8341cd7d44 100644 --- a/drivers/watchdog/sirfsoc_wdt.c +++ b/drivers/watchdog/sirfsoc_wdt.c @@ -170,7 +170,6 @@ static int sirfsoc_wdt_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int sirfsoc_wdt_suspend(struct device *dev) { return 0; @@ -189,7 +188,6 @@ static int sirfsoc_wdt_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(sirfsoc_wdt_pm_ops, sirfsoc_wdt_suspend, sirfsoc_wdt_resume);