From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753259AbdHOGxI (ORCPT ); Tue, 15 Aug 2017 02:53:08 -0400 Received: from mga07.intel.com ([134.134.136.100]:15889 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752494AbdHOGxG (ORCPT ); Tue, 15 Aug 2017 02:53:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,376,1498546800"; d="scan'208";a="890026795" Subject: Re: [PATCH v2 4/4] mmc: sdhci-cadence: add suspend / resume support To: Masahiro Yamada Cc: linux-mmc , Piotr Sroka , Linux Kernel Mailing List , Ulf Hansson References: <1501724656-12435-1-git-send-email-yamada.masahiro@socionext.com> <1501724656-12435-5-git-send-email-yamada.masahiro@socionext.com> <91131416-055e-71f8-d0f9-7784776e454d@intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Tue, 15 Aug 2017 09:46:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/08/17 18:28, Masahiro Yamada wrote: > Hi Adrian, > > > 2017-08-14 19:53 GMT+09:00 Adrian Hunter : > >>> @@ -353,6 +390,28 @@ static int sdhci_cdns_probe(struct platform_device *pdev) >>> return ret; >>> } >>> >>> +static int __maybe_unused sdhci_cdns_resume(struct device *dev) >> >> We don't use __maybe_unused in this case, we use #ifdef CONFIG_PM_SLEEP > > > Could you tell me the reason > why #ifdef CONFIG_PM_SLEEP is preferable? > > I see lots of __maybe_unused for suspend/resume hooks in drivers. Not in sdhci drivers. It is easier for the maintainer to have consistency across the code they maintain.