2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 14:43:54 +08:00
linux-next/drivers/memory/samsung
Lukasz Luba 7f7d9e1e02 memory: samsung: exynos5422-dmc: Additional locking for 'curr_rate'
The 'curr_rate' is protected by local 'dmc->lock' in various places, but
not in a function exynos5_dmc_get_status(). The lock protects frequency
(and voltage) change process and the corresponding value stored in
'curr_rate'. Add the locking mechanism to protect the 'curr_rate' reading
also in the exynos5_dmc_get_status().

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20200811101727.3976-1-lukasz.luba@arm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2020-08-17 13:54:14 +02:00
..
exynos5422-dmc.c memory: samsung: exynos5422-dmc: Additional locking for 'curr_rate' 2020-08-17 13:54:14 +02:00
exynos-srom.c memory: samsung: exynos-srom: Correct alignment 2020-07-27 11:13:33 +02:00
exynos-srom.h memory: samsung: Add SPDX license identifiers 2018-02-12 19:55:34 +01:00
Kconfig memory: samsung: exynos-srom: Describe the Kconfig entry 2020-07-24 16:18:32 +02:00
Makefile memory: Add DMC driver for Exynos5422 2019-10-01 20:28:38 +02:00