From patchwork Wed Nov 25 11:28:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 7698101 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0C450BF90C for ; Wed, 25 Nov 2015 11:29:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C8242083D for ; Wed, 25 Nov 2015 11:29:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42C8E208AD for ; Wed, 25 Nov 2015 11:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752566AbbKYL3U (ORCPT ); Wed, 25 Nov 2015 06:29:20 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:33184 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752556AbbKYL3T (ORCPT ); Wed, 25 Nov 2015 06:29:19 -0500 Received: by wmec201 with SMTP id c201so251659144wme.0 for ; Wed, 25 Nov 2015 03:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=TksvIg8SxxYv5aKDdBs7BuNkuX3Ic95mmPdq5fApnyI=; b=YL4WzsnEhp0gV5HgriH4BKDfpXG+a3qtocoZAeyLanGNtBpDtuwjlVhxL39V4yZriQ XqsEeoHVRkr/rMJjPrY3IBkfl834Ic2Xdw67eJ1HJ0F7VHJcSylSpwcGEjjyIay/gem/ GKYXElyHS1cNaFSAM2BXDvnMwG/95ZZ/m5O2P70NAtKcsHHDCcS+Q/ZYLJbrX8czn6zW iXPo3nShivbO47SigQ/hi7C/Z9o2VkdDmsEoLGfu6wxFSpG6q2tL5QZXap3dyWpGADdw emw14xWS+TvE4ljUSF3R7JWbxPBzjPBJqEjI+m5Vj3/qt5/lJ5LrJT4KhicR6lO0cG8m MEWw== X-Received: by 10.194.243.6 with SMTP id wu6mr41548894wjc.14.1448450958634; Wed, 25 Nov 2015 03:29:18 -0800 (PST) Received: from localhost.localdomain ([212.91.95.170]) by smtp.gmail.com with ESMTPSA id d66sm3047237wma.21.2015.11.25.03.29.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Nov 2015 03:29:17 -0800 (PST) From: Carlo Caione To: ulf.hansson@linaro.org, hdegoede@redhat.com, linux-mmc@vger.kernel.org, drake@endlessm.com Cc: Carlo Caione Subject: [PATCH 1/3] mmc: Rename mmc_is_io_op to mmc_is_rw_io_op Date: Wed, 25 Nov 2015 12:28:45 +0100 Message-Id: <1448450927-13682-2-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1448450927-13682-1-git-send-email-carlo@caione.org> References: <1448450927-13682-1-git-send-email-carlo@caione.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione This function is used only to filter on sd-io-rw-* operations. Rename it to reflect this behaviour. Signed-off-by: Carlo Caione --- drivers/mmc/core/core.c | 2 +- drivers/mmc/core/sdio_ops.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 5ae89e4..2e8b24d 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -208,7 +208,7 @@ static void __mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) * For sdio rw commands we must wait for card busy otherwise some * sdio devices won't work properly. */ - if (mmc_is_io_op(mrq->cmd->opcode) && host->ops->card_busy) { + if (mmc_is_rw_io_op(mrq->cmd->opcode) && host->ops->card_busy) { int tries = 500; /* Wait aprox 500ms at maximum */ while (host->ops->card_busy(host) && --tries) diff --git a/drivers/mmc/core/sdio_ops.h b/drivers/mmc/core/sdio_ops.h index 5660c7f..e4b5ceb 100644 --- a/drivers/mmc/core/sdio_ops.h +++ b/drivers/mmc/core/sdio_ops.h @@ -21,7 +21,7 @@ int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz); int sdio_reset(struct mmc_host *host); -static inline bool mmc_is_io_op(u32 opcode) +static inline bool mmc_is_rw_io_op(u32 opcode) { return opcode == SD_IO_RW_DIRECT || opcode == SD_IO_RW_EXTENDED; }