This patch introduces the erase entry point for the NVME storage. It uses the nvme sanitize command 2 for a low level block erase of the entire device as start and end blocks cannot be specified. Note that in the current state, the user should first remove existing partitions with the command 'parted rmpart' as they will stay dangling in barebox device nodes and mount points. Renaud Barbier (1): nvme: add erase operation through sanitize command drivers/nvme/host/core.c | 82 ++++++++++++++++++++++++++++++++++++++++ drivers/nvme/host/pci.c | 2 + include/nvme/types.h | 38 +++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 include/nvme/types.h -- 2.34.1