From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Glauber Subject: Re: [PATCH 1/3] mmc: core: activate pre-erased multiple write support for sd card Date: Fri, 27 Oct 2017 14:36:32 +0200 Message-ID: <20171027123632.GA5382@hc> References: <1506483638-115756-1-git-send-email-shawn.lin@rock-chips.com> <699af9d0-c69b-e02b-54c1-7b0dd3f5369c@rock-chips.com> <20171026110316.GD12640@hc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-dm3nam03on0071.outbound.protection.outlook.com ([104.47.41.71]:13136 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752346AbdJ0Mgr (ORCPT ); Fri, 27 Oct 2017 08:36:47 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Shawn Lin Cc: Ulf Hansson , Adrian Hunter , Jaehoon Chung , Wolfram Sang , "Steven J. Hill" , "linux-mmc@vger.kernel.org" On Fri, Oct 27, 2017 at 09:46:32AM +0800, Shawn Lin wrote: > Could you kindly try this on top of this series? And do some write test > for the SD cards. > > @@ -2210,9 +2210,9 @@ static struct mmc_blk_data > *mmc_blk_alloc_req(struct mmc_card *card, > > if (mmc_host_cmd23(card->host)) { > if ((mmc_card_mmc(card) && > - card->csd.mmca_vsn >= CSD_SPEC_VER_3) || > - (mmc_card_sd(card) && > - card->scr.cmds & SD_SCR_CMD23_SUPPORT)) > + card->csd.mmca_vsn >= CSD_SPEC_VER_3)) > + //(mmc_card_sd(card) && > + //card->scr.cmds & SD_SCR_CMD23_SUPPORT)) > md->flags |= MMC_BLK_CMD23; Did that and tested read/write to SD card, works fine on the Cavium tn81xx arm64 board. Feel free to add: Tested-by: Jan Glauber --Jan