From patchwork Tue Nov 29 10:09:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 9451397 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 198BE60235 for ; Tue, 29 Nov 2016 10:15:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A89928111 for ; Tue, 29 Nov 2016 10:15:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F38B528138; Tue, 29 Nov 2016 10:15:29 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 8950428111 for ; Tue, 29 Nov 2016 10:15:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754592AbcK2KP2 (ORCPT ); Tue, 29 Nov 2016 05:15:28 -0500 Received: from mga03.intel.com ([134.134.136.65]:37725 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756239AbcK2KP1 (ORCPT ); Tue, 29 Nov 2016 05:15:27 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 29 Nov 2016 02:15:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,568,1473145200"; d="scan'208";a="196888289" Received: from ahunter-desktop.fi.intel.com ([10.237.72.168]) by fmsmga004.fm.intel.com with ESMTP; 29 Nov 2016 02:15:23 -0800 From: Adrian Hunter To: Ulf Hansson Cc: linux-mmc , Alex Lemberg , Mateusz Nowak , Yuliy Izrailov , Jaehoon Chung , Dong Aisheng , Das Asutosh , Zhangfei Gao , Dorfman Konstantin , David Griego , Sahitya Tummala , Harjani Ritesh , Venu Byravarasu , Linus Walleij Subject: [PATCH V8 14/20] mmc: core: Export mmc_retune_hold() and mmc_retune_release() Date: Tue, 29 Nov 2016 12:09:21 +0200 Message-Id: <1480414167-15577-15-git-send-email-adrian.hunter@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480414167-15577-1-git-send-email-adrian.hunter@intel.com> References: <1480414167-15577-1-git-send-email-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki 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 Re-tuning can only be done when the Command Queue is empty, when means holding and releasing re-tuning from the block driver, so export those functions. Signed-off-by: Adrian Hunter Reviewed-by: Harjani Ritesh --- drivers/mmc/core/host.c | 2 ++ drivers/mmc/core/host.h | 2 -- include/linux/mmc/core.h | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 98f25ffb4258..878405e28bdb 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -112,6 +112,7 @@ void mmc_retune_hold(struct mmc_host *host) host->retune_now = 1; host->hold_retune += 1; } +EXPORT_SYMBOL(mmc_retune_hold); void mmc_retune_release(struct mmc_host *host) { @@ -120,6 +121,7 @@ void mmc_retune_release(struct mmc_host *host) else WARN_ON(1); } +EXPORT_SYMBOL(mmc_retune_release); int mmc_retune(struct mmc_host *host) { diff --git a/drivers/mmc/core/host.h b/drivers/mmc/core/host.h index 992bf5397633..0787b3002481 100644 --- a/drivers/mmc/core/host.h +++ b/drivers/mmc/core/host.h @@ -17,8 +17,6 @@ void mmc_retune_enable(struct mmc_host *host); void mmc_retune_disable(struct mmc_host *host); -void mmc_retune_hold(struct mmc_host *host); -void mmc_retune_release(struct mmc_host *host); int mmc_retune(struct mmc_host *host); #endif diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index d045b06fc7ea..d8f46e1ae7f2 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -220,6 +220,9 @@ extern int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount, extern int mmc_detect_card_removed(struct mmc_host *host); +extern void mmc_retune_hold(struct mmc_host *host); +extern void mmc_retune_release(struct mmc_host *host); + /** * mmc_claim_host - exclusively claim a host * @host: mmc host to claim