[PATCH v2] mmc: add wp_grp_size node

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Dec 19 02:55:30 PST 2023


Il 19/12/23 00:05, Bo Ye ha scritto:
> From: "lin.gui" <lin.gui at mediatek.com>
> 
> Detail:
> Add node "wp_grp_size", corresponding to WP_GRP_SIZE
> (write protect group size) of eMMC's CSD register.
> 
> Scenario:
> 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.
> 
> Final rendered file:
> "/sys/class/mmc_host/mmc0/mmc0:0001/wp_grp_size"
> 
> Signed-off-by: Lin Gui <lin.gui at mediatek.com>
> Signed-off-by: Bo Ye <bo.ye at mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the linux-arm-kernel mailing list