imx: ele_ahab: confirm lifecycle before closing the part
authorYe Li <ye.li@nxp.com>
Mon, 30 Jan 2023 10:39:54 +0000 (18:39 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Mar 2023 20:27:38 +0000 (22:27 +0200)
commitfe787f277daaf22310eb39b0eaa3133b8929b2bf
treef0f839c717781a06d7d3f6bc328faf56042b5a36
parent040fc2be782d95a8f9fa6a4123f2ab2a7cd6a2cf
imx: ele_ahab: confirm lifecycle before closing the part

Before moving the lifecycle to OEM closed, confirm the lifecycle is
OEM open, otherwise cancel to move forward the lifecycle.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/ele_ahab.c