]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: mtk_spim: get spi clk rate only once
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 19 Jul 2023 09:15:54 +0000 (17:15 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:49 +0000 (09:40 -0400)
commit793e6230118032a099ec42a1ea67f434721edcc0
treef3a1f24c095acdb3460c7580e7936c35d048fa56
parentfd9385abe29aa4ec92675e244275582271c17e02
spi: mtk_spim: get spi clk rate only once

We don't really need to switch clk rate during operating SPIM controller.
Get clk rate only once at driver probing.

Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/mtk_spim.c