Re: [PATCH] tmio_mmc: Revise a limit of the data size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew

Andrew Morton wrote:
> On Wed, 07 Jul 2010 11:01:20 +0900
> Yusuke Goda <yusuke.goda.sx@xxxxxxxxxxx> wrote:
> 
>> Signed-off-by: Yusuke Goda <yusuke.goda.sx@xxxxxxxxxxx>
>> ---
>>  drivers/mmc/host/tmio_mmc.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
>> index ee7d0a5..cac1c97 100644
>> --- a/drivers/mmc/host/tmio_mmc.c
>> +++ b/drivers/mmc/host/tmio_mmc.c
>> @@ -661,7 +661,7 @@ static int tmio_mmc_start_data(struct tmio_mmc_host *host,
>>  		 data->blksz, data->blocks);
>>
>>  	/* Hardware cannot perform 1 and 2 byte requests in 4 bit mode */
>> -	if (data->blksz < 4 && host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) {
>> +	if (data->blksz < 2 && host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) {
>>  		pr_err("%s: %d byte block unsupported in 4 bit mode\n",
>>  		       mmc_hostname(host->mmc), data->blksz);
>>  		return -EINVAL;
> 
> Again, please provide a suitable description for this change.
I think the data size is not limited by MMC_BUS_WIDTH_x.
I confirmed that data transmission of 2Byte was performed without a problem.

Thanks,
Goda

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux