Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: stm32: explicitly request exclusive reset control

Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.

No functional changes.

Cc: Mark Brown <broonie@kernel.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: linux-spi@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Philipp Zabel and committed by
Mark Brown
d5e9a4a4 5771a8c0

+1 -1
+1 -1
drivers/spi/spi-stm32.c
··· 1132 1132 goto err_master_put; 1133 1133 } 1134 1134 1135 - spi->rst = devm_reset_control_get(&pdev->dev, NULL); 1135 + spi->rst = devm_reset_control_get_exclusive(&pdev->dev, NULL); 1136 1136 if (!IS_ERR(spi->rst)) { 1137 1137 reset_control_assert(spi->rst); 1138 1138 udelay(2);