Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4567324rwb; Mon, 8 Aug 2022 03:28:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ooelFJOEEBWZFD4aogq2FUSfFpnjXKDsVoKAHtbuhXZ8K+Ej9BVw6rpOUrFM4VoX2DxAV X-Received: by 2002:a17:906:cc17:b0:731:1b37:3d09 with SMTP id ml23-20020a170906cc1700b007311b373d09mr7586411ejb.723.1659954510242; Mon, 08 Aug 2022 03:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659954510; cv=none; d=google.com; s=arc-20160816; b=WF2GGQJEqH4ULvjCIGco3ysTBaDp+wrjQVyCkpbQnCSw6GXGJva4OAnfa1v9varulT 1RFQlD15JAAnrIuTFVoCJBs/dnZIQLBYnG+TW3WAnoWh0NwJqHWq7Jdajap3Ng0hbJ3H Wkf2fLW71kMhhwgn8jMiD5fzE6pBOuxtMipjRtRQUem5EvEY2EWKypgIcfgAuGHfxHE/ 8fQa8lG22BLxrarVZ7PSAhcZVGegVW+vCLxGZV52gIwXH/SlVKBRxCv9rvtkMrynG0uH 0tJvWGxfRKJ2GBrvsr9GOGxc4+f7CPiihrTS35ltFdtRSrA3ZHMBkiAfKc7GegQ1SNBo lMkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=i5CM5vTANkWYiuVPrpKGDAGTjskrOOxTqLINLMvEnvA=; b=SEL2b8SVxQxY6pg0TQ/41xfwOVrld9PI5TDNT4WdO8ozYsyq1EzL+UKuguszx+YN0z 8aY7bRml/1jNy2IX73PT1Lr7b62g2VBfOBfM/D8X91UV/NHRpk102VodK4PB7QRT9U+0 PchfK7PpkPI9LolYYBldpQNkpbhii5ow5bNBL74hA2LDyMJn4zBf46p2M9PO2Tn81Inw Yoiya1cZFhzI1yFOxbbg1GwcpkyOVOhapn5ejIT7ZZh89owvJt0YEteiy4e8w1N8VztH g7bgtXpfxhejhGXO6/9MR/eu2BpxhJZ3yxPbO25QKd781U7fWjFSA1Ti6r973pHURIUc 0YvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdaElLrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a508d42000000b0043d281cfe2bsi5611985edt.481.2022.08.08.03.28.04; Mon, 08 Aug 2022 03:28:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdaElLrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239196AbiHHKGR (ORCPT + 99 others); Mon, 8 Aug 2022 06:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237452AbiHHKGP (ORCPT ); Mon, 8 Aug 2022 06:06:15 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB646E009 for ; Mon, 8 Aug 2022 03:06:13 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id v2so3300165lfi.6 for ; Mon, 08 Aug 2022 03:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=i5CM5vTANkWYiuVPrpKGDAGTjskrOOxTqLINLMvEnvA=; b=rdaElLrzlrMWj+6z961QZ8ntxB1VAFEOT1sqi1SAUGM7d/Rj6+ZZIxHnwJSre89KFJ V++TGVkK21IFVtZsY5XVRj3FYol8ZAEaTLf9MQsCFIpZl5K9TlsvSIfB281G40wDtP9S 4hE+JGGQbXlfhyepOGG7DS/zBZg8eTdVOJGVhqqKygx6oRydVhviVCRksPt4q+ry+nz0 nNDnjXMb+QfeeUq33jeCshr0L0+ftD8SLtCs8tM4wIeJAgcFksLp1fVi7dJu6KWgtv1j nTRA0L6r4cso7sTGT1yDu3/0sNJ/ZYYMild6C+oaSrEhM2DwdJJLahQUw/wI3iOt24aJ qNbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=i5CM5vTANkWYiuVPrpKGDAGTjskrOOxTqLINLMvEnvA=; b=uCVT8S4WvQRaJXbUfkIyeAHym2m8KiSDkDXfX0QViAPhfc+NzBEOpCjI46S5qcJ8zv JRyEMvvLPn8i20C1mDQ8CRVQ2gJPJ0GKN8s5cJo/jIhhrfAkhVD1anyCLEbXOWBeh0kC /n5BbiXZY6rFPmuSndVuvvhexxLtqs2Pjswot4L7gP1yqtMmxg0Hvco8CRVoW+ZrGpBh cgh8/8amBvf1/3cpUQKX9FpZX7D0/EVZsJGbxn/GbDkHjnWEE+rRDM3Zg4FlFihEgB1R g5VeIm1k52oBiDXyJWudCT3gdAn3T2LuUtCdiy6S6bzSHD7+uGQ6MByop57QOmXzU3/A hDLQ== X-Gm-Message-State: ACgBeo3AZym9OwDQxVovP12svTvJZvDHljbWh1WDJJrdnE+g8LHPFhBj jvKq57+uig59rL9SFP38Dk5QOd0i3mKGXTyp X-Received: by 2002:ac2:4209:0:b0:48a:7386:978f with SMTP id y9-20020ac24209000000b0048a7386978fmr6095048lfh.521.1659953172001; Mon, 08 Aug 2022 03:06:12 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id 5-20020a2e1645000000b0025d47a29734sm1303877ljw.47.2022.08.08.03.06.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Aug 2022 03:06:11 -0700 (PDT) Message-ID: Date: Mon, 8 Aug 2022 13:06:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 13/28] mfd: sec: Remove #ifdef guards for PM related functions Content-Language: en-US To: Paul Cercueil Cc: Lee Jones , linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , linux-samsung-soc@vger.kernel.org References: <20220807145247.46107-1-paul@crapouillou.net> <20220807145247.46107-14-paul@crapouillou.net> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 08/08/2022 12:28, Paul Cercueil wrote: > Hi Krzysztof, > > Le lun., août 8 2022 at 12:11:02 +0300, Krzysztof Kozlowski > a écrit : >> On 07/08/2022 17:52, Paul Cercueil wrote: >>> Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros >>> to handle the .suspend/.resume callbacks. >>> >>> These macros allow the suspend and resume functions to be >>> automatically >>> dropped by the compiler when CONFIG_SUSPEND is disabled, without >>> having >>> to use #ifdef guards. >>> >>> The advantage is then that these functions are now always compiled >>> independently of any Kconfig option, and thanks to that bugs and >>> regressions are easier to catch. >>> >>> Signed-off-by: Paul Cercueil >>> Cc: Krzysztof Kozlowski >>> Cc: Bartlomiej Zolnierkiewicz >> >> The address does not work. Please don't add it to commit log. > > That's what get-maintainers gave me, and I didn't get any error sending > at that address. I know, I was bugging Bartlomiej and other Samsung folks to fix it and we reached some kind of conclusion but it never resulted in a patch. > But I'll take your word. > >>> Cc: linux-samsung-soc@vger.kernel.org >> >> This is also not really needed in commit log... it's just a mailing >> list... >> >> I actually never understood why people want to add to commit log, so >> to >> something which will last 10 years, Cc-ing other folks, instead of >> adding such tags after '---'. Imagine 10 years from now: >> >> 1. What's the point to be cced on this patch after 10 years instead of >> using maintainers file (the one in 10 years)? Why Cc-ing me in 10 >> years? >> If I am a maintainer of this driver in that time, I will be C-ced >> based >> on maintainers file. If I am not a maintainer in 10 years, why the >> heck >> cc-ing me based on some 10-year old commit? Just because I was a >> maintainer once, like 10 years ago? >> >> 2. Or why cc-ing such people when backporting to stable? >> >> It's quite a lot of unnecessary emails which many of us won't actually >> handle later... >> >> I sincerely admit I was once also adding such Cc-tags. But that time >> my >> employer was counting lines-of-patch (including commit log)... crazy, >> right? > > Yeah, well, I can add these tags after the '---' line. Nobody ever told > me that I was doing it wrong, and I see Cc: tags quite often in commit > messages, so I thought it was common practice. It indeed is a practice, which I do not understand. :) My complaining about it was just complaining, not as a feedback required to change. > >>> --- >>> drivers/mfd/sec-core.c | 7 +++---- >>> 1 file changed, 3 insertions(+), 4 deletions(-) >>> >>> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c >>> index 1fb29c45f5cf..a467de2b2fea 100644 >>> --- a/drivers/mfd/sec-core.c >>> +++ b/drivers/mfd/sec-core.c >>> @@ -455,7 +455,6 @@ static void sec_pmic_shutdown(struct i2c_client >>> *i2c) >>> regmap_update_bits(sec_pmic->regmap_pmic, reg, mask, 0); >>> } >>> >>> -#ifdef CONFIG_PM_SLEEP >>> static int sec_pmic_suspend(struct device *dev) >> >> Did you test W=1 with !CONFIG_PM_SLEEP? No warnings? > > I tested the PR with !CONFIG_PM_SLEEP, correct. sec-core.o compiles > fine. No warnings with W=1. Ah, I see now. _DEFINE_DEV_PM_OPS uses __maybe_unused for such case. Looks fine then. With dropped Bartlomiej Cc: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof