]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: mtk_spim: prevent global pll clock override
authorNicolò Veronese <nicveronese@gmail.com>
Tue, 3 Oct 2023 22:14:26 +0000 (00:14 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 17:21:33 +0000 (13:21 -0400)
commit538b97dd5d6be8206b532664cf616c567434368d
tree96bd39b7be08994cc1ee7f2f49fd8936498ece16
parent20535a3369d9ca3e3d6dd880c5fa23115a8b3fbd
spi: mtk_spim: prevent global pll clock override

With commit 793e62301180 ("spi: mtk_spim: get spi clk rate only once") a
new system to calculate the SPI clocks has been added.

Unfortunately, the do_div macro overrides the global priv->pll_clk_rate
field. This will cause to have a reduced clock rate on each subsequent
SPI call.

Signed-off-by: Valerio 'ftp21' Mancini <ftp21@ftp21.eu>
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
drivers/spi/mtk_spim.c