u-boot/drivers
Loic Poulain 67642c1254 mmc: erase: Use TRIM erase when available
The default erase command applies on erase group unit, and
simply round down to erase group size. When the start block
is not aligned to erase group size (e.g. erasing partition)
it causes unwanted erasing of the previous blocks, part of
the same erase group (e.g. owned by other logical partition,
or by the partition table itself).

To prevent this issue, a simple solution is to use TRIM as
argument of the Erase command, which is usually supported
with eMMC > 4.0, and allow to apply erase operation to write
blocks instead of erase group

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-04-10 12:17:24 +09:00
..
adc adc: stm32mp15: add calibration support 2023-01-12 16:25:51 +01:00
ata ata: don't use SYS_SCSI_MAX_SCSI_ID for SATA 2023-04-06 19:10:08 -04:00
axi WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
bios_emulator video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
block blk: blkmap: Add linear device mapping support 2023-04-05 10:54:47 -04:00
bootcount global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button dm: button: add support for linux_code in button-gpio.c driver 2023-02-10 12:50:01 -05:00
cache driver: cache-v5l2: Fix type casting warning on RV32 2023-02-17 19:07:48 +08:00
clk clk: renesas: Add R8A779G0 V4H clock tables 2023-04-07 17:13:28 +02:00
core dm: Add a TPL symbol for simple-bus 2023-03-03 09:49:02 -05:00
cpu event: Correct dependencies on the EVENT framework 2023-01-18 12:46:13 -05:00
crypto Correct SPL uses of HW_WATCHDOG 2023-02-10 07:41:39 -05:00
ddr ddr: imx: Update the ddr init flow on imx8ulp 2023-03-29 20:15:42 +02:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
dma dma: ti: k3-udma: Fix channel hang on teardown 2023-03-22 12:51:15 -04:00
fastboot drivers: fastboot: zImage flashing is not supported for v3, v4 2023-04-04 14:50:47 -04:00
firmware firmware: ti_sci: fix typo in boot authentication message name 2023-01-18 13:11:13 -05:00
fpga fpga: zynqmppl: fix fpga loads command for unencrypted use case 2023-03-09 13:15:00 +01:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for GPT partitioned block devices 2022-10-31 14:47:32 -04:00
gpio pinctrl: renesas: Add R8A779F0 S4 PFC tables 2023-04-07 17:13:28 +02:00
hwspinlock treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
i2c i2c: rcar_i2c: Add R-Car Gen4 support 2023-04-07 17:13:27 +02:00
input input: button_kbd: make driver complementary to gpio buttons 2023-03-30 15:09:59 -04:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led led: led_pwm: typo 'iverted' on code comment 2022-11-02 13:58:17 -04:00
mailbox mailbox: zynqmp: Enable ipi mailbox driver for Versal NET 2022-09-26 14:23:29 +02:00
memory memory: atmel-ebi: add Atmel EBI (External Bus Interface) driver 2022-12-08 18:06:27 +02:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc misc: ub251xb: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR 2023-04-08 03:53:23 +02:00
mmc mmc: erase: Use TRIM erase when available 2023-04-10 12:17:24 +09:00
mtd mtd: nand: arasan: Set ofnode value 2023-03-09 13:15:00 +01:00
mux Correct SPL uses of MULTIPLEXER 2023-03-02 17:45:58 -05:00
net Merge branch 'master_sh/gen4/initial' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-04-07 15:55:50 -04:00
nvme bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
pch treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
pci pci: apple: Initialize only enabled ports 2023-03-29 13:30:29 -04:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy phy: Add .set_mode and .set_speed callbacks 2023-04-07 14:23:26 +02:00
pinctrl pinctrl: renesas: Add R8A779G0 V4H PFC tables 2023-04-07 17:13:28 +02:00
power power: pmic: Add NXP PCA9451A PMIC support 2023-03-30 00:45:39 +02:00
pwm ARM: tegra: Fix Tegra PWM parent clock 2023-02-23 12:55:36 -07:00
qe global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ram Merge branch 'next' 2023-04-03 16:45:41 -04:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc remoteproc: ipu: Add driver to bring up ipu 2022-02-08 11:00:03 -05:00
reset reset: uniphier: Add USB glue reset support 2023-02-22 19:40:11 +01:00
rng drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY 2022-09-14 15:23:03 -04:00
rtc drivers: rtc: add max313xx series rtc driver 2023-03-30 15:09:59 -04:00
scsi scsi: typo supporedt 2023-04-01 10:11:50 +02:00
serial Merge branch 'master_sh/gen4/initial' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-04-07 15:55:50 -04:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc soc: zynqmp: Fix IDcode for xck24 2023-01-24 13:55:05 +01:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi Merge branch 'master_sh/gen4/initial' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-04-07 15:55:50 -04:00
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo sysinfo: gpio: fix loop over DT "revisions" array 2023-03-30 15:09:59 -04:00
sysreset Merge branch 'next' 2023-04-03 16:45:41 -04:00
tee tee: optee: fix uuid comparisons on service discovery 2023-01-20 10:04:56 +02:00
thermal thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
timer Merge branch 'master' into next 2023-03-27 15:19:57 -04:00
tpm tpm: sandbox: Change the return code when device is already open 2023-02-28 09:44:25 +02:00
ufs global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
usb Merge https://source.denx.de/u-boot/custodians/u-boot-usb 2023-04-03 20:49:03 -04:00
video Merge branch 'master_regulator/fixes' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-04-08 14:19:08 -04:00
virtio bootstd: Correct virtio block-device handling 2023-02-06 13:04:53 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog watchdog: Clean up defaults for imx_watchdog / ulp_wdog 2023-01-20 12:27:23 -05:00
xen Correct SPL uses of XEN_SERIAL 2023-02-10 07:41:41 -05:00
Kconfig mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
Makefile Correct SPL uses of MULTIPLEXER 2023-03-02 17:45:58 -05:00