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

Commit 4506302e authored by Meng Wang's avatar Meng Wang
Browse files

asoc: codec: enable use_single_read for wsa and wcd regmap



When interrupts are triggered on the second or third interrupt
status register, current logic cannot clear that interrupt status
after handling it. Enable use_single_read for wsa and wcd regmap
to resolve the issue.

Change-Id: I31b301e70fc51c86302f80baeec82c865e9a25cd
Signed-off-by: default avatarMeng Wang <quic_mengw@quicinc.com>
parent 16913453
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, 2021, The Linux Foundation. All rights reserved.
 */

#include <linux/regmap.h>
@@ -461,4 +461,5 @@ struct regmap_config wcd937x_regmap_config = {
	.writeable_reg = wcd937x_writeable_register,
	.volatile_reg = wcd937x_volatile_register,
	.can_multi_write = true,
	.use_single_read = true,
};
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, 2021, The Linux Foundation. All rights reserved.
 */

#include <linux/regmap.h>
@@ -512,4 +512,5 @@ struct regmap_config wcd938x_regmap_config = {
	.writeable_reg = wcd938x_writeable_register,
	.volatile_reg = wcd938x_volatile_register,
	.can_multi_write = true,
	.use_single_read = true,
};
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2016, 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, 2019, 2021, The Linux Foundation. All rights reserved.
 */

#include <linux/regmap.h>
@@ -400,4 +400,5 @@ struct regmap_config wsa883x_regmap_config = {
	.reg_format_endian = REGMAP_ENDIAN_NATIVE,
	.val_format_endian = REGMAP_ENDIAN_NATIVE,
	.can_multi_write = true,
	.use_single_read = true,
};