Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: cs42l43: Prepare support for updated bios patch

Newer bios patch firmware versions now require use of the shadow register
interface, which was previously only required by the full firmware, update
the check accordingly.

Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20241205115822.2371719-1-ckeepax@opensource.cirrus.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Maciej Strozek and committed by
Lee Jones
d496ad33 b787a44f

+3 -1
+3 -1
drivers/mfd/cs42l43.c
··· 48 48 49 49 #define CS42L43_MCU_SUPPORTED_REV 0x2105 50 50 #define CS42L43_MCU_SHADOW_REGS_REQUIRED_REV 0x2200 51 + #define CS42L43_BIOS_SHADOW_REGS_REQUIRED_REV 0x1002 51 52 #define CS42L43_MCU_SUPPORTED_BIOS_REV 0x0001 52 53 53 54 #define CS42L43_VDDP_DELAY_US 50 ··· 774 773 * Later versions of the firmwware require the driver to access some 775 774 * features through a set of shadow registers. 776 775 */ 777 - shadow = mcu_rev >= CS42L43_MCU_SHADOW_REGS_REQUIRED_REV; 776 + shadow = (mcu_rev >= CS42L43_MCU_SHADOW_REGS_REQUIRED_REV) || 777 + (bios_rev >= CS42L43_BIOS_SHADOW_REGS_REQUIRED_REV); 778 778 779 779 ret = regmap_read(cs42l43->regmap, CS42L43_BOOT_CONTROL, &secure_cfg); 780 780 if (ret) {