memory: mtk-smi: Use clk_bulk clock ops
authorYong Wu <yong.wu@mediatek.com>
Tue, 14 Sep 2021 11:36:53 +0000 (19:36 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 22 Sep 2021 06:40:10 +0000 (08:40 +0200)
commit0e14917c57f9d8b9b7d4f41813849a29659447b3
tree6fc89c602b493ae021cb6ce5a0ca3e13dd8339df
parent599e681a31a2dfa7359b8e420a1157ed015f840b
memory: mtk-smi: Use clk_bulk clock ops

Use clk_bulk interface instead of the orginal one to simplify the code.

For SMI larbs: Require apb/smi clocks while gals is optional.
For SMI common: Require apb/smi/gals0/gal1 in has_gals case. Otherwise,
                also only require apb/smi, No optional clk here.

About the "has_gals" flag, for smi larbs, the gals clock also may be
optional even this platform support it. thus it always use
*_bulk_get_optional, then the flag has_gals is unnecessary. Remove it.
The smi_common's has_gals still keep it.

Also remove clk fail logs since bulk interface already output fail log.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20210914113703.31466-4-yong.wu@mediatek.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/mtk-smi.c