]> git.baikalelectronics.ru Git - kernel.git/commit
soc: sunxi: sram: Actually claim SRAM regions
authorSamuel Holland <samuel@sholland.org>
Mon, 15 Aug 2022 04:12:40 +0000 (23:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:37:44 +0000 (10:37 +0200)
commitf0c7e7fbd4e169727ad89c139dcce91663ca7f37
tree632aa841e5335c9c38a181feba230a2b63054460
parentbf775a115bfe407ed7b38da516b1cbd7fed7a13a
soc: sunxi: sram: Actually claim SRAM regions

[ Upstream commit b6b6282a3207abf62f4731b8de6217019b84164e ]

sunxi_sram_claim() checks the sram_desc->claimed flag before updating
the register, with the intent that only one device can claim a region.
However, this was ineffective because the flag was never set.

Fixes: 21d4f23cd41f ("drivers: soc: sunxi: Introduce SoC driver to map SRAMs")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220815041248.53268-4-samuel@sholland.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/sunxi/sunxi_sram.c