spi-geni-qcom: don't set max clock in setup_fifo_params

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>
This commit is contained in:
Jonathan Marek 2025-11-20 16:11:59 -05:00 committed by Mark Brown
parent b99181cdf9
commit 7ba2e0edb1
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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