[PATCH] spi: mt65xx: avoid division by zero when speed_hz is zero
Ilia Snezhkov
iasnezhkov at gmail.com
Thu Nov 26 17:29:00 PST 2026
Hi Roman,
Good catch — I missed the second division by mem->spi->max_speed_hz in
mtk_spi_transfer_wait(). Setting host->max_speed_hz = mdata->spi_clk_hz / 2
in mtk_spi_probe() lets the SPI core populate spi->max_speed_hz,
xfer->speed_hz, and op->max_freq across all paths cleanly.
I will respin v2 with that approach and move the AI note below ---.
Best regards,
Ilia
More information about the linux-arm-kernel
mailing list