linux-stable/include/linux/mmc
Lin Gui e4df56ad0b 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@mediatek.com>
Signed-off-by: Bo Ye <bo.ye@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20231218230532.82427-1-bo.ye@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-01-02 17:54:05 +01:00
..
card.h mmc: core: Add wp_grp_size sysfs node 2024-01-02 17:54:05 +01:00
core.h mmc: core: Remove packed command leftovers 2023-12-07 14:08:44 +01:00
host.h mmc: core: Allow dynamical updates of the number of requests for hsq 2023-09-27 12:13:18 +02:00
mmc.h mmc: core: Remove packed command leftovers 2023-12-07 14:08:44 +01:00
pm.h
sd.h
sdio.h
sdio_func.h
sdio_ids.h mmc: sdio: Add/rename SDIO ID of the RTL8723DS SDIO wifi cards 2023-05-25 19:09:39 +03:00
slot-gpio.h