在 2025/5/19 下午4:22, Herbert Xu 写道:
On Mon, May 19, 2025 at 04:13:14PM +0800, Qunqin Zhao wrote:Then the HISI TRNG driver isn't a right demo?Yes the hisi trng looks wrong too.This can also avoid concurrent access to a device, otherwise i need to add mutex_lock/unlock in generate and seed callback.Randomly failing the tfm allocation is not a solution to resource control :)
Is it fine waiting in init-callback until someone calls exit-callback? Thanks, Qunqin.
Cheers,