On Fri, 27 Jan 2023 at 15:30, Simon Glass <s...@chromium.org> wrote: > > Hi Loic, > > On Thu, 26 Jan 2023 at 02:24, Loic Poulain <loic.poul...@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.poul...@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