From patchwork Tue Apr 14 00:37:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 207072 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E058AC2BA2B for ; Tue, 14 Apr 2020 00:37:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3EAC2087E for ; Tue, 14 Apr 2020 00:37:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qfHOKJv/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390540AbgDNAhg (ORCPT ); Mon, 13 Apr 2020 20:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390520AbgDNAhf (ORCPT ); Mon, 13 Apr 2020 20:37:35 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88EA5C0A3BDC; Mon, 13 Apr 2020 17:37:33 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id j20so2132234edj.0; Mon, 13 Apr 2020 17:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ji43IE1bftwYizBHoZlC7/uT/8SnmPOaZiZXALCB9zs=; b=qfHOKJv/Xqjjy5+2x5jxtYRYOgVDbDQKDd2T7C9Sb3Vs17lYOrl62Nc0sn00u2asCg 0HR23YDfGqrStkBj4TJCItH8NJi4MdwDs8IGr+a9P6bXgb/5Anh5SPJdXROEqxK7fPy6 ZIA4gx/0Hp0xN8A23YAJz1fzkgx7rojVq/K+E6JM3i+bhi1TVZMfr/oji7xwkC80KqQf YoTZl/x+4t9if7Hq4hPiDusjgHqFtuGbPZoAaVWighgOIMao+kj8oT8TKriXXmx5t221 Q9DsCx9BwzrXX3JWxk/P3eZgz/jBymctHKecGSAbKWMNSXcAOzFRfkuu9+l9hp/bklXQ Km7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ji43IE1bftwYizBHoZlC7/uT/8SnmPOaZiZXALCB9zs=; b=JiRFhliiJSBotFeUOn7YwbiaNZe/xCoUBEAF2Svd5pSYd/1sv8pK7JEKIKkLoOSYkG NhWNt9Fx0+ECuBIdq2GS8epQhGqfRHnud307lPSZajJyy85wM2eovlzkGXGH6iNcw5+P ZAQ19xh2ZNObDYXN+3UKfTFynynw3G3TRqJL+cJeo7lRy3xuAivdJccwy8OYhBO5oK7i XGXzqIVQ4Yw6UPrnOg8+n02cK+2LM9ml4UIzUzeGO1dI5M44pKaW8g4PqyZgIl/JbFjQ w1dLYai8txMM7mWPQxp9LzmSFaa6Xf1oB/yFcnVIMQ5sM7DkhNZkFppv98oKUDpp2sMD iseQ== X-Gm-Message-State: AGi0PuaVHkZkN06gKy95ZrIEjuSjDjSOdF2/0yB72Ju6c/g886W2Xxk6 MYXftIW9XnFFvn9/YeRePmY= X-Google-Smtp-Source: APiQypLSPeVMtOBkEEOVW9sn/+Zs7n0byX39evNWxNuOsYsP1VzJR9fD/SSg9hcde7nAGChwvsTGuw== X-Received: by 2002:a50:fb9a:: with SMTP id e26mr17271158edq.377.1586824652058; Mon, 13 Apr 2020 17:37:32 -0700 (PDT) Received: from Ansuel-XPS.localdomain (host117-205-dynamic.180-80-r.retail.telecomitalia.it. [80.180.205.117]) by smtp.googlemail.com with ESMTPSA id k18sm1705742ejq.84.2020.04.13.17.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 17:37:31 -0700 (PDT) From: Ansuel Smith To: Andy Gross Cc: Ansuel Smith , Bjorn Andersson , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom: fix wrong write in update_dual_edge Date: Tue, 14 Apr 2020 02:37:26 +0200 Message-Id: <20200414003726.25347-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Fix a typo in the readl/writel accessor conversion where val is used instead of pol changing the behavior of the original code. Fixes: 6c73698904aa pinctrl: qcom: Introduce readl/writel accessors Signed-off-by: Ansuel Smith --- drivers/pinctrl/qcom/pinctrl-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 1a948c3f54b7..9f1c9951949e 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -692,7 +692,7 @@ static void msm_gpio_update_dual_edge_pos(struct msm_pinctrl *pctrl, pol = msm_readl_intr_cfg(pctrl, g); pol ^= BIT(g->intr_polarity_bit); - msm_writel_intr_cfg(val, pctrl, g); + msm_writel_intr_cfg(pol, pctrl, g); val2 = msm_readl_io(pctrl, g) & BIT(g->in_bit); intstat = msm_readl_intr_status(pctrl, g);