回复: backport a patch for Linux kernel-5.10 and 6.6 stable tree

Lin Gui (桂林)
2024-03-18T07:46:24Z

Dear mailto:sashal@kernel.org,

This patch is not a bug fix.
This patch is to add the sysfs node of mmc: write protection related,
the detailed description is as follows:

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".

------------------------------------
Best Regards ！
Guilin

发件人: Sasha Levin <sashal@kernel.org>
发送时间: 2024年3月16日 17:22
收件人: Lin Gui (桂林) <Lin.Gui@mediatek.com>
抄送: stable@vger.kernel.org; Yongdong Zhang (张永东) <Yongdong.Zhang@mediatek.com>; Bo Ye (叶波) <Bo.Ye@mediatek.com>; Qilin Tan (谭麒麟) <Qilin.Tan@mediatek.com>
主题: Re: backport a patch for Linux kernel-5.10 and 6.6 stable tree

External email : Please do not click links or open attachments until you have verified the sender or the content.

On Sat, Mar 16, 2024 at 08:16:30AM +0000, Lin Gui (桂林) wrote:
>Hi reviewers,
>
>I suggest to backport a commit to Linux kernel-5.10 and 6.6 stable tree.
>
>　　https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/mmc/core/mmc.c?h=v6.8&id=e4df56ad0bf3506c5189abb9be83f3bea05a4c4f__;!!CTRNKA9wMg0ARbw!k12EPslKI8PL4JY5Qml8g56A4a_4ASz7Fpx2vm_BCELeW1Ky6azcr4u0uN8udOZyQLpTUz1ETq2jn2Y$

Why? What bug does this fix?

--
Thanks,
Sasha