]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi-geni-qcom: don't set max clock in setup_fifo_params
authorJonathan Marek <jonathan@marek.ca>
Thu, 20 Nov 2025 21:11:59 +0000 (16:11 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:39:23 +0000 (19:39 +0900)
setup_se_xfer() already sets the correct clock (xfer->speed_hz). Setting
the clock to max_speed_hz here makes the driver change the clock rate
between speed_hz and max_speed_hz for every message (if not equal),
slowing it down significantly.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Link: https://patch.msgid.link/20251120211204.24078-2-jonathan@marek.ca
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-geni-qcom.c

index ed80f49c7b2f3d84c018d6898ed4b6bc92dd88b9..c33d79d9afaf81dd90ecfbde1ea5cd07376add4e 100644 (file)
@@ -379,7 +379,7 @@ static int setup_fifo_params(struct spi_device *spi_slv,
                mas->last_mode = spi_slv->mode;
        }
 
-       return geni_spi_set_clock_and_bw(mas, spi_slv->max_speed_hz);
+       return 0;
 }
 
 static void