From: Kuninori Morimoto Subject: Re: [PATCH 01/10 v2 resend] mmc: block: add block number limitation flag for multiple block read Date: Tue, 26 Aug 2014 18:37:46 -0700 (PDT) Message-ID: <87bnr6pva0.wl%kuninori.morimoto.gx@gmail.com> References: <87simtenpi.wl%kuninori.morimoto.gx@renesas.com> <87pphxe2q0.wl%kuninori.morimoto.gx@renesas.com> <53AD638C.5060907@renesas.com> <87egxehsec.wl%kuninori.morimoto.gx@gmail.com> <8761hk7wgy.wl%kuninori.morimoto.gx@gmail.com> <874mx47wf9.wl%kuninori.morimoto.gx@gmail.com> <87fvgltmnn.wl%kuninori.morimoto.gx@gmail.com> <87tx50sxe9.wl%kuninori.morimoto.gx@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <87tx50sxe9.wl%kuninori.morimoto.gx@gmail.com> Sender: linux-sh-owner@vger.kernel.org To: Kuninori Morimoto Cc: Ulf Hansson , Simon , Chris Ball , Ian Molton , Morimoto , Magnus , Linux-SH , linux-mmc List-Id: linux-mmc@vger.kernel.org Hi Ulf again What do you think this idea ? We can move MMC_CAP2_NO_MULTI_READ from host.h to driver side > /* > * this can replace MMC_CAP2_NO_MULTI_READ ? > */ > void no_multi_read_fixup(struct mmc_blk_request *brq, > struct request *req) > { > if (rq_data_dir(req) == READ) > brq->data.blocks = 1; > } > > /* > * we can use this instead of MMC_CAP2_2BLKS_LIMIT ? > */ > void two_block_limit_read_fixup(struct mmc_blk_request *brq, > struct request *req) > { > if ((rq_data_dir(req) == READ) && > (brq->data.blocks == 2)) > brq->data.blocks = 1; > } > > static void mmc_blk_rw_rq_prep(xxxx) > { > ... > if (brq->data.blocks > 1) { > ... > > if (card->host->host_data_fixup) > card->host->host_data_fixup(brq, req) > } > ... > } Best regards --- Kuninori Morimoto