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 C4E4BCDB465 for ; Sat, 14 Oct 2023 16:48:34 +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:References:In-Reply-To: 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: List-Owner; bh=gTVInJF4YOkbuszEgzcIHPgfZAX8qnFvjVWHXWF4lws=; b=DxIGSZHZ/B3Qo5 srNYzCcNeRYrGKzFBTShxcefSDyoEsVp4eBx6R5p6QGL/gh4T+cgHt8skPO3opRYlEyFu4AdKTNOW SnFJBLqPq7ktExL55yNTrngm7EMdyQTwUj73tNAS0rwqjtGu1CuKKVf1H68qSnLi83cAeLH4wOHZW JIe1UMNcKXz266NLrLN8MxI6X+lmMRdvRY5VAw+f/6dUyWrYw8+aAT/Hdhaaa41BhQDtTR93+vvMH a7UduBCrtWDGFQD6sePlx09WoxjPofUaBrTWhfEKZm9cyEKAKT+70SBsQjftC8ZaedlBVzKWObaQy 6cA5jE9iJJVbB4+ZVFAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qrho5-005aUV-0J; Sat, 14 Oct 2023 16:48:05 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qrho1-005aTk-2T for linux-arm-kernel@lists.infradead.org; Sat, 14 Oct 2023 16:48:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 9371BB8069A; Sat, 14 Oct 2023 16:47:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 839A1C433C7; Sat, 14 Oct 2023 16:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697302071; bh=p0QZPd55n1b0eM1vkHrUjjg0PeS6F3StvKDBfTZlgUs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p/ElRRcbgr63Bpjq2zpqJ5ENJ8Kj2DkjogYdFJhaK22B2uRSvr4x9rZ9FBKC9zlUF hggpLv2w9VB3DCzyyKMwqVDRU+Bs3zDkkxoEQK/F79wKMODMB8+88NKdY7tV+97CHc bXbZQZLdA2x2Mz230b4biLhifdt9U59YM2KDEgLnjS1tGc05IxJDztt62V7XRJG+Xn uXW3IPbeDBinfeyNb2GHNbuVkPQYZ1sATPMdMn7QJ+nF/qQC9ZfvglpM+dxS/mj32W zzqbDNOHftZAJ8foBy8sy50tdxMDwKDriV9jbB3H1Z3fLmteL5x/3TTVpeg5Ipn/20 IorFhNNWy1QMA== Date: Sat, 14 Oct 2023 17:48:07 +0100 From: Jonathan Cameron To: Marek Szyprowski Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Lars-Peter Clausen , Krzysztof Kozlowski , Alim Akhtar , Arnd Bergmann Subject: Re: [PATCH] iio: exynos-adc: request second interupt only when touchscreen mode is used Message-ID: <20231014174807.353de76f@jic23-huawei> In-Reply-To: <20231009101412.916922-1-m.szyprowski@samsung.com> References: <20231009101412.916922-1-m.szyprowski@samsung.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231014_094802_779245_0EEF4D71 X-CRM114-Status: GOOD ( 19.62 ) 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 On Mon, 9 Oct 2023 12:14:12 +0200 Marek Szyprowski wrote: > Second interrupt is needed only when touchscreen mode is used, so don't > request it unconditionally. This removes the following annoying warning > during boot: > > exynos-adc 14d10000.adc: error -ENXIO: IRQ index 1 not found > > Fixes: 2bb8ad9b44c5 ("iio: exynos-adc: add experimental touchscreen support") > Signed-off-by: Marek Szyprowski Applied to the fixes-togreg branch of iio.git and marked for stable. Timing wise, this might just end up going in during the merge window now. Thanks, Jonathan > --- > drivers/iio/adc/exynos_adc.c | 24 ++++++++++++++---------- > 1 file changed, 14 insertions(+), 10 deletions(-) > > diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c > index eb7a2dd59517..614de9644800 100644 > --- a/drivers/iio/adc/exynos_adc.c > +++ b/drivers/iio/adc/exynos_adc.c > @@ -826,16 +826,26 @@ static int exynos_adc_probe(struct platform_device *pdev) > } > } > > + /* leave out any TS related code if unreachable */ > + if (IS_REACHABLE(CONFIG_INPUT)) { > + has_ts = of_property_read_bool(pdev->dev.of_node, > + "has-touchscreen") || pdata; > + } > + > irq = platform_get_irq(pdev, 0); > if (irq < 0) > return irq; > info->irq = irq; > > - irq = platform_get_irq(pdev, 1); > - if (irq == -EPROBE_DEFER) > - return irq; > + if (has_ts) { > + irq = platform_get_irq(pdev, 1); > + if (irq == -EPROBE_DEFER) > + return irq; > > - info->tsirq = irq; > + info->tsirq = irq; > + } else { > + info->tsirq = -1; > + } > > info->dev = &pdev->dev; > > @@ -900,12 +910,6 @@ static int exynos_adc_probe(struct platform_device *pdev) > if (info->data->init_hw) > info->data->init_hw(info); > > - /* leave out any TS related code if unreachable */ > - if (IS_REACHABLE(CONFIG_INPUT)) { > - has_ts = of_property_read_bool(pdev->dev.of_node, > - "has-touchscreen") || pdata; > - } > - > if (pdata) > info->delay = pdata->delay; > else _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel