Hi reviewers, I suggest to backport a commit to Linux kernel-5.10 and 6.6 stable tree. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/mmc/core/mmc.c?h=v6.8&id=e4df56ad0bf3506c5189abb9be83f3bea05a4c4f author Lin Gui lin.gui@xxxxxxxxxxxx 2023-12-19 07:05:32 +0800 committer Ulf Hansson ulf.hansson@xxxxxxxxxx 2024-01-02 17:54:05 +0100 commit e4df56ad0bf3506c5189abb9be83f3bea05a4c4f (patch) tree a5db3a85f44b29dd773c5c65c3340d50b74b6687 /drivers/mmc/core/mmc.c parent b062136d0d6f46d7ad5c88219cbd75f90cb18e81 (diff) download linux-e4df56ad0bf3506c5189abb9be83f3bea05a4c4f.tar.gz mmc: core: Add wp_grp_size sysfs node The eMMC card can be set into write-protected mode to prevent data from being accidentally modified or deleted. Wp_grp_size (Write Protect Group Size) refers to an attribute of the eMMC card, used to manage write protection and is the CSD register [36:32] of the eMMC device. Wp_grp_size (Write Protect Group Size) indicates how many eMMC blocks are contained in each write protection group on the eMMC card. To allow userspace easy access of the CSD register bits, let's add sysfs node "wp_grp_size". Signed-off-by: Lin Gui lin.gui@xxxxxxxxxxxx Signed-off-by: Bo Ye bo.ye@xxxxxxxxxxxx Reviewed-by: AngeloGioacchino Del Regno angelogioacchino.delregno@xxxxxxxxxxxxx Link: https://lore.kernel.org/r/20231218230532.82427-1-bo.ye@xxxxxxxxxxxx Signed-off-by: Ulf Hansson ulf.hansson@xxxxxxxxxx ------------------------------------ Best Regards ! Guilin ===================================== MediaTek(ChengDu)Inc. Email: mailto:lin.gui@xxxxxxxxxxxx tel:+86-28-85939000-67009 Fax:+86-28-85929875 ==============================================