[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] sd: mmc: Fix SET_BLOCK_COUNT command argument
From: |
Cédric Le Goater |
Subject: |
Re: [PATCH] sd: mmc: Fix SET_BLOCK_COUNT command argument |
Date: |
Wed, 23 Jun 2021 10:57:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 6/23/21 10:52 AM, Philippe Mathieu-Daudé 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:
>
> enum SDPhySpecificationVersion {
> SD_PHY_SPECv1_10_VERS = 1,
> SD_PHY_SPECv2_00_VERS = 2,
> SD_PHY_SPECv3_01_VERS = 3,
> };
>
Yes. block count was increased to 32-bit in v4 if I am correct.
Any how, it is a bit more complex than the patch I sent which is fixing
an issue I saw with eMMC.
Thanks,
C.