Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 268d7643 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

spi/hspi: fixup Runtime PM enable timing



3e00a09d
(spi/hspi: Convert to core runtime PM)
enabled master->auto_runtime_pm.
Then, pm_runtime_enable() is required *before*
spi_register_master() calling.
This patch fixed it up.
Kernel will hang up with "spi_master spi0: Failed to power device: -13"
message without this patch.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 15c03dd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -296,6 +296,8 @@ static int hspi_probe(struct platform_device *pdev)
		goto error1;
	}

	pm_runtime_enable(&pdev->dev);

	master->num_chipselect	= 1;
	master->bus_num		= pdev->id;
	master->setup		= hspi_setup;
@@ -309,8 +311,6 @@ static int hspi_probe(struct platform_device *pdev)
		goto error1;
	}

	pm_runtime_enable(&pdev->dev);

	return 0;

 error1: