Re: [PATCH] spi: mt65xx: avoid division by zero when speed_hz is zero

From: Ilia Snezhkov

Date: Thu Nov 26 2026 - 20:29:12 EST


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