Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp336186pxk; Thu, 3 Sep 2020 00:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKTMit7kx3hQarXkabtba5khG0i1BxCTEQWwjcPabc7h65739A6KPd4enVwJMJJ2QgnfPW X-Received: by 2002:a17:906:90d5:: with SMTP id v21mr761547ejw.123.1599118287217; Thu, 03 Sep 2020 00:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599118287; cv=none; d=google.com; s=arc-20160816; b=DPh8G1eZrTYnQbaN10W+OSnLMzepFko57WLQG3KPWKq1r7YjR+uFNm7eyax3GSDUem JDG8Nu96CxivhjEAK94aspmITbWwtXeou/HJgXc6JdWvcEI9IIvOwKvoTeejmtC+e4xv 3+vwIKfBd4RelsGxkVspKqyYV2zmCyndYkKUuW3fesVC0QN1CFrRyzECRX6iC/rb+SU3 +iClOocgGDhxfwBf6uHTGOQ/35VxFQl7GAtFvtQTmOqs8Zg0Yaj8FLtTwDzvURe6ocLo rVNMrRlefygwClZeSb/bSEKBgWXdlYr2uj38y1V3k7mFe6D/AXUbgNVBWD/su9+E9Bbc K/cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=he64QQV9pZVx+ktlAFtqPXDhdBcTaUMF6DeQvxYf9kI=; b=NTMCJx7ZaiePytsC5P5rrnoG7KyyOP0wpoRZH75EXFw8+fHtXk+miwPO2BLqAqyXNg ndS9QXBjpzVsKedscNbr5hSlu8LVdniiCEpAiXNN/Oiz5qA+L+nqRDMVuSINMbwKrqYS 8tCV1fKdy4mPfWgmB/J7aFPKirSzW9sBiTZJ2q6LoMap1sVoYpFW68ofvS+dgGU8wYHT 0TKiWBKziorewOtBPUWewEveqxy25X7i37exNAnN+On+jykYuvyw4gtpeAVpZNrGKoAc IO85Yt+rWGVTDyygvPnSFJxXpmGLSJ0qhbSrov7FlIzgBLDSbZwB1nJhSbx9Ii3qyEvT rsaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c7JrFXHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si1096128edt.298.2020.09.03.00.31.04; Thu, 03 Sep 2020 00:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c7JrFXHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727804AbgICHa1 (ORCPT + 99 others); Thu, 3 Sep 2020 03:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726263AbgICHa1 (ORCPT ); Thu, 3 Sep 2020 03:30:27 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D51C061244; Thu, 3 Sep 2020 00:30:26 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id o20so1569852pfp.11; Thu, 03 Sep 2020 00:30:26 -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; bh=he64QQV9pZVx+ktlAFtqPXDhdBcTaUMF6DeQvxYf9kI=; b=c7JrFXHvV+TonUZE/KSsYYM5lobhhHSzePzX1AiPk1VqhFtHiBASpHvuiYDceLkDoZ 1U0vD1rfT3f66NCtd9+Ov4hPhop+2vAjQoOGFcoiNwUGhau9rtiab7cu/Z4THr/WKKds /BICMFdBddmugjFA5RtcR+Td6M7ipCB3gVXdHV6Srxng82AHEUAxdHwAKd3VMoAKKHVC mTjorkm0E6905iX+f+VLKrfRzTd0/pbY/l/WiMnR+ZyCwfrfDvkKgNRktFNTH0ilVc7Z xnTwST+sLi48o/xCLi1/z7VYO/ZEjgmtzyJj9+/UHuf4Dwey22GUi12Q/QNFwGQUF+p2 HQ2A== 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; bh=he64QQV9pZVx+ktlAFtqPXDhdBcTaUMF6DeQvxYf9kI=; b=kJs/jfPeiw4GoP36ndcF4CV3Y8OkPr+s3msuKkUMWccTxflyJEJGkYz8X8hT+1eniq kVMFI+0qVn7MSOrRdz1mjnaSOm+CftGNdq+IPuaOzL/RLuR0Mt4Pii092uArsgKDut8/ b8+aj+chD7i9dVdrsePJGJ3auodAOnRyHDoe3qTc9DD+laY6ZbXt62JLAsMOg5WhfgWe A51zoV870A/taLwuKzSlLx/VRnCbO0v5Df74xTGvzn/qBh8DwQI6gsecVnIEGlw81gjT c/iPcgo6hBhL2ZUSEt6PbGtmB40ieMwsQ9p+GeH4TxA8E7bzZjyYdKzgt3jhQK2IAhnA TErQ== X-Gm-Message-State: AOAM53226wkwMVwjCGUGrQriPXFbFVOWURYq74p8MQw2Nr2ojygvE2A2 zwKiMSi1uIbWH9H6caLH0nk= X-Received: by 2002:a17:902:850b:: with SMTP id bj11mr2537633plb.81.1599118226410; Thu, 03 Sep 2020 00:30:26 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([103.206.191.6]) by smtp.gmail.com with ESMTPSA id u63sm1949105pfu.34.2020.09.03.00.30.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2020 00:30:26 -0700 (PDT) From: dillon.minfei@gmail.com To: linus.walleij@linaro.org, lee.jones@linaro.org, bgolaszewski@baylibre.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, dillon min Subject: [PATCH: V2 0/2] Fix TC35894 gpio interrupt bug Date: Thu, 3 Sep 2020 15:30:20 +0800 Message-Id: <1599118222-18990-1-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dillon min This patchset intend to fix two bug on tc35894 V2: 1 change V1[1] patch's Fixes tag 2 add DIRECTx register configuration in tc3589x_gpio_irq_sync_unlock() to active general purpose gpio mode, else can't read correct GPIOMISx to identify which interrupt V1: 1 offset counting is wrong in tc3589x_gpio_irq_sync_unlock() 2 disable Direct KBD interrupts in gpio-tc3589x's probe(), at least have to do this on tc35894, if not, after chip reset, IRQST(0x91) will always be 0x20, IRQN always low level, can't be cleared. need more test on other tc3589x. dillon min (2): gpio: tc35894: fix up tc35894 interrupt configuration gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq drivers/gpio/gpio-tc3589x.c | 20 +++++++++++++++++--- include/linux/mfd/tc3589x.h | 6 ++++++ 2 files changed, 23 insertions(+), 3 deletions(-) --