From patchwork Thu Nov 3 14:15:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9411035 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 55C15601C2 for ; Thu, 3 Nov 2016 14:58:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47CAC2AC35 for ; Thu, 3 Nov 2016 14:58:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BCF22AC36; Thu, 3 Nov 2016 14:58:40 +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 DAB402AC39 for ; Thu, 3 Nov 2016 14:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756406AbcKCO6j (ORCPT ); Thu, 3 Nov 2016 10:58:39 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:49638 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757259AbcKCO6g (ORCPT ); Thu, 3 Nov 2016 10:58:36 -0400 Received: from penelope.kanocho.kobe.vergenet.net (52D9BC73.cm-11-1c.dynamic.ziggo.nl [82.217.188.115]) by kirsty.vergenet.net (Postfix) with ESMTPSA id 8093A25BEB5; Fri, 4 Nov 2016 01:58:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1478185110; bh=05vWoFcGz9GJ4A7CknG82GJObhF1HI2JA4H2WyGZU4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r8FR8Ilv8vpXt87MK1w17T4NZJmhlD9QND3Bxh/cqoBkjHWro7zmFkdQLexJLkI2J A7apX2Fmz2fVNB08Vde1x9PNBqwllTqb+4MppkVnbbKWdIs3bgyD5LUQxfB9gW0EMr S3OFrvrbrnmIkT7l4NLmF62DWOSIL9i5q2EunYzs= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 03C4660757; Thu, 3 Nov 2016 15:16:12 +0100 (CET) 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 v8 1/6] mmc: core: Add helper to see if a host can be retuned Date: Thu, 3 Nov 2016 15:15:59 +0100 Message-Id: <1478182564-18762-2-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1478182564-18762-1-git-send-email-horms+renesas@verge.net.au> References: <1478182564-18762-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 0b2439441cc8..28e2f53c7c4d 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -546,6 +546,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);