spi: pxa2xx: Fix regression when toggling chip select on LPSS devices
The commit78b435c904
("spi: pxa2xx: Introduce __lpss_ssp_update_priv() helper") broke speaker output on my ASUS UX5304MA laptop. The problem is in inverted value that got written in the private register. Simple bug, simple fix. Fixes:78b435c904
("spi: pxa2xx: Introduce __lpss_ssp_update_priv() helper") Signed-off-by: Mark Lord <mlord@pobox.com> Tested-by: Mark Lord <mlord@pobox.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250204174506.149978-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4fd2707e3e
commit
aff2355d26
1 changed files with 1 additions and 1 deletions
|
@ -399,7 +399,7 @@ static void lpss_ssp_cs_control(struct spi_device *spi, bool enable)
|
|||
lpss_ssp_select_cs(spi, config);
|
||||
|
||||
mask = LPSS_CS_CONTROL_CS_HIGH;
|
||||
__lpss_ssp_update_priv(drv_data, config->reg_cs_ctrl, mask, enable ? mask : 0);
|
||||
__lpss_ssp_update_priv(drv_data, config->reg_cs_ctrl, mask, enable ? 0 : mask);
|
||||
if (config->cs_clk_stays_gated) {
|
||||
/*
|
||||
* Changing CS alone when dynamic clock gating is on won't
|
||||
|
|
Loading…
Add table
Reference in a new issue