From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E4CC1D6A9; Thu, 21 Dec 2023 15:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PFB8QSux" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5639C433C7; Thu, 21 Dec 2023 15:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703172415; bh=m3O9CScU6xqdwkvpQ3pWK3reUb7snyZyNRDnrg4G2nA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PFB8QSuxYGCoIVrL5jKjAjDJscJuC+Imt+qCV9X8AX2MnFCVfYSaOAMSn+3arG/YJ NpdPmFSH/jrXbIQuyQ28ztxvPn4Sn40mvLREKqyc1aJaTgO09wJbNDXHVRG2NSnkMd xZb7NXCkdugkPK3l15tbcCRSpNKilPJWWq5gqRvqSY1kkdqKwqOUACwluBvdfcl0fd 8rZ+EeXwP2hr62g8m9lhbC+932AQ8o3H6xznKTTS/DZ6j2tsmkvt6lI2Qznm4CiwoU QdFblIcPRCq802AKdcutMfucxqiMUqLgq77wpdTwVuSyAJ62QggJOq3UF/ezkpgq97 asdZ8fw3t4Lhw== Date: Thu, 21 Dec 2023 15:26:50 +0000 From: Lee Jones To: Andre Przywara Cc: fuyao , 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 Subject: Re: [PATCH RESEND] iio: adc: sun4i-gpadc-iio: adaptation interrupt number Message-ID: <20231221152650.GN10102@google.com> References: <20231220115412.65bbc8c7@donnerap.manchester.arm.com> <20231221152553.GM10102@google.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231221152553.GM10102@google.com> On Thu, 21 Dec 2023, Lee Jones wrote: > On Wed, 20 Dec 2023, Andre Przywara wrote: > > > On Wed, 20 Dec 2023 15:23:17 +0800 > > fuyao wrote: > > > > Hi, > > > > > __platform_get_irq_byname determinies whether the interrupt > > > number is 0 and returns EINVAL. > > > > can you please say what this fixes, exactly? Is something not working at > > the moment? Can you please provide parts of the error message? > > > > And maybe expand the explanation a bit more? For instance mention that the > > identifiers are used as IRQ resource numbers, where 0 is treated specially. > > > > Cheers, > > Andre > > > > > > > > Signed-off-by: fuyao > > You have to use your full real name as well. > > > > Acked-by: Jernej Skrabec > > > --- > > > include/linux/mfd/sun4i-gpadc.h | 4 ++-- Also the subject line is wrong. This doesn't have anything to do with IIO. > > > 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 > > > > -- > Lee Jones [李琼斯] -- Lee Jones [李琼斯]