* [PATCH] mfd: cs42l43: Prepare support for updated bios patch
@ 2024-10-23 10:06 Maciej Strozek
2024-10-23 10:06 ` [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
2024-10-23 10:38 ` [PATCH] mfd: cs42l43: Prepare support for updated bios patch Charles Keepax
0 siblings, 2 replies; 7+ messages in thread
From: Maciej Strozek @ 2024-10-23 10:06 UTC (permalink / raw)
To: Lee Jones, patches; +Cc: linux-sound, linux-kernel, Maciej Strozek
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>
---
drivers/mfd/cs42l43.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c
index 3b4efb294471..35a633457a93 100644
--- a/drivers/mfd/cs42l43.c
+++ b/drivers/mfd/cs42l43.c
@@ -48,6 +48,7 @@
#define CS42L43_MCU_SUPPORTED_REV 0x2105
#define CS42L43_MCU_SHADOW_REGS_REQUIRED_REV 0x2200
+#define CS42L43_BIOS_SHADOW_REGS_REQUIRED_REV 0x1002
#define CS42L43_MCU_SUPPORTED_BIOS_REV 0x0001
#define CS42L43_VDDP_DELAY_US 50
@@ -773,7 +774,8 @@ static int cs42l43_mcu_update_step(struct cs42l43 *cs42l43)
* Later versions of the firmwware require the driver to access some
* features through a set of shadow registers.
*/
- shadow = mcu_rev >= CS42L43_MCU_SHADOW_REGS_REQUIRED_REV;
+ shadow = (mcu_rev >= CS42L43_MCU_SHADOW_REGS_REQUIRED_REV) ||
+ (bios_rev >= CS42L43_BIOS_SHADOW_REGS_REQUIRED_REV);
ret = regmap_read(cs42l43->regmap, CS42L43_BOOT_CONTROL, &secure_cfg);
if (ret) {
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] spi: cs42l43: Correct name of ACPI property
2024-10-23 10:06 [PATCH] mfd: cs42l43: Prepare support for updated bios patch Maciej Strozek
@ 2024-10-23 10:06 ` Maciej Strozek
2024-10-23 10:08 ` Maciej Strozek
2024-10-23 10:38 ` [PATCH] mfd: cs42l43: Prepare support for updated bios patch Charles Keepax
1 sibling, 1 reply; 7+ messages in thread
From: Maciej Strozek @ 2024-10-23 10:06 UTC (permalink / raw)
To: Lee Jones, patches; +Cc: linux-sound, linux-kernel, Maciej Strozek
Fixes: 439fbc97502a ("spi: cs42l43: Add bridged cs35l56 amplifiers")
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
---
v2: Corrected the Fixes tag to point to right commit
drivers/spi/spi-cs42l43.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-cs42l43.c b/drivers/spi/spi-cs42l43.c
index cdc61cd089ad..9d747ea69926 100644
--- a/drivers/spi/spi-cs42l43.c
+++ b/drivers/spi/spi-cs42l43.c
@@ -267,7 +267,7 @@ static bool cs42l43_has_sidecar(struct fwnode_handle *fwnode)
continue;
ret = fwnode_property_read_u32(ext_fwnode,
- "01fa-cirrus-sidecar-instances",
+ "01fa-sidecar-instances",
&val);
fwnode_handle_put(ext_fwnode);
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] spi: cs42l43: Correct name of ACPI property
2024-10-23 10:06 ` [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
@ 2024-10-23 10:08 ` Maciej Strozek
0 siblings, 0 replies; 7+ messages in thread
From: Maciej Strozek @ 2024-10-23 10:08 UTC (permalink / raw)
To: Lee Jones, patches; +Cc: linux-sound, linux-kernel
W dniu śro, 23.10.2024 o godzinie 11∶06 +0100, użytkownik Maciej
Strozek napisał:
> Fixes: 439fbc97502a ("spi: cs42l43: Add bridged cs35l56 amplifiers")
>
> Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
> ---
Sorry, sent this old spi v2 patch in error, please ignore
--
Regards,
Maciej
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mfd: cs42l43: Prepare support for updated bios patch
2024-10-23 10:06 [PATCH] mfd: cs42l43: Prepare support for updated bios patch Maciej Strozek
2024-10-23 10:06 ` [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
@ 2024-10-23 10:38 ` Charles Keepax
1 sibling, 0 replies; 7+ messages in thread
From: Charles Keepax @ 2024-10-23 10:38 UTC (permalink / raw)
To: Maciej Strozek; +Cc: Lee Jones, patches, linux-sound, linux-kernel
On Wed, Oct 23, 2024 at 11:06:34AM +0100, Maciej Strozek wrote:
> 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>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] spi: cs42l43: Correct name of ACPI property
2024-04-18 10:33 [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
2024-04-18 13:02 ` Charles Keepax
@ 2024-04-19 10:03 ` Mark Brown
1 sibling, 0 replies; 7+ messages in thread
From: Mark Brown @ 2024-04-19 10:03 UTC (permalink / raw)
To: Maciej Strozek; +Cc: patches, alsa-devel, linux-spi, linux-kernel
On Thu, 18 Apr 2024 11:33:15 +0100, Maciej Strozek wrote:
> Fixes: 439fbc97502a ("spi: cs42l43: Add bridged cs35l56 amplifiers")
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: cs42l43: Correct name of ACPI property
commit: e4f23c4c4dd0aa9bb3a70a873d3fc32a41f64007
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] spi: cs42l43: Correct name of ACPI property
2024-04-18 10:33 [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
@ 2024-04-18 13:02 ` Charles Keepax
2024-04-19 10:03 ` Mark Brown
1 sibling, 0 replies; 7+ messages in thread
From: Charles Keepax @ 2024-04-18 13:02 UTC (permalink / raw)
To: Maciej Strozek; +Cc: Mark Brown, patches, alsa-devel, linux-spi, linux-kernel
On Thu, Apr 18, 2024 at 11:33:15AM +0100, Maciej Strozek wrote:
> Fixes: 439fbc97502a ("spi: cs42l43: Add bridged cs35l56 amplifiers")
>
> Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] spi: cs42l43: Correct name of ACPI property
@ 2024-04-18 10:33 Maciej Strozek
2024-04-18 13:02 ` Charles Keepax
2024-04-19 10:03 ` Mark Brown
0 siblings, 2 replies; 7+ messages in thread
From: Maciej Strozek @ 2024-04-18 10:33 UTC (permalink / raw)
To: Mark Brown; +Cc: patches, alsa-devel, linux-spi, linux-kernel, Maciej Strozek
Fixes: 439fbc97502a ("spi: cs42l43: Add bridged cs35l56 amplifiers")
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
---
v2: Corrected the Fixes tag to point to right commit
drivers/spi/spi-cs42l43.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-cs42l43.c b/drivers/spi/spi-cs42l43.c
index cdc61cd089ad..9d747ea69926 100644
--- a/drivers/spi/spi-cs42l43.c
+++ b/drivers/spi/spi-cs42l43.c
@@ -267,7 +267,7 @@ static bool cs42l43_has_sidecar(struct fwnode_handle *fwnode)
continue;
ret = fwnode_property_read_u32(ext_fwnode,
- "01fa-cirrus-sidecar-instances",
+ "01fa-sidecar-instances",
&val);
fwnode_handle_put(ext_fwnode);
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-10-23 10:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-23 10:06 [PATCH] mfd: cs42l43: Prepare support for updated bios patch Maciej Strozek
2024-10-23 10:06 ` [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
2024-10-23 10:08 ` Maciej Strozek
2024-10-23 10:38 ` [PATCH] mfd: cs42l43: Prepare support for updated bios patch Charles Keepax
-- strict thread matches above, loose matches on Subject: below --
2024-04-18 10:33 [PATCH v2] spi: cs42l43: Correct name of ACPI property Maciej Strozek
2024-04-18 13:02 ` Charles Keepax
2024-04-19 10:03 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®