]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: rzv2h-rspi: Fix max_speed_hz and clock configuration issues
authorMark Brown <broonie@kernel.org>
Fri, 10 Apr 2026 12:20:01 +0000 (13:20 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Apr 2026 12:20:01 +0000 (13:20 +0100)
commit6dd13023ec49dcbe9dd6781de524d9e63bb27a49
tree2ef05cb16398b40dceb39f0f9f68bbd1da6032b6
parent9b7abfed4c3754062d1f3ffd452e65a38667f586
parentc958bb67b2dfd87b09d725a60162d13674fc5fd9
spi: rzv2h-rspi: Fix max_speed_hz and clock configuration issues

Prabhakar <prabhakar.csengg@gmail.com> says:

This patch series addresses three issues in the RZV2H RSPI driver:
1. The max_speed_hz field was advertising a prohibited bit rate, which
   could lead to incorrect behavior when userspace applications attempt
   to set the SPI clock speed.
2. The clock configuration logic allowed for an invalid combination of
   SPR=0 and BRDV=0, which is not supported by the hardware.
3. Simplified  the clock rate search function as min/max speed parameters
   are not needed.

Note, patches apply on top of next-20260409.
drivers/spi/spi-rzv2h-rspi.c