From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752063AbdASKzu (ORCPT ); Thu, 19 Jan 2017 05:55:50 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35875 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751929AbdASKzs (ORCPT ); Thu, 19 Jan 2017 05:55:48 -0500 MIME-Version: 1.0 In-Reply-To: <20170117231421.16310-10-paul@crapouillou.net> References: <20170117231421.16310-1-paul@crapouillou.net> <20170117231421.16310-10-paul@crapouillou.net> From: Ulf Hansson Date: Thu, 19 Jan 2017 11:55:41 +0100 Message-ID: Subject: Re: [PATCH 09/13] mmc: jz4740: Let the pinctrl driver configure the pins To: Paul Cercueil Cc: Linus Walleij , Rob Herring , Mark Rutland , Ralf Baechle , Boris Brezillon , Thierry Reding , Bartlomiej Zolnierkiewicz , Maarten ter Huurne , Lars-Peter Clausen , Paul Burton , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-mips@linux-mips.org, "linux-mmc@vger.kernel.org" , linux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org, Linux Fbdev development list , James Hogan Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > > -#ifdef CONFIG_PM_SLEEP > - > -static int jz4740_mmc_suspend(struct device *dev) > -{ > - struct jz4740_mmc_host *host = dev_get_drvdata(dev); > - > - jz_gpio_bulk_suspend(jz4740_mmc_pins, jz4740_mmc_num_pins(host)); > - Shouldn't this be replaced with a call to: pinctrl_pm_select_sleep_state(); > - return 0; > -} > - > -static int jz4740_mmc_resume(struct device *dev) > -{ > - struct jz4740_mmc_host *host = dev_get_drvdata(dev); > - > - jz_gpio_bulk_resume(jz4740_mmc_pins, jz4740_mmc_num_pins(host)); Shouldn't this be replaced with a call to: pinctrl_pm_select_default_state(); [...] Kind regards Uffe