Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1296416pxm; Thu, 3 Mar 2022 14:32:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw20O9j9GlUTzeIO7e/CM+W4mnSD56jYQIEvK8yYUErR6pz8+QOc4S2Cp5FHB8cALmJzV2k X-Received: by 2002:a17:906:a38e:b0:6da:a1f9:f9ee with SMTP id k14-20020a170906a38e00b006daa1f9f9eemr2434363ejz.27.1646346760041; Thu, 03 Mar 2022 14:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646346760; cv=none; d=google.com; s=arc-20160816; b=GUVPEiVcwEXSb9cuWkAvSgwtkWCnSmSwNOJ/+eM7pGLaGDjxA8ABOl/7NnfarDtq69 i2D7prvJuB7dyVD43UUMJ/eB2syisa5kqzNRb3P3JPqgbzMlIXOHVgKYF69VGo4ea0qs 5JQGcBZYXSwUV/pT0uQ8O5+NvRpF07l2uHjNwEw345VqWxYXA/oQa/wmE34KHE1VGBpx +lrMQYkizTz68Lf1rGDQMVS171jnkuCkdqEIsfT5tLXI7KECsqoLvnQbTfIDOqUcYCi7 G2cQnAUB3TpYjaX7lIDln496tePIXwY2l+oTKCqU67dQzWkNbnT1047VH1WcLqhiKpNz h2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qv07XFTe4HkWwbJqelMKj1qLuYum+eoKoYrC22mdvX0=; b=n751mcO894WJhJ7sEq4S7TygCE4EApydwP+JatrlZKtuacizq7uwk6Rh9Vy3o2pvbJ kJIpnb3gFYhdl9IizfKyQKFXs28Wrg27P5QolbN4PSgPix+o7uxER4dkweGMZQqOzG8s 1jrL7U3HiEGZJ+9XWaxyqvNrZNmi37XutImTF3A3mUf1r6NXq9jMtKtdWyhV0vdTQST7 dgPQ4OfwWMnNDmIUQ7Da0Kdl1ZtCSFnWBPCRa22ZWGH8h3XsECHT4OFniewv2dLkAgnJ Yw8VftSETLx5yZpGn+uUhIIPZry+3vVTk9OkL5me5r75jFIfCPKYIRUageXme0TeaDyt qWTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=IylpRQg2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a170906560f00b006d6e92a6cacsi1915028ejq.428.2022.03.03.14.32.17; Thu, 03 Mar 2022 14:32:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=IylpRQg2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235563AbiCCRcj (ORCPT + 99 others); Thu, 3 Mar 2022 12:32:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235415AbiCCRcH (ORCPT ); Thu, 3 Mar 2022 12:32:07 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3638019E714; Thu, 3 Mar 2022 09:31:20 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2234AADr028599; Thu, 3 Mar 2022 11:31:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=Qv07XFTe4HkWwbJqelMKj1qLuYum+eoKoYrC22mdvX0=; b=IylpRQg2raMh5Hu0JEr1GXaK2W2trWRyDI4AaCyYTsWVI2ad6u7GnX0bhOIE1Jz8olig A3O28Dx6lI2xWS02sOTtFm8IvOLPV8pjcspbkw8lqUH2G5JkOrhcjYuVf1TPoTfNvGeh pa2dIjToxd5maTsQ0gSRoKE44LsN6FpB2ksOEuXxZqLppWvya8mjeXEc+hZeW6uSgGoY tw7d4ja9WpIMV59owATX65EZ+FItnGlhtwQJ4ecehBYjGWkOERq0sSbxR3daI0ofKnp6 Dc+/mO5Szonc34M0+EznXhSeZpbJWO9zxq2WTMLO0GqnBJFo/TpUAWL5eTAkjTsoMLbi fQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ejncq8ybk-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Mar 2022 11:31:04 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Mar 2022 17:31:02 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Thu, 3 Mar 2022 17:31:02 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.198]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 97C897C; Thu, 3 Mar 2022 17:31:02 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai CC: , , , , David Rhodes Subject: [PATCH 01/20] ASoC: cs35l41: Fix GPIO2 configuration Date: Thu, 3 Mar 2022 17:30:40 +0000 Message-ID: <20220303173059.269657-2-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303173059.269657-1-tanureal@opensource.cirrus.com> References: <20220303173059.269657-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: JeKpKn1mwFfiEGOPY8WFpAEMD0cVcIrK X-Proofpoint-GUID: JeKpKn1mwFfiEGOPY8WFpAEMD0cVcIrK X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Rhodes Fix GPIO2 polarity and direction configuration Fixes: fe1024d50477b ("ASoC: cs35l41: Combine adjacent register writes") Signed-off-by: David Rhodes --- sound/soc/codecs/cs35l41.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c index 77a017694645..90c91b00288b 100644 --- a/sound/soc/codecs/cs35l41.c +++ b/sound/soc/codecs/cs35l41.c @@ -1035,8 +1035,8 @@ static int cs35l41_irq_gpio_config(struct cs35l41_private *cs35l41) regmap_update_bits(cs35l41->regmap, CS35L41_GPIO2_CTRL1, CS35L41_GPIO_POL_MASK | CS35L41_GPIO_DIR_MASK, - irq_gpio_cfg1->irq_pol_inv << CS35L41_GPIO_POL_SHIFT | - !irq_gpio_cfg1->irq_out_en << CS35L41_GPIO_DIR_SHIFT); + irq_gpio_cfg2->irq_pol_inv << CS35L41_GPIO_POL_SHIFT | + !irq_gpio_cfg2->irq_out_en << CS35L41_GPIO_DIR_SHIFT); regmap_update_bits(cs35l41->regmap, CS35L41_GPIO_PAD_CONTROL, CS35L41_GPIO1_CTRL_MASK | CS35L41_GPIO2_CTRL_MASK, -- 2.35.1