Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp784729pxk; Mon, 31 Aug 2020 00:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS/Ybgq6ElCoAyKe1Z+/ZRNoQQjnZLpixxc7+x4cXLeFgVYDr8fXe8NsmiwoVox69LnsMZ X-Received: by 2002:aa7:c447:: with SMTP id n7mr7781817edr.323.1598858158955; Mon, 31 Aug 2020 00:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598858158; cv=none; d=google.com; s=arc-20160816; b=cTuSPKPghEc3H3UwEUT3bDo0wTV80cFDtLlM/nxC7bYQSkyAWG4/nCos1S2MgyOXgE sGXug/4b2XKZPlynC6UMfPhA2kL7lUum7BUBZUFssBe+HA+27pdl47vJ6F4Lr0EbfQFG E5ihL8U2Ylc5AsoSkJUnTIWVr3lIw+cVp2MKnZXiVuFrNGa6x6ToO+6JrGWD0jmcdLOb gmvf6PrBM4yNqjv5HPg03ZyfEW7e2fkHQXvjSJu/7bIxrngcpKu3D0W2Dr1jseAHAc+d c/jgkFHrndefS5LDK+VEP/O4du7ayqpLak1fH0SM2CCu48B1mhiOFbBFe0ysY0+tCZso Lp9A== 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=Qf/Ds7SliWgzv5NoIx/3dyTk8Rlg5L8HmfFS8O3CFzI=; b=gVnlRSsrl7Ssq/y8hXx6DUwvpw8FjFd4O+jffLPqqKj305KGQ4+2ROvbzpOHn/XPCC ALYWNWiXeuPWapBYtc3NPikk7Gi5SJqZsvlXwjhmiiFynjdvu4xAJpGnatXeW949MI4o bfR0yzJ3eMkRT8SD0HOfU93H1vYBD22MAbnqNsvQovRdBv++xGDUQXEH0s6WIerjxCnj cNzvtdz2Fw7q8ars71rkb7a93NSrvxFLq74K87VTVrn3RcL60299u04FpJ89rKJKbHHP ZfNvtpYd8zjivlMeTIMSHLQCoI7H/vKQxkqijU9JDH8Pk48WCbqYk/lmSKYk/B8sPiLY WQhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q7NiY6Lo; 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 k30si4833500edk.76.2020.08.31.00.15.36; Mon, 31 Aug 2020 00:15:58 -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=Q7NiY6Lo; 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 S1727065AbgHaHOn (ORCPT + 99 others); Mon, 31 Aug 2020 03:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbgHaHOh (ORCPT ); Mon, 31 Aug 2020 03:14:37 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0B66C061573; Mon, 31 Aug 2020 00:14:37 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id mw10so2504611pjb.2; Mon, 31 Aug 2020 00:14:37 -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=Qf/Ds7SliWgzv5NoIx/3dyTk8Rlg5L8HmfFS8O3CFzI=; b=Q7NiY6Lo54t+MxTryHqdz/996gTuNhU806h4ECgn4Hml7E/rPHqg/dssepr/kGCmbA 6b7/QYGpWu+syPe7RSKXbgJEaokKcReRPg2TYgA+Y+PTCOjNiFMkSwowQ9msdHWZ49vB LlB1jIj10jHyy822to1hIhGGoxB/w0ffKcUWJ4jRceFlZ9vA6UJTEzSZejujXfWp5ykV /xAqzoBM0zqWDdzgUpUL8pxUVjJGXqqkklNy9CW3L/GndEW7IkxYAbweNWzh2i8p3zL3 IO/1LUhqjEenzu54G6qWfB+1ZnjW9p3x/+2YuTZ6XfhP/rFnMsodJUtpwIA0a2narvlb oFQQ== 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=Qf/Ds7SliWgzv5NoIx/3dyTk8Rlg5L8HmfFS8O3CFzI=; b=Zt8Id/G75sCM/1k1+w6ybNwS/GFGlWK9eceWUxluGiakmyh124ad9v1xyGxOj0SCB5 jt/4xi98n6zajWAMurmXF+7ISRZgyAoEo48rnKGZlhB6PeuMeOH0ZuXzkjyPxMHm88K0 /KCV0flgRZxT6Bv0eH8Lyek3dCCKmu15QqGbWR0R/Jtk2sXS+/ZJlAoIeUEFtlMRAgeY yLk4ETykXrPahS73W19bk2WhusBU5pOob6siA8fjjumKfhj6nHDZSNXbysKjkMkRzmmC L7NjrngIgjQ+8JDct8+QqPTYuFxlFov3Vz+tg/7k53S/NFllNTSlD5i/CGzGv8/nhkUj omyA== X-Gm-Message-State: AOAM531VugAQae3tpWJh66hy765QVjoDaDBEkdPauWCyqSTrPhA37hYn DrE+4ZYOgy2RXnN0DtTDwds= X-Received: by 2002:a17:90a:448e:: with SMTP id t14mr161196pjg.59.1598858077482; Mon, 31 Aug 2020 00:14:37 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([103.206.191.6]) by smtp.gmail.com with ESMTPSA id s67sm7173587pfs.117.2020.08.31.00.14.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Aug 2020 00:14:37 -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: 0/2] Fix TC35894 gpio interrupt bug Date: Mon, 31 Aug 2020 15:14:31 +0800 Message-Id: <1598858073-5285-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 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 | 12 +++++++++++- include/linux/mfd/tc3589x.h | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) -- 2.7.4