From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C208C001E0 for ; Fri, 28 Jul 2023 12:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235745AbjG1MWI (ORCPT ); Fri, 28 Jul 2023 08:22:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235938AbjG1MVy (ORCPT ); Fri, 28 Jul 2023 08:21:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C7761BE; Fri, 28 Jul 2023 05:19:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C41F26211E; Fri, 28 Jul 2023 12:19:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B22DDC433C8; Fri, 28 Jul 2023 12:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690546759; bh=Hgw9mIKlRS8BNAKsfxrpDUm2kZAFQ9KwK/pp9SAZwgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hmG4YIzOSI8MdzxvPdLiq2I0r/gI2W2DVVZqVSzudaGISQzvKlU/CsefUFXJrp56l 57CN2vAxlGYT1OsNjiyN0hYdhTG4B/hgAOlJ+frVaQ8Q3xK6mLYNRfRWZenKEY2tPo xDdToW/6zBc1nMdiZh1+bbjUnvzGwXASUQKaSq78C8YJZtQoImnqlDhBnW13hTnFoK KMXLsaRgKWq+tgujvBI63+jWhKlptqNy1y+RTVaqIkyBVPxcNMuqlVBkb9wyvwp0Pi RMjZmd6k7B7rqvVLrSvb/rE4ytOajwu48yu41FYFNeVnkNs4zFMOMOKOlKWgk1Uk9c T5nPjhtIc31Mw== Date: Fri, 28 Jul 2023 14:19:15 +0200 From: Andi Shyti To: Paul Cercueil Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/22] i2c: kempld: Convert to use regular device PM Message-ID: <20230728121915.vv2sszyiz5vwuhqg@intel.intel> References: <20230722115046.27323-1-paul@crapouillou.net> <20230722115046.27323-11-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230722115046.27323-11-paul@crapouillou.net> Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Hi Paul, On Sat, Jul 22, 2023 at 01:50:34PM +0200, Paul Cercueil wrote: > Provide PM callbacks through platform_driver.driver.pm instead of > platform_driver.{suspend,resume} as any good-behaved driver should do. > > 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. > > Signed-off-by: Paul Cercueil Acked-by: Andi Shyti Thanks, Andi