]> www.infradead.org Git - users/willy/xarray.git/commit
mmc: mtk-sd: Aggregate writes for MSDC_PATCH_BIT1/2 setup
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 25 Mar 2025 11:06:59 +0000 (12:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:16 +0000 (16:59 +0200)
commit091bf793eb06f01ca0e2ec2f327957cce816c96e
treee6372de31a202bb30e3df0688b00796072fba010
parent6cdf5f1d7d4dcc4bf3fff1de37711d653d4a6bf8
mmc: mtk-sd: Aggregate writes for MSDC_PATCH_BIT1/2 setup

Instead of continuously reading and writing to the patch bit 1/2
registers, prepare the final values to write to those and write
just once per register during the setup phase.

This makes the driver slightly smaller and also slightly improves
the execution time of the msdc_init_hw function, called not only
at probe time, but also when resuming from system suspend.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250325110701.52623-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c