Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4062180pxk; Tue, 8 Sep 2020 09:42:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFY9RF6NgfYN9pKN+ME8Je5eqkO5oLKHeQ6EG5TOppGNXPzrKE4yqen3fCD4HWERqhbPTv X-Received: by 2002:a50:ee14:: with SMTP id g20mr16289104eds.32.1599583330869; Tue, 08 Sep 2020 09:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599583330; cv=none; d=google.com; s=arc-20160816; b=epUJiqPecwoOn9GbAcfQrUuxTC7rpY5y9DbKXjOWTpeoAQSkVlmJbsXtsKx8TExq1L CQjqMTzdYiSIkE2EGCrgCIrbv8bnZpYcKwvmy046s86Hcc4Ug/D0M1c/J9JXSZks6h4t S2UxG9qCvMJPFxf2JrcsV2flrxMhveuS+uy08lxckOyvKA3wJoMkyUVrU3IkSwviW7t8 +km0RjtL0a9jyL/1wPj+MBVAoNeeGo7p13XE0a/0zYhI35fsLo98StALJlMveZDx+dTk l22wvhzxb4OSu+iARtUFSxTU/I/0pdueaGopGWME6SUIBTwTBTucHRsoDzq6g/ETCjLy NWQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8M8FQZb2HgpFZLZz+2kHkv7PQ6hJJGgLuAcXeYJHXoc=; b=q3nPlRZJfJyIO8pRJPICtLmc2UJlW0XsRfgST82UyKk1F1NIWrXNYMT37sd/RLmWiO aMQC7xU2qby1rDjv3sZTZFtcbOxuo/kE4zl4CfpV3UkxpCaSiOkneOEuNyl8uSm9QwdK v2/PvApeIMyExg9Ukngb3qRw3eo8OU0rWZkhHGeqbx3Su2hVGPlCXfKWk+A4yyd2vOB9 nx0EOAAdbWrETdc74GQETWHUzAO1gEIiCBzPFc08ThE7HjP+cD9vI7B2NRuPV0FOZ2pP 8AyTJEoK9w2Pxq4eOLBQRSaLmeuATJfgZkW7cXjEUASwdrRJcL/xZfEOKLfoOdFiimjF mCSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AUJqw5Q5; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si99839ejq.737.2020.09.08.09.41.48; Tue, 08 Sep 2020 09:42:10 -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=@linaro.org header.s=google header.b=AUJqw5Q5; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731970AbgIHQlC (ORCPT + 99 others); Tue, 8 Sep 2020 12:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732052AbgIHQhR (ORCPT ); Tue, 8 Sep 2020 12:37:17 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5406C061A12 for ; Tue, 8 Sep 2020 07:04:19 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id s12so867986wrw.11 for ; Tue, 08 Sep 2020 07:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=8M8FQZb2HgpFZLZz+2kHkv7PQ6hJJGgLuAcXeYJHXoc=; b=AUJqw5Q5yIKjjHv+TlphEapfGqGOE84LTkY2zdyRmrMCZc4UN5YC2gkzDw8k0vGBgc Cs7Qk83LMgV1TESF82VJ5kAJMn0dMUMkUDY+W7j02XikANSGY+Q5vMIg1bXFdpVU702p JpMtWNealLQk01KqN+ZWJF9EN7XmeVpCS4XuBlniZDTYtXI3FFvIfpE7OunsxJOYAvkj OKfewt829N5WohHh7McC0bRqVQDay13XKTzmxsGafZIAawYUqLmaZ0ivQKWBlUoAMXEo 4D0NcBfydlPrudfK8LsP0K4eh5sKjdtBeSEV/jsf0BCwLordxeK93nP6TJ6FV7R5+i8w tvVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=8M8FQZb2HgpFZLZz+2kHkv7PQ6hJJGgLuAcXeYJHXoc=; b=ssYlj6hz13l6HtrgdAL3IkaWPIGcpM+KGnJb474hxuUgVYf7+U9sVFIKb1FbdV00QR BUPkazMT3pEd7JWW+kypO0lSqNOZg9uJnf4Pw4iMwoo1o9C+aOeZ4n3W9QdsAuqPrU9z WTo4trlERz9TBQcWo3Fp5XuVOZKmMs1M7ZIPV8cLf37v3i8d894SzKbXC8kowjksG5q2 5c090IRUi8XFq8DMpaZ2w/ajfXGkpxxRsRNomNwM2MFEvQhHhhBYT3Kf0yUhbmcpj7QB 3qhmzF21Mbn+T78Q10ghMiH+WHOQoIbcu6ejtMMDoFlN/0cpBCQqTCGuHnAwYPocNpfv 3Pcg== X-Gm-Message-State: AOAM5326chP3HDfw9HC0EeL3blj/zdVyPZoMBF9LLJ5x3k+8r5h4OG4B HoISqOLCJ62bUHUOxK0VgPKCTw== X-Received: by 2002:adf:e8ce:: with SMTP id k14mr28758614wrn.394.1599573858090; Tue, 08 Sep 2020 07:04:18 -0700 (PDT) Received: from dell ([91.110.221.179]) by smtp.gmail.com with ESMTPSA id i11sm11288646wre.32.2020.09.08.07.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 07:04:17 -0700 (PDT) Date: Tue, 8 Sep 2020 15:04:15 +0100 From: Lee Jones To: dillon.minfei@gmail.com Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH: V2 2/2] gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq Message-ID: <20200908140415.GW4400@dell> References: <1599118222-18990-1-git-send-email-dillon.minfei@gmail.com> <1599118222-18990-3-git-send-email-dillon.minfei@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1599118222-18990-3-git-send-email-dillon.minfei@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 03 Sep 2020, dillon.minfei@gmail.com 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 > --- > > V1 -> V2: > Add DIRECTx register configuration to active general purpose gpio mode. > > drivers/gpio/gpio-tc3589x.c | 18 ++++++++++++++++-- > include/linux/mfd/tc3589x.h | 6 ++++++ Acked-by: Lee Jones -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog