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

Commit 6a8c53da authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

msm: lmh_lite: Remove the cache invalidation call



Cache invalidation call is redundant, since we flush
the buffer before we initiate the access. The cache
flush internally cleans and invalidates the cache.
So remove the redundant cache invalidation call from
the code.

Change-Id: I94ff7c447929a8bf5f246a7fa06375cd684c2427
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 8b956fec
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -235,7 +235,6 @@ static void lmh_read_and_update(struct lmh_driver_data *lmh_dat)
				(is_scm_armv8()) ? 8 : 7, ret);
		goto read_exit;
	}
	dmac_inv_range(&payload, &payload + sizeof(struct lmh_sensor_packet));

	list_for_each_entry(lmh_sensor, &lmh_sensor_list, list_ptr)
		lmh_sensor->last_read_value = 0;
@@ -532,8 +531,6 @@ static int lmh_get_sensor_list(void)
					(is_scm_armv8()) ? 8 : 7, ret);
			goto get_exit;
		}
		dmac_inv_range(payload, payload
			       + sizeof(struct lmh_sensor_packet));
		size = payload->count;
		if (!size) {
			pr_err("No LMH sensor supported\n");
@@ -674,8 +671,6 @@ static int lmh_get_dev_info(void)
			ret = -ENODEV;
			goto get_dev_exit;
		}
		dmac_inv_range(payload, payload + sizeof(uint32_t) *
				LMH_GET_PROFILE_SIZE);
		if (!lmh_data->dev_info.levels) {
			lmh_data->dev_info.levels = devm_kzalloc(lmh_data->dev,
				sizeof(uint32_t) * size, GFP_KERNEL);