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

Commit a79281ac authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "spi: spi_qsd: Prevent unbalanced clock"

parents b5e56a43 ddb2e528
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1943,7 +1943,10 @@ static int msm_spi_setup(struct spi_device *spi)
	dd = spi_master_get_devdata(spi->master);

	pm_runtime_get_sync(dd->dev);
	get_local_resources(dd);
	rc = get_local_resources(dd);
	if (rc)
		goto no_resources;


	mutex_lock(&dd->core_lock);

@@ -1981,6 +1984,7 @@ static int msm_spi_setup(struct spi_device *spi)
err_setup_exit:
	mutex_unlock(&dd->core_lock);
	put_local_resources(dd);
no_resources:
	pm_runtime_mark_last_busy(dd->dev);
	pm_runtime_put_autosuspend(dd->dev);
	return rc;