Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp498361pxx; Thu, 29 Oct 2020 07:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMRFfEVv7USgq26W6tiwH6Bz/VTOaU094MqdzBu0EQVoQluqV46t46a+BqJgrxEeCzNq0N X-Received: by 2002:a17:906:745:: with SMTP id z5mr4615049ejb.408.1603982161281; Thu, 29 Oct 2020 07:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603982161; cv=none; d=google.com; s=arc-20160816; b=pfnvAnNgoZ8Ghr2ghSeSI1R/nJb+PSoJLztR8rC9TMXNM/vhxwgkszN+nDDg8cnGDp LcJzXxNcLDtmjDoK+PX3AXvA6nl6+mzM6kp/7pG8E3XK0Seg0LdyZyLB5c9SnvZsZ6Wr Og8TlWCbi9gRCcsBejnR1BqkaRydqtTaa9uCPhCfINdmEkHy+TOZ3sIlKLZ3rJLdW8cK pok9Y2mmTGc5jtjFc8Jj67uQnqHU3l9JaTiuflpnTldiSErk14rx3bdyo/Z7S+D33HU3 vO0WoEdiaKhImD/HgE/9maI4DJ9NNJaiScTwjvfGWh+r7GtpZG3X+wRP8oVbyKY/90bB VgoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=zRncE1X7mePBiM0SYCp+vTaN/KpzBsiKiLmub/YURAE=; b=Qo4DEEw6zDZUDAmwxQiEYJ/RKrLz7Hdorq6x9dqXe9oMOvLLUthXuqtOuaQgWDGmAK /t+A8Fb72F9WzyCF0zKuUjQ6AaChBm0C3BBEVfdu+PnNVqHDId6QemkW5v3s30IX8pO0 AsPrhDpG4TNgfWkoXzEYTqs8ZYUrz7TZRd3h5dFRzEa/g3AxP7ULXSkvkf4J/cOwP0Yk tr6jUTYvNuCglHdWZKb3N6Uw9AoRPI9Dob8W2VlcJv2fO4sDXQA7fuprG6kfCjPp9sdO zr6Xo0k1oZf5Q4tgJYKMGuBj2aOmwXLQWKvyvVheqpkR6gFu6GYu898ZRJRcq0uzQmT/ Lquw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SEf94aX0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn28si1377857ejb.585.2020.10.29.07.35.38; Thu, 29 Oct 2020 07:36:01 -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=@gmail.com header.s=20161025 header.b=SEf94aX0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgJ2Obc (ORCPT + 99 others); Thu, 29 Oct 2020 10:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbgJ2Obc (ORCPT ); Thu, 29 Oct 2020 10:31:32 -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 000DAC0613CF; Thu, 29 Oct 2020 07:31:31 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b3so2497136pfo.2; Thu, 29 Oct 2020 07:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zRncE1X7mePBiM0SYCp+vTaN/KpzBsiKiLmub/YURAE=; b=SEf94aX0Mj5GFY5YDSKNwqE/utvYYlY/Lb7HeosZov2jgxv2gQHB3CTbmBjqvDh592 TfKaw21L/d/A4cNZgXQjvtwNmYmoklQKHcLt8b1xhhUrKV+oSUInq9YfpNCgm7ltbHRz c87BygMqgwe6068Xf37nzDlWqPRApME11A4xrSLGoyHZOpCmPkOPM5VNtNOKJILCs7m+ fWV543LE9gjRQ1eVzJrGtvwkNk2RvTvL7vjHQasLFaRo7MfXvrfMsoPSiXuchWzD3i7z XjSfFWTwgj57agC4nOh+kf2sSKtXFzqBAxJ78VyXs5lMt3sZnPjDyyZX4pVqF3cQBCiX gqqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zRncE1X7mePBiM0SYCp+vTaN/KpzBsiKiLmub/YURAE=; b=typwhz8hXkYe4eU+BBp+ZsS6R0/RHwsOSeW4Rkhx+gciq07FF7IZsz0TqfmASUX+tx u9gC8UrCGiakkvhc6PGvRt/AEG2vdWL0R60HKDk3Gs/NyBqV5T/2quR3+pCCt3l8hQSm EdXOZvm2ywm8OGQE/C46CNIrQ8nvK03NvBEgiZ1np3Chnf6K7Tz9PRcTPA3vuMUnd0fG PeheWe3H7yAuXBhFQnxfpyirN2ur8fEPDoswGs4LzNrW4j2j9GQQqI0NxGeOLG+YWIDr XApfmlApYIdSJbSVv9FS5c1lKahzNrsrttfw/Jc9RxSuEt0AQACZYCvTXodBOLXZI0I4 u0Ag== X-Gm-Message-State: AOAM5338scLrJW8daoOcb5hQA9voWxasrw5vsS6ocaj21pMADGoIsRzI dmyvs9L5VTvJpMIz2h9vND7AN2wMwjVCt0id X-Received: by 2002:a17:90a:d082:: with SMTP id k2mr39078pju.195.1603981891636; Thu, 29 Oct 2020 07:31:31 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id hj11sm13685pjb.55.2020.10.29.07.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 07:31:31 -0700 (PDT) From: Coiby Xu X-Google-Original-From: Coiby Xu Date: Thu, 29 Oct 2020 22:30:13 +0800 To: Guenter Roeck Cc: Wim Van Sebroeck , Barry Song , "open list:WATCHDOG DEVICE DRIVERS" , "moderated list:ARM/CSR SIRFPRIMA2 MACHINE SUPPORT" , open list Subject: Re: [PATCH 3/3] watchdog: sirfsoc_wdt: remove unnecessary CONFIG_PM_SLEEP Message-ID: <20201029143013.4y4am5z7tw65b43y@Rk> References: <20201029075327.228570-1-coiby.xu@gmail.com> <20201029075327.228570-3-coiby.xu@gmail.com> <41e73435-375f-1865-69ce-462395476258@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <41e73435-375f-1865-69ce-462395476258@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 06:05:21AM -0700, Guenter Roeck wrote: >On 10/29/20 12:53 AM, Coiby Xu wrote: >> 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) > >And again: __maybe_unused > >I would suggest to test compile the code with CONFIG_PM_SLEEP disabled. I will test it before send v2! Thank you for the feedback! > >> { >> 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); >> > -- Best regards, Coiby