Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp923301ybg; Wed, 29 Jul 2020 00:56:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaC4ShRUO4mm9I/kUD+3pW8NXaYp2/6jWEfQmU7B7qH62zsVj8RcMP3R8uWV5ZdbhKZrXs X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr15785405ejb.405.1596009360297; Wed, 29 Jul 2020 00:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596009360; cv=none; d=google.com; s=arc-20160816; b=zxnTH/QqT9j319SenPq0lFfi7Cnn2OgNuKRutAl6Y6N37+K/EyrTP1jem74Xdj+8zX el8jhdgz2v5z//OBQllu0s3YCWDBHRdeDG7zZCg+qEBGCiCJnUui8m0J2bG2IxEvM5f4 hAjnyX8zXq3hVr7GguttpG5QCR4YPA32y4b7O3jePM+C3vasqI4Wo/EegSMOKbPpFoAu a3/1T1GBIgixe/7deo1b2f8jn1iV8kWxhJbGyqMPgcT7FGIG735E9vzzxBRPmISnWdGM 6dRTqyHltOfcmvVe1oOfw0tQdeHkgJta2Rw+hE++QAzRv18lmdQsCaQ70F07KVDP155h KVRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5oOe0qmTZLviGnW6+CCeAZxw7U46iqq5sSCnsh+gYQg=; b=HBmAzByYhOOvSsB/Rpbkz/gkMZTE2g0dk33I2+iB+N2DeBPUC9EPC1kCj82O+jKkQ0 OpVweR4ZUcQvefdgEdZI7wDIPJGFuTzlecYB8v8tr/vstw3ctuNeZhgcQYQEp/Q3xfy3 pEpCVd3uAvM2Vo/OCqpPdRMhrUze0yyIEy6qxy0fJMuONhDsQTtL8YrRSlU2pj9apH7w RfK+5jbHQV0xXjVgwFybW6CIhKSQ61fKWpfeWMki4simQGi9ELtk+Kzqxrvh/8Hsg8ps FyOwthx2vroGBtZOn+rgZ1Nc1k3xbKfwpG2NuSlhPRUUJP+RNJ+H97jdQGQzPXCJQA9+ +kuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 r14si701350ejb.283.2020.07.29.00.55.29; Wed, 29 Jul 2020 00:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgG2HzY (ORCPT + 99 others); Wed, 29 Jul 2020 03:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgG2HzX (ORCPT ); Wed, 29 Jul 2020 03:55:23 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CC5DC061794 for ; Wed, 29 Jul 2020 00:55:23 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0gvj-0007OG-1C; Wed, 29 Jul 2020 09:55:15 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1k0gvh-00055i-Ur; Wed, 29 Jul 2020 09:55:13 +0200 Date: Wed, 29 Jul 2020 09:55:13 +0200 From: Marco Felsch To: Horia =?utf-8?Q?Geant=C4=83?= Cc: Herbert Xu , Dmitry Torokhov , "David S. Miller" , Rob Herring , Shawn Guo , =?iso-8859-1?Q?Andr=E9?= Draszik , Robin Gong , Anson Huang , Fabio Estevam , Aymen Sghaier , Adam Ford , linux-input@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP Linux Team Subject: Re: [PATCH v3 3/3] Input: snvs_pwrkey - only IRQ_HANDLED for our own events Message-ID: <20200729075513.ckjnhfv3dxuesvsi@pengutronix.de> References: <20200723074314.3304-1-horia.geanta@nxp.com> <20200723074314.3304-4-horia.geanta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200723074314.3304-4-horia.geanta@nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:41:32 up 256 days, 23:00, 248 users, load average: 0.19, 0.11, 0.09 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, On 20-07-23 10:43, Horia Geantă wrote: > From: André Draszik > > The snvs_pwrkey shares the SNVS LPSR status register with the snvs_rtc. > > This driver here should only return IRQ_HANDLED if the status register > indicates that the event we're handling in the irq handler was genuinely > intended for this driver. Otheriwse the interrupt subsystem will > assume the interrupt was handled successfully even though it wasn't > at all. After checking the RM and the imx6qdl.dtsi I'm not very sure that this is right since the snvs-powerkey has a seperate irq-line. So we can be sure that this irq is for us. If this is the case we don't need to check the SNVS_LPSR_REG instead we only need to clear it. Regards, Marco