mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 02:16:09 +02:00

Issue: ELE TRNG register with hwrng and open a kthread which remains running after suspend also and results in random interrupts from ELE. Fix: unregister hwrng in suspend and re-register in resume Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
24 lines
403 B
C
24 lines
403 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2024-2025 NXP
|
|
*/
|
|
|
|
#ifndef __ELE_TRNG_H__
|
|
#define __ELE_TRNG_H__
|
|
|
|
#include "se_ctrl.h"
|
|
|
|
#if IS_ENABLED(CONFIG_IMX_ELE_TRNG)
|
|
|
|
int ele_trng_init(struct se_if_priv *priv);
|
|
int ele_trng_exit(struct se_if_priv *priv);
|
|
|
|
#else
|
|
|
|
#define ele_trng_init NULL
|
|
inline int ele_trng_exit(struct se_if_priv *priv) {return 0;};
|
|
|
|
#endif
|
|
|
|
#endif /*__ELE_TRNG_H__ */
|