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

Commit 6481c73c authored by Miguel Vadillo's avatar Miguel Vadillo Committed by Paul Walmsley
Browse files

OMAP2+: hwmod: Enable module in shutdown to access sysconfig



When calling the shutdown, the module may be already in idle.
Accessing the sysconfig register will then lead to a crash.
In that case, re-enable the module in order to allow the access
to the sysconfig register.

Signed-off-by: default avatarMiguel Vadillo <vadillo@ti.com>
Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent c614ebf6
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1396,8 +1396,11 @@ static int _shutdown(struct omap_hwmod *oh)
		}
		}
	}
	}


	if (oh->class->sysc)
	if (oh->class->sysc) {
		if (oh->_state == _HWMOD_STATE_IDLE)
			_enable(oh);
		_shutdown_sysc(oh);
		_shutdown_sysc(oh);
	}


	/*
	/*
	 * If an IP contains only one HW reset line, then assert it
	 * If an IP contains only one HW reset line, then assert it