From patchwork Mon Sep 1 09:23:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4818071 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 80870C0338 for ; Mon, 1 Sep 2014 09:23:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5B0A20158 for ; Mon, 1 Sep 2014 09:23:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C618620155 for ; Mon, 1 Sep 2014 09:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbaIAJXK (ORCPT ); Mon, 1 Sep 2014 05:23:10 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:64451 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbaIAJXJ (ORCPT ); Mon, 1 Sep 2014 05:23:09 -0400 Received: by mail-pa0-f52.google.com with SMTP id eu11so11853431pac.39 for ; Mon, 01 Sep 2014 02:23:09 -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=Yi0D+iG3aSDBdYmX9pytsUJbfMO2VFZo9mKTVVCgaO8=; b=gd16SOvBMIWwmuXTCTypTqj6W6p+BogCCsI+uVMKv54emKa1kLXxJJjRYRYjmblZwD fuePnPraofcd+pgflae3S23hXEAX81jEYyTOYz44xKY1O4+DY+TmdguaGUNFL8uHq95P B+np/8XW/ywHIdCtlAvqlWtPffNrv4/zcQX95FkHLn7disyFdzAQX+MVnY7tmaTahU2q LfM7sFhFkH7Bmr6jlkSlUgXW96sU3kTkJuCbB0FlsmAW87pF06JaeoZSxjYDTXX4+2x4 NbmmykRHQBS10YtNLWyhK1zNi77i4bAfBWBwU0zQQE1bosxt3mkvhunXDRI/J37iiHMR DxPA== X-Received: by 10.66.222.97 with SMTP id ql1mr10057928pac.119.1409563389237; Mon, 01 Sep 2014 02:23:09 -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 b14sm502884pdk.2.2014.09.01.02.23.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Sep 2014 02:23:08 -0700 (PDT) Date: Mon, 01 Sep 2014 02:23:08 -0700 (PDT) Message-ID: <87ha0rzock.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 7/7] 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: <87r3zvzohj.wl%kuninori.morimoto.gx@gmail.com> References: <87r3zvzohj.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 --- 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 | \