From patchwork Tue Sep 2 02:03:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4822571 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9EDDEC0338 for ; Tue, 2 Sep 2014 02:03:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8D8520176 for ; Tue, 2 Sep 2014 02:03:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C264620170 for ; Tue, 2 Sep 2014 02:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbaIBCDZ (ORCPT ); Mon, 1 Sep 2014 22:03:25 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:38499 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbaIBCDY (ORCPT ); Mon, 1 Sep 2014 22:03:24 -0400 Received: by mail-pa0-f47.google.com with SMTP id hz1so13378257pad.20 for ; Mon, 01 Sep 2014 19:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=lI/IGyTXt5HYJAqjR/px0kvVZlSJhVYg8XMl5liAZC8=; b=lJnASPtVL1F3cmWWtw64ZDScLPi26HPq8SgCZ9cTZ2DIHkWABMguZfdyqrv5sY6iha meLxhVI6Jb54adqWJix4cHaXl0++hQZT+3Sx2VFKZTuKNmSf/kpa1vBvQIe68k6TYGmh jAwssUrzgeklGKVVyE6Iv2xhi33U7KzV71jsolUDiXL+28hCYEZwuTGnhTnb5jkDtJsK ZnnZpYAQHo067aSVA0VbAlZeH5Qiu+N5e2dZSgnfSsxdQSYnPuqEUVv4PFg/jH4S9955 3cuuG27jiPe9z3B3vBRiuD7Ho+9affvfTduuOWXEvFCP6db4sHmTCpgTR/Xe9MGC3MDM j1Qw== X-Received: by 10.70.127.207 with SMTP id ni15mr15853294pdb.129.1409623404433; Mon, 01 Sep 2014 19:03:24 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id dw2sm7068612pab.8.2014.09.01.19.03.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Sep 2014 19:03:23 -0700 (PDT) Date: Mon, 01 Sep 2014 19:03:23 -0700 (PDT) Message-ID: <87bnqykcd2.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 7/7 v2] mmc: remove MMC_CAP2_NO_MULTI_READ flags User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Ulf Hansson , Chris Ball , Simon Cc: Kuninori Morimoto , Linux-SH , linux-mmc In-Reply-To: <87lhq2kcif.wl%kuninori.morimoto.gx@gmail.com> References: <87r3zvzohj.wl%kuninori.morimoto.gx@gmail.com> <87lhq2kcif.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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: Kuninori Morimoto Now, mmc framework uses blk_size_workaround for block size HW bug workaround. MMC_CAP2_NO_MULTI_READ flag is no longer needed Signed-off-by: Kuninori Morimoto --- v1 -> v2 - no change drivers/mmc/card/block.c | 5 ----- include/linux/mmc/host.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index e946067..7b09ac3 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1398,11 +1398,6 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq, if (disable_multi) brq->data.blocks = 1; - /* Some controllers can't do multiblock reads due to hw bugs */ - if (card->host->caps2 & MMC_CAP2_NO_MULTI_READ && - rq_data_dir(req) == READ) - brq->data.blocks = 1; - /* Some controllers needs workaround */ if (card->host->ops->blk_size_workaround) brq->data.blocks = card->host->ops->blk_size_workaround( diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 95bd903..70d2cfc 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -269,7 +269,6 @@ struct mmc_host { #define MMC_CAP2_BOOTPART_NOACC (1 << 0) /* Boot partition no access */ #define MMC_CAP2_FULL_PWR_CYCLE (1 << 2) /* Can do full power cycle */ -#define MMC_CAP2_NO_MULTI_READ (1 << 3) /* Multiblock reads don't work */ #define MMC_CAP2_HS200_1_8V_SDR (1 << 5) /* can support */ #define MMC_CAP2_HS200_1_2V_SDR (1 << 6) /* can support */ #define MMC_CAP2_HS200 (MMC_CAP2_HS200_1_8V_SDR | \