Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29874819rwd; Wed, 5 Jul 2023 19:51:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZlEZFiXqVNF4ySrWEJC33b7g/E8NrZyfPSfwiLTjkZZDz63bV7WYM47mKPlSKzEpps2yT X-Received: by 2002:a05:6358:5907:b0:134:ec26:b47 with SMTP id g7-20020a056358590700b00134ec260b47mr764051rwf.4.1688611915070; Wed, 05 Jul 2023 19:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688611915; cv=none; d=google.com; s=arc-20160816; b=J8KCOPpbxQe1ZJs7uBVhik23x7n6rEm9uCW/OP03sP8cTakSOQv5cDyHXLrRBF7te+ Z74EoZL2CaVEZDZlGzpPecQieYURQQB9IQXDKIpcEc+BJj3YVxMfkJmQNv2pivjEBGb0 2liJYb94Nx2/91YZS4yHGkjvxuQ8f9xy7I7K8Wh3PsCjcm3xKVZYyq8eK1jMy9YkpSSa 6yJciNqr/buubxIWL3KjJ5hdJ6fFWgUFfGd81MA+JwilsrNa7an5/OQdShYW4BNHeXNS ZMoCG9kzvqqM9qq4DmS9MIFMO4xW8GOIbJz+Z+aA6tI9u+nD1BSAS3QP5gjIW1mwsQeZ p6hg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=elQYwu9aAcqDI8tFlbchGTnTGO+kcXWkLDZYGK4x+9g=; fh=AoBKDoIYWkthvv09cUrKZT1LFNrp4ZHx0OnI/Rn+iiA=; b=qfnYlLpKTzhLIb6DFgZ0//rAoGlAYr8QALmGXl6GdQcTIDRBcQn/F62w12RsdqaHJr gcQGMgsF4WNsCxdtQEE9cb9/ZA3g1ePZ9EMwdG5FZslZxdFksGeEbRXlK/lqDkgJf7dw RcuEUYqNLJBOxQKoJKti8R0AAuw1FRu+548yoeKYlumOf5NIFcme81SMOiORfRaqStsc GF7zbhSJvAewTlpPgzj2VcrtyqdY+B0xVrJR7t2+D3OnZdVSrbovV/8XnZ4diWb1WWXX JYEc7xif8LSyhJB0aFjNSj9hB/ld4eejCSM7DK3eKD3YqtPNGH0nbTYIPIrVbduIafpV rMnQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a630142000000b005347d35b573si513759pgb.580.2023.07.05.19.51.40; Wed, 05 Jul 2023 19:51:55 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233281AbjGFC1Z (ORCPT + 99 others); Wed, 5 Jul 2023 22:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232533AbjGFC1X (ORCPT ); Wed, 5 Jul 2023 22:27:23 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC5F2DA; Wed, 5 Jul 2023 19:27:22 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QxL3Z4H4pz6J7DC; Thu, 6 Jul 2023 10:25:30 +0800 (CST) Received: from localhost (10.34.206.101) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 6 Jul 2023 03:27:19 +0100 Date: Thu, 6 Jul 2023 10:27:15 +0800 From: Jonathan Cameron To: Paul Cercueil CC: Wolfram Sang , , Subject: Re: [PATCH 08/23] i2c: hix5hd2: Remove #ifdef guards for PM related functions Message-ID: <20230706102715.000038b1@Huawei.com> In-Reply-To: <20230705204314.89800-9-paul@crapouillou.net> References: <20230705204314.89800-1-paul@crapouillou.net> <20230705204314.89800-9-paul@crapouillou.net> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.34.206.101] X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 Wed, 5 Jul 2023 22:42:59 +0200 Paul Cercueil wrote: > Use the new PM macros for the suspend and resume functions to be > automatically dropped by the compiler when CONFIG_PM or > CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards. > > This has the advantage of always compiling these functions in, > independently of any Kconfig option. Thanks to that, bugs and other > regressions are subsequently easier to catch. > > Note that this driver should probably use the > DEFINE_RUNTIME_DEV_PM_OPS() macro, which would allow the devices to be > runtime-suspended on system suspend. Agreed - if anyone can test that good to do it as a follow up as it's a functional change. > > Signed-off-by: Paul Cercueil Reviewed-by: Jonathan Cameron