public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: merez@codeaurora.org
To: Chris Ball <cjb@laptop.org>
Cc: Seungwon Jeon <tgih.jun@samsung.com>,
	linux-mmc@vger.kernel.org, 'Maya Erez' <merez@codeaurora.org>,
	'Subhash Jadavani' <subhashj@codeaurora.org>,
	"'S, Venkatraman'" <svenkatr@ti.com>,
	'Saugata Das' <saugata.das@linaro.org>,
	'Namjae Jeon' <linkinjeon@gmail.com>
Subject: Re: [PATCH v8 1/2] mmc: add packed command feature of eMMC4.5
Date: Mon, 9 Jul 2012 23:23:52 -0700 (PDT)	[thread overview]
Message-ID: <fc0bbbfabb899fd68e522b843b668041.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <87y5msqhxy.fsf@octavius.laptop.org>


On Mon, July 9, 2012 10:54 pm, Chris Ball wrote:
> Hi,
>
> On Fri, Jun 29 2012, Seungwon Jeon wrote:
>> This patch adds packed command feature of eMMC4.5.
>> The maximum number for packing read(or write) is offered
>> and exception event relevant to packed command which is
>> used for error handling is enabled. If host wants to use
>> this feature, MMC_CAP2_PACKED_CMD should be set.
>>
>> Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
>> Reviewed-by: Maya Erez <merez@codeaurora.org>
>> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
>> Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
>> ---
>>  drivers/mmc/core/mmc.c   |   25 +++++++++++++++++++++++++
>>  include/linux/mmc/card.h |    3 +++
>>  include/linux/mmc/host.h |    4 ++++
>>  include/linux/mmc/mmc.h  |   15 +++++++++++++++
>>  4 files changed, 47 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
>> index 258b203..bfb271f 100644
>> --- a/drivers/mmc/core/mmc.c
>> +++ b/drivers/mmc/core/mmc.c
>> @@ -516,6 +516,11 @@ static int mmc_read_ext_csd(struct mmc_card *card,
>> u8 *ext_csd)
>>  		} else {
>>  			card->ext_csd.data_tag_unit_size = 0;
>>  		}
>> +
>> +		card->ext_csd.max_packed_writes =
>> +			ext_csd[EXT_CSD_MAX_PACKED_WRITES];
>> +		card->ext_csd.max_packed_reads =
>> +			ext_csd[EXT_CSD_MAX_PACKED_READS];
>>  	} else {
>>  		card->ext_csd.data_sector_size = 512;
>>  	}
>> @@ -1246,6 +1251,26 @@ static int mmc_init_card(struct mmc_host *host,
>> u32 ocr,
>>  		}
>>  	}
>>
>> +	if ((host->caps2 & MMC_CAP2_PACKED_WR &&
>> +			card->ext_csd.max_packed_writes > 0) ||
>> +	    (host->caps2 & MMC_CAP2_PACKED_RD &&
>> +			card->ext_csd.max_packed_reads > 0)) {
>> +		err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
>> +				EXT_CSD_EXP_EVENTS_CTRL,
>> +				EXT_CSD_PACKED_EVENT_EN,
>> +				card->ext_csd.generic_cmd6_time);
>
> Sorry, I don't have a copy of the eMMC 4.5 spec -- is PACKED_EVENT_EN
> a one-time programmable fuse on the eMMC, like BKOPS_ENABLE was?
>
> Thanks,
>
> - Chris.
> --
> Chris Ball   <cjb@laptop.org>   <http://printf.net/>
> One Laptop Per Child

No, it's not.

-- 
Sent by consultant of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum


  reply	other threads:[~2012-07-10  6:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29  4:32 [PATCH v8 1/2] mmc: add packed command feature of eMMC4.5 Seungwon Jeon
2012-07-10  5:42 ` merez
2012-07-10  5:54 ` Chris Ball
2012-07-10  6:23   ` merez [this message]
2012-07-10  7:33     ` Chris Ball
2012-07-10 10:45       ` merez
2012-07-10  6:24   ` S, Venkatraman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc0bbbfabb899fd68e522b843b668041.squirrel@www.codeaurora.org \
    --to=merez@codeaurora.org \
    --cc=cjb@laptop.org \
    --cc=linkinjeon@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=saugata.das@linaro.org \
    --cc=subhashj@codeaurora.org \
    --cc=svenkatr@ti.com \
    --cc=tgih.jun@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox