]> www.infradead.org Git - users/willy/xarray.git/commit
mmc: mtk-sd: Add condition to enable 'single' burst type
authorAxe Yang <axe.yang@mediatek.com>
Fri, 11 Apr 2025 05:40:25 +0000 (13:40 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:18 +0000 (16:59 +0200)
commit920e6bfa6a11baf4fae0e5ce9e3b70f59ae0d47a
tree478fd49e9603fbc8bd92d30e02bc7bda47450bad
parent1c7387579d743c02a3da7aefff1689a5a55c9b84
mmc: mtk-sd: Add condition to enable 'single' burst type

This change add a condition for 'single' burst type selection.

Read AXI_LEN field from EMMC50_CFG2(AHB2AXI wrapper) register, if the
value is not 0, it means the HWIP is using AXI as AMBA bus, which do
not support 'single' burst type.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Axe Yang <axe.yang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250411054134.31822-1-axe.yang@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c