]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: intel-dg: register with mtd
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 17 Jun 2025 14:51:54 +0000 (17:51 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 23 Jun 2025 17:14:49 +0000 (13:14 -0400)
commit044c8be05a39d79821251d8e49fe90531e6c7108
treea36a9515cd230cf2f4bb7cf53c4ae27b29988208
parent9fe53abfac0b158e2db7c516264bf11b64489384
mtd: intel-dg: register with mtd

Register the on-die nvm device with the mtd subsystem.
Refcount nvm object on _get and _put mtd callbacks.
For erase operation address and size should be 4K aligned.
For write operation address and size has to be 4bytes aligned.

CC: Rodrigo Vivi <rodrigo.vivi@intel.com>
CC: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Co-developed-by: Tomas Winkler <tomasw@gmail.com>
Signed-off-by: Tomas Winkler <tomasw@gmail.com>
Co-developed-by: Vitaly Lubart <lubvital@gmail.com>
Signed-off-by: Vitaly Lubart <lubvital@gmail.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://lore.kernel.org/r/20250617145159.3803852-5-alexander.usyskin@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/mtd/devices/mtd_intel_dg.c