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

spi: sun6i: 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 Ripard <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
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
36bc7491 5771a8c0

+1 -1
+1 -1
drivers/spi/spi-sun6i.c
··· 502 502 503 503 init_completion(&sspi->done); 504 504 505 - sspi->rstc = devm_reset_control_get(&pdev->dev, NULL); 505 + sspi->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); 506 506 if (IS_ERR(sspi->rstc)) { 507 507 dev_err(&pdev->dev, "Couldn't get reset controller\n"); 508 508 ret = PTR_ERR(sspi->rstc);