From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9820DC3DA6E for ; Wed, 20 Dec 2023 07:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=30DmJBB+QBQnphhtVrYZETMnLgg+cIuHwyKupcikoqo=; b=LZMV5v71Nx7RL9 eLGpQfiOVy1DoCFTafixRPClyAbXPPEaakQSobXKS3HtrL1+8YvwgYaqGwBLyJ0bOb+6Zh2lJITlH T2vFhLnNiONUjQbFEdWJz8stcg0VhWN2BdppVU+bTVSsEXCmTYX4lv6b+eWjUtAuUgZTg6jPDxnZ9 XTrxlaGwXymlmgpAGiMUgOuVnUKzcweldwJqlN6dncqPplBij20NRLs6YeQ4LsSQ3nJHN094KSqJT 0UN5Cc/sZYhz/jTAxIoReh0mvCaG2kaNS+79iBz++LvHP6eCcfuLT6EXvza7TS2FZLkw8iPeSNgtb 9QerTBuCQQ5DB11NE/lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFqvN-00GP2X-2z; Wed, 20 Dec 2023 07:23:25 +0000 Received: from out28-87.mail.aliyun.com ([115.124.28.87]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFqvK-00GP1i-2N for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2023 07:23:24 +0000 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.261246|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.028598-0.00112938-0.970273;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047209;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.Voiv2io_1703056997; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.Voiv2io_1703056997) by smtp.aliyun-inc.com; Wed, 20 Dec 2023 15:23:18 +0800 Date: Wed, 20 Dec 2023 15:23:17 +0800 From: fuyao To: Lee Jones , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Maxime Ripard , maijianzhang Subject: [PATCH RESEND] iio: adc: sun4i-gpadc-iio: adaptation interrupt number Message-ID: Mail-Followup-To: Lee Jones , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Maxime Ripard , maijianzhang MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Received: from out20-218.mail.aliyun.com (out20-218.mail.aliyun.com [115.124.20.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 103EC2F28 for ; Thu, 25 Aug 2022 12:18:23 +0000 (UTC) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3045855|-1;BR=01201311R131S89rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.025949-0.00105542-0.972996;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047190;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.P.m81RD_1661428046; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.P.m81RD_1661428046) by smtp.aliyun-inc.com; Thu, 25 Aug 2022 19:47:26 +0800 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev Organization: work_work_work Organization: work_work_work X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231219_232322_943321_8E1D1263 X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org __platform_get_irq_byname determinies whether the interrupt number is 0 and returns EINVAL. Signed-off-by: fuyao Acked-by: Jernej Skrabec --- include/linux/mfd/sun4i-gpadc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h index ea0ccf33a459..021f820f9d52 100644 --- a/include/linux/mfd/sun4i-gpadc.h +++ b/include/linux/mfd/sun4i-gpadc.h @@ -81,8 +81,8 @@ #define SUN4I_GPADC_TEMP_DATA 0x20 #define SUN4I_GPADC_DATA 0x24 -#define SUN4I_GPADC_IRQ_FIFO_DATA 0 -#define SUN4I_GPADC_IRQ_TEMP_DATA 1 +#define SUN4I_GPADC_IRQ_FIFO_DATA 1 +#define SUN4I_GPADC_IRQ_TEMP_DATA 2 /* 10s delay before suspending the IP */ #define SUN4I_GPADC_AUTOSUSPEND_DELAY 10000 -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel