Re: [BUGFIX PATCH] crypto: ccree: fix resume race condition on init

2019-02-07 Thread Herbert Xu
On Thu, Feb 07, 2019 at 03:36:11PM +0200, Gilad Ben-Yossef wrote: > We were enabling autosuspend, which is using data set by the > hash module, prior to the hash module being inited, casuing > a crash on resume as part of the startup sequence if the race > was lost. > > This was never a real probl

[BUGFIX PATCH] crypto: ccree: fix resume race condition on init

2019-02-07 Thread Gilad Ben-Yossef
We were enabling autosuspend, which is using data set by the hash module, prior to the hash module being inited, casuing a crash on resume as part of the startup sequence if the race was lost. This was never a real problem because the PM infra was using low res timers so we were always winning the