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

Commit 6c57248b authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 8fd74548 on remote branch

Change-Id: I9497fc077bbbcf9ce53fb433bb047cf130b21a67
parents 007c345a 8fd74548
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2017, 2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
 */
#include <linux/module.h>
#include <linux/init.h>
@@ -1141,8 +1142,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block,
		break;
	case DIG_CDC_EVENT_SSR_UP:
		regcache_cache_only(msm_dig_cdc->regmap, false);
		if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL &&
			(msm_dig_cdc->regmap->lock_arg) != NULL) {
			regcache_mark_dirty(msm_dig_cdc->regmap);

		}
		mutex_lock(&pdata->cdc_int_mclk0_mutex);
		pdata->digital_cdc_core_clk.enable = 1;
		ret = afe_set_lpass_clock_v2(
@@ -1156,7 +1159,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block,
		}
		mutex_unlock(&pdata->cdc_int_mclk0_mutex);

		if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL &&
                        (msm_dig_cdc->regmap->lock_arg) != NULL) {
			regcache_sync(msm_dig_cdc->regmap);
		}

		mutex_lock(&pdata->cdc_int_mclk0_mutex);
		pdata->digital_cdc_core_clk.enable = 0;
+11 −1
Original line number Diff line number Diff line
@@ -2036,7 +2036,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv)
		return 0;
	}
	
	if (data->payload_size < (2 * sizeof(uint32_t))) {
	/*
	The payload_size can be either 4 or 8 bytes.
	It has to be verified whether the payload_size is
	atleast 4 bytes. If it is less, returns errorcode.

	The opcode for 4 bytes is 0x12A80
	The opcode for 8 bytes is 0x110E8.
	 
	*/

	if (data->payload_size < (2 * sizeof(uint16_t))) {
		pr_err("%s: payload has invalid size[%d]\n", __func__,
			data->payload_size);
		return -EINVAL;