]> www.infradead.org Git - users/willy/linux.git/commit
memory: mtk-smi: Add device-link between smi-larb and smi-common
authorYong Wu <yong.wu@mediatek.com>
Sat, 10 Apr 2021 09:11:16 +0000 (17:11 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 13 Apr 2021 14:56:31 +0000 (16:56 +0200)
commit6ce2c05b21189eb17b3aa26720cc5841acf9dce8
tree581adc30938292b6151ca470e37792aa36df0bce
parent132c17c3ff878c7beaba51bdd275d5cc654c0e33
memory: mtk-smi: Add device-link between smi-larb and smi-common

Normally, If the smi-larb HW need work, we should enable the smi-common
HW power and clock firstly.
This patch adds device-link between the smi-larb dev and the smi-common
dev. then If pm_runtime_get_sync(smi-larb-dev), the pm_runtime_get_sync
(smi-common-dev) will be called automatically.

Also, Add DL_FLAG_STATELESS to avoid the smi-common clocks be gated when
probe.

CC: Matthias Brugger <matthias.bgg@gmail.com>
Suggested-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210410091128.31823-5-yong.wu@mediatek.com
drivers/memory/mtk-smi.c