[PATCH] soc: imx8m: Increase the clock enable before reading the register

Lucas Stach l.stach at pengutronix.de
Fri Nov 11 01:05:21 PST 2022


Am Freitag, dem 11.11.2022 um 11:53 +0800 schrieb Shawn Guo:
> On Fri, Nov 11, 2022 at 11:01:15AM +0800, Wang, Xiaolei wrote:
> > 
> > On 11/11/2022 10:46 AM, Shawn Guo wrote:
> > > CAUTION: This email comes from a non Wind River email account!
> > > Do not click links or open attachments unless you recognize the sender and know the content is safe.
> > > 
> > > On Fri, Oct 28, 2022 at 12:14:18PM +0800, Xiaolei Wang wrote:
> > > > When executing kdump to start the second kernel,
> > > > since IMX-OCOTP has turned off the clock, the clock
> > > > needs to be re-enabled, otherwise the system will hang.
> > > > 
> > > > Fixes: ac34de14ac30 ("Revert "soc: imx8m: change to use platform driver"")
> > > Are you saying this fixes a regression caused by ac34de14ac30?
> > 
> > 
> > Yes,
> > 
> > Although there is a problem with commit 7d981405d0fd, it also solves the
> > kexec kernel hang, commit 7d981405d0fd is reverted, and the kexec kernel
> > hang will also be introduced, so the clock needs to be enabled when the
> > kexec kernel starts.
> 
> Ok.
> 
> Lucas,
> 
> Any comments here?

Yea, the explanation with kdump in the commit message is a tad too
specific I think. The simple fact is: OCOTP register access needs the
OCOTP clock to be running and this code peeks into this register
region, so it needs to ensure the clock is active.

Other than this minor issue with the commit message, the change itself
looks fine:
Reviewed-by: Lucas Stach <l.stach at pengutronix.de>

Regards,
Lucas




More information about the linux-arm-kernel mailing list