Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp394520rdb; Tue, 19 Dec 2023 23:21:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyGSEODx5wf9JcBMUqqf6tr6YaF6yr9OxNYFELAwKITnMlPstzoZtaNxddwqfRBUhfg4Gm X-Received: by 2002:a05:620a:3847:b0:77e:fba3:9d18 with SMTP id po7-20020a05620a384700b0077efba39d18mr20006784qkn.124.1703056892003; Tue, 19 Dec 2023 23:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703056891; cv=none; d=google.com; s=arc-20160816; b=LAhzvXi+7Inz+Gb8vuV2YTpjaFTbzpHRv0ISn+YmkdU4BvBxJk6H3BqobERk5CPnRM 7jsfi8d8lZpdb5GEI9RuVnOyXGsA2gPPsACH+itCsIQIUgX+CNW6Fg39NXo8eQW1it3u DDWs7S/PHV2taT6/vTZWCpDOxPX4Gcy/mxECOJNphNKXXbBshu3ypzqaglIbge2Nk153 PUnQRb8k5ja4tJaWjnmwdBV6WlR5MR0NGqsnCQILDu2djQKqGr7ZfUi5UANSW7V9A7ke I0sljb90+XbM+arNzP8vzph/Gq0Ps/bqOXyjFBFRmqjEJNJ/GeyZMtXnoTsHUx+qzWH0 iTPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:organization:precedence:in-reply-to :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:mail-followup-to:message-id:subject:cc:to:from :date; bh=Q2KA5I2VYb+rDVgRwsFYEigqcAdyEzu1OMBNVGUl/Zo=; fh=5iWUPXsfBnO6aQHh6JTsqPVCdFZ7UcCCbMKRFuZ84Ts=; b=kPRtmynxKMsSKVIwPrr3llIIvWjqgypRUj2o7TjS5bwuQLVjNEcJbJxlU8i7DGPQaE l5WfsNf0QiSdLr25PkXhAYHXY4h55WqF+UrNlYy6pse9WjS7J/OFsLOX47J10nNiQLH1 i3lpbtyCllOvKsdDuVU6GLz++HPsO/kK3tap2uRd31Aa4qmNcCDIxAlueIZJqIyv/57f 8AaCu5O+79SwdSBEdP3BfTv/AnsOHOOegwRIEGJ35GWmfotKGosluhr62ycCJGyKMGbq lYckvtkZbbvPiM542Rqtvu4hBMQf+K1PxjyM1KHemV7jM+P6+qJoSAQwgV4CHqEbLDf2 df8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cyg.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pq2-20020a05620a84c200b0077f0b5825e4si18475346qkn.379.2023.12.19.23.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 23:21:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cyg.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 98C2C1C21719 for ; Wed, 20 Dec 2023 07:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 664051CAB8; Wed, 20 Dec 2023 07:21:25 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out198-185.us.a.mail.aliyun.com (out198-185.us.a.mail.aliyun.com [47.90.198.185]) (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 A4C6B1CA8C for ; Wed, 20 Dec 2023 07:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=cyg.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sjterm.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.07450683|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_social|0.0367338-0.0107246-0.952542;FP=2195691681752430067|5|2|12|0|-1|-1|-1;HT=ay29a033018047211;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.Voipd4K_1703056552; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.Voipd4K_1703056552) by smtp.aliyun-inc.com; Wed, 20 Dec 2023 15:15:53 +0800 Date: Wed, 20 Dec 2023 15:15:52 +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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Organization: work_work_work Organization: work_work_work __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 -- CYG Technology 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 D7BEFC04AA5 for ; Thu, 25 Aug 2022 11:54:00 +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: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:In-Reply-To:References: List-Owner; bh=43HWo/ZUnCasly+ZDH2iZ6YziJoEl7DGgRHVq1AWHGA=; b=N4HqsZY4E2SL6r coTCsOX2hRzQ7B0a1T00J2VkAPl7AipXosk76WMzyfIWnLKRkW8uqqBXKpQ2sHn25CKHP+ZW5UpiD 6l25/vh+YIPuTKjxd22dXb3QWpmIObDbHRRIOZSAWMBva+k42rsgsfgRyYKOI/+fBRoqDqFZHrjV1 LbiROW7b0SqMq6vAWAjGQvRON+qQDsqqpadEY+j508ViyVZdDIB2TY1zdy6uTAc4QqMRmzUH2NP7W eSzjr4Kd1dtJMmykNtjjlIm/7IPwpXbHb72IdX1lzo27891mjNCP6V6fToGXw+s5RFS1qHaRuZ+XB 8g9p7pCDPqH/9eUb74/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRBPm-00D1Ka-Ur; Thu, 25 Aug 2022 11:52:51 +0000 Received: from out20-123.mail.aliyun.com ([115.124.20.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRBPk-00D1FB-2p for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2022 11:52:49 +0000 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 Date: Thu, 25 Aug 2022 19:47:26 +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] 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 Organization: work_work_work X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220825_045248_320501_10DAB7D1 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list 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 --- 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 -- Technology is exciting _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- CYG Technology.