commit | 892d777c9324d1f4fa9bc90c29a9d0adda14c278 | [log] [tgz] |
---|---|---|
author | Nicolò Veronese <nicveronese@gmail.com> | Wed Oct 04 00:14:26 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Wed Oct 11 13:21:33 2023 -0400 |
tree | 96bd39b7be08994cc1ee7f2f49fd8936498ece16 | |
parent | 362e66c99bf4721807bec3c27893cb61b45de586 [diff] |
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>