memory: samsung: exynos5422-dmc: Add module param to control IRQ mode
authorLukasz Luba <lukasz.luba@arm.com>
Fri, 10 Jul 2020 19:11:22 +0000 (20:11 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jul 2020 08:22:57 +0000 (17:22 +0900)
commit4fc9a0470d2dc370289e9d883feb41e5dd2c6303
treefde2894800993492d63e8401c2eea073a01d9032
parent74ca9e46107879551e2625bfbfbfd71da1881b82
memory: samsung: exynos5422-dmc: Add module param to control IRQ mode

The driver can operate in two modes relaying on devfreq monitoring
mechanism which periodically checks the device status or it can use
interrupts when they are provided by loaded Device Tree. The newly
introduced module parameter can be used to choose between devfreq
monitoring and internal interrupts without modifying the Device Tree.
It also sets devfreq monitoring as default when the parameter is not set
(also the case for default when the driver is not built as a module).

Reported-by: Willy Wolff <willy.mh.wolff.ml@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/memory/samsung/exynos5422-dmc.c