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

Commit aa813630 authored by Ajit Kumar's avatar Ajit Kumar Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: bgcom: log on SPI suspend failure



Do not induce a panic on spi failure to suspend.

Change-Id: Idc0b60c52913a1ef818cf5a70a48aee286347ad3
Signed-off-by: default avatarAjit Kumar <kajit@codeaurora.org>
parent bdd6da44
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ int bgcom_set_spi_state(enum bgcom_spi_state state)
{
	struct bg_spi_priv *bg_spi = container_of(bg_com_drv,
						struct bg_spi_priv, lhandle);
	struct device spi_dev = bg_spi->spi->master->dev;
	const struct device spi_dev = bg_spi->spi->master->dev;
	ktime_t time_start, delta;
	s64 time_elapsed;

@@ -177,7 +177,7 @@ int bgcom_set_spi_state(enum bgcom_spi_state state)
		while (!pm_runtime_status_suspended(spi_dev.parent)) {
			delta = ktime_sub(ktime_get(), time_start);
			time_elapsed = ktime_to_ms(delta);
			BUG_ON(time_elapsed > 5 * MSEC_PER_SEC);
			WARN_ON(time_elapsed > 5 * MSEC_PER_SEC);
			msleep(100);
		}
	}