summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2026-05-29 04:17:39 +0300
committerUlf Hansson <ulfh@kernel.org>2026-05-29 16:12:51 +0300
commitb99062da21a3988c6b8f1ed0730bf3587cdc7844 (patch)
treee4b8e6d1f5bcb94ac328dab02b7ec5e289b8f627 /include/linux
parent94044acc20cdb99a0429723bcca5e1d828dbf47f (diff)
downloadlinux-b99062da21a3988c6b8f1ed0730bf3587cdc7844.tar.xz
mmc: dw_mmc: Add desc_num field for clarity
The ring_size field in struct dw_mci is misleadingly named. Despite its name, it does not represent the size of the descriptor ring buffer in bytes, but rather the number of descriptors allocated within the fixed-size ring buffer. The actual ring buffer size is fixed at PAGE_SIZE (or DESC_RING_BUF_SZ, which equals PAGE_SIZE). Within this buffer, we allocate either struct idmac_desc or struct idmac_desc_64addr descriptors, and ring_size stores the count of these descriptors. This naming has caused confusion, as it's also used to set mmc->max_segs (the maximum number of scatter-gather segments), which logically corresponds to the number of descriptors, not a size in bytes. No functional change is introduced by this naming-only patch. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions