Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp182888pxk; Wed, 9 Sep 2020 02:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGxYNASDZm9rVuaMd1dfDQ3o+xI5BbjL2mZrc0A9BHK9qrEyNDQQ6PNgB/gacZOvN/5NlC X-Received: by 2002:a05:6402:28d:: with SMTP id l13mr3272921edv.293.1599644115842; Wed, 09 Sep 2020 02:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599644115; cv=none; d=google.com; s=arc-20160816; b=SZPMo+FtZVE5ywMTaH+V/GeIQtmxsSSLA+pJ2h87aXHkyrkRA5yR+OslhQwE6WBa+g 1C5cCNcQY7RVdg7lYTESgN7Uw09+9p9TH1DdYLDKmnlqgz+eGIYuO6Wd3EAJEc1Zi4Z2 qNBRKzEXOzGpWpb7bcEo2a9J6h/34aFhI0lafcCBVhC6ycbq7UdUuPKKIM8xiZdJLw3m KXw7z4/+dhaaZNfU0Zd9dRPQTYpZBd48ILeh11uR8Yb1mZX4CygASAxClWi8N/EsKRRz palu123Pu9wIu6XF1ti6N7hgb/Oiaph95WEvAJ7bekG45W++Fd1shREkabOrt77qtb4T bw7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=esyRenDJEgBolb6Hqrvg5tsBvHFlf/kzCPfFdPG5zpI=; b=fnM14hBTiijrPJtkfo2cB9SVkt569m/+z0H7XEhMo4b223OOAmErVZQ5aWPiKEOilG aegbJ+71KMmIs0OCtMY3SrGzrB0V7H0bIElaYwMHOK7IqSIGadc79sdVfl8vrYCw6aiT b+lH0ROGcq6xSRwGbp7Yc7OLNY4MfcG2m27M/iaQQspYnIPR0md0V1ZCI1LUJUZMaUbd DK+t4NJ+VIL8vrOPlgJ4JtjC9yCCMFJG6rHGIa80PYa99uF1+x6/fB8fpgQb4tBp41Ps 5btQ5f3BwXU+W60GSNvAkSavNITP9rRnkA/Ho9HtTWw/ScN4UuJasEElwZpMl88nlgJ0 dpvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mWJios1m; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si1060480edm.239.2020.09.09.02.34.52; Wed, 09 Sep 2020 02:35:15 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mWJios1m; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728611AbgIIJeG (ORCPT + 99 others); Wed, 9 Sep 2020 05:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbgIIJeB (ORCPT ); Wed, 9 Sep 2020 05:34:01 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2A5C061573 for ; Wed, 9 Sep 2020 02:34:01 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id z22so2543666ejl.7 for ; Wed, 09 Sep 2020 02:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=esyRenDJEgBolb6Hqrvg5tsBvHFlf/kzCPfFdPG5zpI=; b=mWJios1mOJgKkAkA4eRp40n/dOQeC2Zy+Hj976vMfmjXU9at16C6zJMNITV7PVOEGv gweG96JsvUKzoQd8a2VQE+YGOq56qzXwq9PJHJdl7+l6+Evbng1hF9qw4RBUz3zpiFQD juslqkdb3WKNd9ape3HDGLenKlj2NwwQ3bxWLZA+HQCGm2CPhXKoqPGHNHIfN+Pz71Jp l9b2gRB3C2bnlW+qNxF6hBuOfOKqcQwJV1WiV6yWb3ELIaalYPmq/Ph8QgLRMRlpffRr PajB+8LOtTMgpXSAQuOQ6T4Fhdk1IYLRApg75bKMPEAkX+bwUv4hD+LYB70FDCWii/ea XpYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=esyRenDJEgBolb6Hqrvg5tsBvHFlf/kzCPfFdPG5zpI=; b=iRwDej/oZJn3cD8uPxFHnxJh8gt28cCbHmCjruZZuVkdkUH2FjmP4C8ITdQrXAZB+K ENdEc66vhrjN0ZCpNN2k97puUPfuxFrLWfuzI+YWfdjwysaNlB9RgaAK3xAGX96hvwHS w0LcMEQJ8tEO7Lsn74alMYkW2eSk9tQY+/Qz0F6Xtzegd56YWqwZm6KOZOcxog7bLqe+ fnQBb0mnVH3xPOxpcZ0rWh31zrEsSGcoVku1+ThskCuXDdk01RDCjbLyCQJg1qaQA4w4 5A1Zycd1y/B6PkTQLla7s65F+GyoxNMZrjdPOVXmmyR6+6c0IqRQbqjWnRSYZMPC6x+q FnRA== X-Gm-Message-State: AOAM531Nyz5g4PVs+1m3N9kxvESRZFbwyIaz/FRnehs5GPjynyggY+qp oy83BASI+85mW2KSed4e+6a3iF4tjtMdxEsss+nLVQ== X-Received: by 2002:a17:906:c1c3:: with SMTP id bw3mr2677260ejb.516.1599644040095; Wed, 09 Sep 2020 02:34:00 -0700 (PDT) MIME-Version: 1.0 References: <1599118222-18990-1-git-send-email-dillon.minfei@gmail.com> <1599118222-18990-3-git-send-email-dillon.minfei@gmail.com> In-Reply-To: <1599118222-18990-3-git-send-email-dillon.minfei@gmail.com> From: Bartosz Golaszewski Date: Wed, 9 Sep 2020 11:33:49 +0200 Message-ID: Subject: Re: [PATCH: V2 2/2] gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq To: dillon.minfei@gmail.com Cc: Linus Walleij , Lee Jones , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 3, 2020 at 9:30 AM wrote: > > From: dillon min > > On tc35894, have to disable direct keypad interrupts to make > it as general purpose interrupts functionality work. > if not, after chip reset, IRQST(0x91) will always 0x20, > IRQN always low level, can't be clear. > > Configure DIRECTx to enable general purpose gpio mode, > else read GPIOMISx register always zero in irq routine. > > verified on tc35894, need more test on other tc3589x. > > Signed-off-by: dillon min > --- Queued for v5.10. Thanks! Bartosz