Skip to content

Commit eb9280e

Browse files
charleskeepaxgregkh
authored andcommitted
pinctrl: cs42l43: Fix polarity on debounce
[ Upstream commit 9da52ee ] The debounce bit sets a bypass on the debounce rather than enabling it, as such the current polarity of the debounce is set incorrectly. Invert the polarity to correct this. Fixes: d5282a5 ("pinctrl: cs42l43: Add support for the cs42l43") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2739d23 commit eb9280e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/cirrus/pinctrl-cs42l43.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int cs42l43_pin_set_db(struct cs42l43_pin *priv, unsigned int pin,
343343

344344
return regmap_update_bits(priv->regmap, CS42L43_GPIO_CTRL2,
345345
CS42L43_GPIO1_DEGLITCH_BYP_MASK << pin,
346-
!!us << pin);
346+
!us << pin);
347347
}
348348

349349
static int cs42l43_pin_config_get(struct pinctrl_dev *pctldev,

0 commit comments

Comments
 (0)