/* struct hash_ctx { const struct device *device; this device driver's instance structure void *drv_sessn_state; pointer to driver instance struct session state. Defined by driver hash_op hash_hndlr; pointer to this driver function. App calls via pointer to do operations bool started; true if multipart hash has been started uint16_t flags; app populates this before calling hash_begin_session }  */
static int xec_symcr_hash_session_free(const struct device *dev, struct hash_ctx *ctx)
/* struct hash_ctx { const struct device *device; this device driver's instance structure void *drv_sessn_state; pointer to driver instance struct session state. Defined by driver hash_op hash_hndlr; pointer to this driver function. App calls via pointer to do operations bool started; true if multipart hash has been started uint16_t flags; app populates this before calling hash_begin_session }  */
static int xec_symcr_hash_session_free(const struct device *dev, struct hash_ctx *ctx)
{
	struct xec_symcr_hash_session *hs = NULL;
	int ret = 0;
	ret = mchp_xec_rom_ah_dma_init(MCHP_ROM_AH_DMA_INIT_WITH_RESET);
	if (ret) {
		ret = -EIO;
		LOG_ERR("ROM HW reset error %d", ret);
	}
	hs = (struct xec_symcr_hash_session *)ctx->drv_sessn_state;
	memset(hs, 0, sizeof(struct xec_symcr_hash_session));
	return ret;
}