]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sunxi-mmc: Fix A100 compatible description
authorAndre Przywara <andre.przywara@arm.com>
Thu, 7 Nov 2024 01:42:40 +0000 (01:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:37 +0000 (19:50 +0100)
commit7a514335cf413f8de4bf62a7d6c5595a3cff1940
tree7636f560c46a096d390c1dc3b0907df0d73bc64b
parent43f79bfcfb091176d3a503daa891ed75be8a6335
mmc: sunxi-mmc: Fix A100 compatible description

[ Upstream commit 85b580afc2c215394e08974bf033de9face94955 ]

It turns out that the Allwinner A100/A133 SoC only supports 8K DMA
blocks (13 bits wide), for both the SD/SDIO and eMMC instances.
And while this alone would make a trivial fix, the H616 falls back to
the A100 compatible string, so we have to now match the H616 compatible
string explicitly against the description advertising 64K DMA blocks.

As the A100 is now compatible with the D1 description, let the A100
compatible string point to that block instead, and introduce an explicit
match against the H616 string, pointing to the old description.
Also remove the redundant setting of clk_delays to NULL on the way.

Fixes: 3536b82e5853 ("mmc: sunxi: add support for A100 mmc controller")
Cc: stable@vger.kernel.org
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Parthiban Nallathambi <parthiban@linumiz.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Message-ID: <20241107014240.24669-1-andre.przywara@arm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sunxi-mmc.c