diff options
| author | Shawn Lin <shawn.lin@rock-chips.com> | 2026-05-29 09:17:39 +0800 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-05-29 15:12:51 +0200 |
| commit | b99062da21a3988c6b8f1ed0730bf3587cdc7844 (patch) | |
| tree | e4b8e6d1f5bcb94ac328dab02b7ec5e289b8f627 /scripts | |
| parent | 94044acc20cdb99a0429723bcca5e1d828dbf47f (diff) | |
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 'scripts')
0 files changed, 0 insertions, 0 deletions
