Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3903886rwb; Sun, 7 Aug 2022 09:50:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7CwXX8JH+2G3EUI7LO6CF/mlEdbfCKbfQ1PUwPK2tKMCRJ0qLFcOowoijiy8nVB46vNBpz X-Received: by 2002:a17:907:3f90:b0:72b:859e:8fdc with SMTP id hr16-20020a1709073f9000b0072b859e8fdcmr11372723ejc.735.1659891018026; Sun, 07 Aug 2022 09:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659891018; cv=none; d=google.com; s=arc-20160816; b=egiM+mqDMgOO+/Z0XtgN8Gpy3JJ4BZcWEHT1zs/mD1pX6bNjtsnDVh5fPC52bghu1K Dt1AHRFT8fC5mFgSBuCFaq1411MUHO7tylu3S6OQ0Tpj49ZaCU/661oSjiTZG7MCuxoz 961rHVbBDXgyFCyYRhyGPlKdIRkr7m1hjI5yoPl2oLbJDDqVqmal8ghN5z5G5Dss0hnf 779bxSjg+MsVk6e0JztgDLElUIx+1GFwdoKFAyBKBPWsIxoUuLdwvdLOdxIn1XiNeyUY PiQzAwkkYIB4+8pgNPWcdMcEpnlq7m+uP0nVafHAKK+RIiUbs3N1lXoASF4eZPpJg9y6 jDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=AQiLAvgzEEfP3rMxIC8AKUTNIorsHnyk/WzhGT3MRpo=; b=Nmqt0YWvsYGV8AoD4BqZrxsLEe7eaUfyyuLkEHRzMNKm7kA46nNbrEPehFtZlYaLVt IPJKTA3/3TcvavjOIZOxxNT7PIhNh7YoyvqWbD1dJ2BjqDDgB1vLgq2hfZeX4F8rwVK0 bZug94M3Qxa6LVheLjYXZ2twizbzZRKj7A63TZUuq82V9qoMFEbfFbvizYpfQKhwBiA5 2Xx6HWbkXcUhTaJr0QKwvrCl8ht2h5Mmy1R96jJfkPXV+OEXziyC9MzjFP4JkBbXAsUm APvaJjniHxYYefae/wnk6hqfk0QxHobTdHGVS3p8iIBfw9jksiqN7ZuEYMxmFCzwtDky upig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=ztXiNTMB; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs34-20020a1709073ea200b00730a42c33f5si10836324ejc.768.2022.08.07.09.49.51; Sun, 07 Aug 2022 09:50:18 -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=@crapouillou.net header.s=mail header.b=ztXiNTMB; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234227AbiHGP6X (ORCPT + 99 others); Sun, 7 Aug 2022 11:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiHGP6W (ORCPT ); Sun, 7 Aug 2022 11:58:22 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AF064F7 for ; Sun, 7 Aug 2022 08:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1659887900; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AQiLAvgzEEfP3rMxIC8AKUTNIorsHnyk/WzhGT3MRpo=; b=ztXiNTMBdlys5aUEUINc9rdw+mnZrG1gJA0BJR0eAvf5hqeTshalUFF3HqSWxJpu0xtLPG RLiJuGBx5Aie98VHQCi3o/DhBUaQj00YPGvdV7Y5HAT2qLX18dfJVywJTnkvviRLEHqLWJ UUVCOo6DV3s2yFO0UCWuc+WSDKdx0es= Date: Sun, 07 Aug 2022 17:58:03 +0200 From: Paul Cercueil Subject: Re: [PATCH 11/28] mfd: intel_soc_pmic: Remove #ifdef guards for PM related functions To: Andy Shevchenko Cc: Lee Jones , Linux Kernel Mailing List , Andy Shevchenko Message-Id: In-Reply-To: References: <20220807145247.46107-1-paul@crapouillou.net> <20220807145247.46107-12-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Le dim., ao=FBt 7 2022 at 17:50:32 +0200, Andy Shevchenko=20 a =E9crit : > On Sun, Aug 7, 2022 at 4:53 PM Paul Cercueil =20 > wrote: >>=20 >> Use the new DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros >> to handle the .suspend/.resume callbacks. >>=20 >> These macros allow the suspend and resume functions to be=20 >> automatically >> dropped by the compiler when CONFIG_SUSPEND is disabled, without=20 >> having >> to use #ifdef guards. >>=20 >> The advantage is then that these functions are now always compiled >=20 > is that I think that what I wrote is proper English. >=20 >> independently of any Kconfig option, and thanks to that bugs and >> regressions are easier to catch. >=20 > ... >=20 >> drivers/mfd/intel_soc_pmic_bxtwc.c | 7 +++---- >> drivers/mfd/intel_soc_pmic_core.c | 8 +++----- >=20 > 1. These are two different drivers, the patch needs to be split. Ok. > 2. The Broxton Whiskey Cove should have a similar change. Which base > have you used for your patch? Please, rebase on top of for-mfd-next. That's based on v5.19. > 3. The PMIC core actually is Crystal Cove driver and I have a pending > series for that and I guess you know about it. Have you seen what have > been done there? No, I didn't know. I guess Lee can skip my patch 11/28 then. Cheers, -Paul