[PATCH v2 3/3] test: dm: mmc: Check block erasing boundaries
Loic Poulain
loic.poulain at linaro.org
Wed Feb 8 09:13:45 CET 2023
On Fri, 27 Jan 2023 at 15:30, Simon Glass <sjg at chromium.org> wrote:
>
> Hi Loic,
>
> On Thu, 26 Jan 2023 at 02:24, Loic Poulain <loic.poulain at linaro.org> wrote:
> >
> > Verify that erasing blocks does not impact adjacent ones.
> > - Write four blocks [0 1 2 3]
> > - Erase two blocks [ 1 2 ]
> > - Verify [0 1 2 3 ]
> >
> > Signed-off-by: Loic Poulain <loic.poulain at linaro.org>
> > ---
> > v2: Add this change to the series
> >
> > test/dm/mmc.c | 14 +++++++-------
> > 1 file changed, 7 insertions(+), 7 deletions(-)
>
> This looks good, but can you add the trim command to
> sandbox_mmc_send_cmd()? Then you can test that as well.
The TRIM option is not exposed, it is internally managed inside mmc
depending on the need for it. So from a testing perspective, I can
only test that the mmc erase is doing what we ask correctly.
Regards,
Loic
More information about the U-Boot
mailing list