[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] sd: mmc: Fix SET_BLOCK_COUNT command argument
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] sd: mmc: Fix SET_BLOCK_COUNT command argument |
Date: |
Wed, 23 Jun 2021 13:01:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 6/23/21 11:11 AM, Bin Meng wrote:
> On Wed, Jun 23, 2021 at 4:52 PM Philippe Mathieu-Daudé <f4bug@amsat.org>
> wrote:
>>
>> On 6/23/21 10:39 AM, Bin Meng wrote:
>>> On Wed, Jun 23, 2021 at 4:30 PM Cédric Le Goater <clg@kaod.org> wrote:
>>>>
>>>> The number of blocks is defined in the lower bits [15:0]
>>>
>>> I checked the physical spec v8.00 and it says bits [31:0] for CMD23
>>> argument.
>>
>> Watch out, we only support 1-3:
>>
>
> Yes
>
>> enum SDPhySpecificationVersion {
>> SD_PHY_SPECv1_10_VERS = 1,
>> SD_PHY_SPECv2_00_VERS = 2,
>> SD_PHY_SPECv3_01_VERS = 3,
>> };
>>
>
> However the physical sepc v8.00 should document any difference between
> ver 3.0 and ver 8.0 if there are indeed any, but for CMD23 it does
> not. So it means it's 32-bit since day 1.
>
> To double check, I just downloaded the spec 3.01 and confirmed it's
> still 32-bit.
OK, so patch is incorrect then.
Thanks,
Phil.