Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0702255 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: rpmh: Fix sending incorrect data during flush"

parents 3d18c71f 7ee2815d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/atomic.h>
@@ -559,6 +559,10 @@ int rpmh_flush(const struct device *dev)
		return 0;
	}

	do {
		ret = rpmh_rsc_invalidate(ctrlr_to_drv(ctrlr));
	} while (ret == -EAGAIN);

	/* First flush the cached batch requests */
	ret = flush_batch(ctrlr);
	if (ret)