From patchwork Tue Sep 13 10:56:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9328827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BAD6D6048F for ; Tue, 13 Sep 2016 10:56:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFAEE2935D for ; Tue, 13 Sep 2016 10:56:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3F5D2935F; Tue, 13 Sep 2016 10:56:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59BE72935D for ; Tue, 13 Sep 2016 10:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755371AbcIMK4g (ORCPT ); Tue, 13 Sep 2016 06:56:36 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:56795 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbcIMK4d (ORCPT ); Tue, 13 Sep 2016 06:56:33 -0400 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id DEBFD25B820; Tue, 13 Sep 2016 20:56:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1473764186; bh=UoCj5ocYPI31WmOXY6cfFSkyCOqMbfhs38Fda1LBZq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U3W642M/HpnNng8iXxc2wsX12KIIXHga5W9A9SDoU3jWfXa+T5MBec0StTT+I3Fju kdT2vIOF8GzKnXymIunwbCfpo1/5RGY6xIAGQgsnNczp1OP1C7n38jS4eBhR8eZYuF yz37jr4t/CnaeO+wb3r1KPDDsToyRd0oraqEKGfY= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 8553160A18; Tue, 13 Sep 2016 12:56:21 +0200 (CEST) From: Simon Horman To: Wolfram Sang , Ulf Hansson Cc: Magnus Damm , linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Simon Horman Subject: [PATCH v7 1/6] mmc: core: Add helper to see if a host can be retuned Date: Tue, 13 Sep 2016 12:56:10 +0200 Message-Id: <1473764175-24580-2-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1473764175-24580-1-git-send-email-horms+renesas@verge.net.au> References: <1473764175-24580-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is in preparation for restoring saved tuning parameters when resuming the TMIO driver. Signed-off-by: Simon Horman --- v6 * New patch --- include/linux/mmc/host.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index aa4bfbf129e4..4a9b4db8f22b 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -541,6 +541,11 @@ static inline void mmc_retune_recheck(struct mmc_host *host) host->retune_now = 1; } +static inline bool mmc_can_retune(struct mmc_host *host) +{ + return host->can_retune == 1; +} + void mmc_retune_pause(struct mmc_host *host); void mmc_retune_unpause(struct mmc_host *host);