Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp562484rdd; Tue, 9 Jan 2024 12:20:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIWWJO80GEhTpED5vpkrDqxA+07khkC6xHPoTMVyySIFQtXUFYB4A+qEej9bpUjYCaOi+e X-Received: by 2002:a17:902:e80d:b0:1d0:6ffd:8367 with SMTP id u13-20020a170902e80d00b001d06ffd8367mr4033877plg.114.1704831635468; Tue, 09 Jan 2024 12:20:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704831635; cv=none; d=google.com; s=arc-20160816; b=NlPlJ95yLMv8sdkAI9lAXyAgV8o2MbzWAkTufajuXof7pKwSwEp9VF6w7/3C7sH3DR V9bcVqAVVKYSBmkihaDrrsgPRvBvOtXdiDPhtcIMn34gLz+IhX8o1zeV8K4N+cVVlgMu fET/89kS7+Xfkq4uY+Lx9gQO+ni6WM3j8ZiqxeBP5r5fSeM/+swL07scjd8jl0XllSKy VRZCSG70T6miABRZ61yj7TrjKnXVumg/Yo1QGZeKoLQp+LQ8ytjF9d9DTqjjV5j+GKOL H1ahRYT5cpc5BV6Bh4KehRes3mclAr2shEs6WSOlWTEiXASlwtGRzCPkktmaQl3BEiOh DHIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=DlYxPCHAYd6STqeLclpo+vdtfpOUSl4elB7ysJ3G/b8=; fh=Uzfa/e7dB6LDQIBUQEKP0Y1zh43RI6p4tbh1yiDqGtk=; b=ibSndB3PoLPw9GcdecC7OnSplIZu1GQCl4A9SQQoZOU3K1wcxIBdM9YBN2kDXfu+D6 6+3Q9tHDn8rOyMKaJCrmO0yiFImSkdyyiLG0L/r1KAQGVvb5RIVXBK1gWLw7pCg0m4rt 9pDYxrDluWWsCE8we278JuXZExbS+d0AZRL4TlatTpTc+IyuAotHfkOMP4OrwcIbcew+ fCq+2f3keTwuNnLNwVKdZtshsXGRfzcsQPqyV8yid+71xUBJeEflMhyXWEFdMmywXrZQ kUmNTm90R+3z+ys64Ot9MfXalPup4lpwXa6hDj3OgenIv6JJ4MUKtcWejIf5Ck60jlGv U0+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SYYyc37K; spf=pass (google.com: domain of linux-kernel+bounces-21385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l10-20020a170902f68a00b001d5457db81dsi2014513plg.649.2024.01.09.12.20.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 12:20:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SYYyc37K; spf=pass (google.com: domain of linux-kernel+bounces-21385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AC9B62832B5 for ; Tue, 9 Jan 2024 20:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A5153D963; Tue, 9 Jan 2024 20:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SYYyc37K" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAD953D57C for ; Tue, 9 Jan 2024 20:19:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40e461c1f44so28442895e9.3 for ; Tue, 09 Jan 2024 12:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704831592; x=1705436392; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=DlYxPCHAYd6STqeLclpo+vdtfpOUSl4elB7ysJ3G/b8=; b=SYYyc37Ky9i8Pww6G3lhD0UPAzdLykKaRIhYXljhexTBzGY1xBk/cbdX9yWZBNBxVb IW5pc/bd2NAQ02hunKE2/W0bJGNPMqgDwxqT3QPBtL3UuoR96Kf74GLRzwkfgDYfQ2ZO pk5vmgd0kBReJKvo/fj6QShBOfT4rymznzwY9t4UH+r22RXwz/S5dJT5/sb43mLSzFrd DB1ZYjwPUrbJQhivWBwpzLWT8azg+YX+t0YEVvoJYbE+cdDmfxhox/92lhp+2xv8vhU4 0nI5BvW1Kyz/f2vGLbEGzoagDYuh39Pigg+jnOLTI/okYMBf1qID61Gajl0L6yTG7whT JtJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704831592; x=1705436392; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DlYxPCHAYd6STqeLclpo+vdtfpOUSl4elB7ysJ3G/b8=; b=Tl5+sOuybkIbpQ4z5y0j4xqUjit76Lrk1bw7o0gCv3VxorZ8FNTl02JTITKSmUTac6 FIAcK/YAY4jMuEFupn27EploWAhItPULox0gNHSS8lCO9eu6dDJgpcZV+aoKkgAGiDSq zYzqb7E85+GMlHc2bxdrs25C/JPudl3tmtDvp3iSo9/PoEzbfcgG6qDomdE1oGGn9ZSP xF91lyjk+mFtiwUkCgYMiVM2hubbQKFcSNOtON4zbE8Zv9M+QYImhMAMQCGQCqkC2r5p RWd2LufhzhY/r+QFYRvWZE5qWQz9TWRxoW8jhfM0rNL9vTCfVdg7F6Q1cpo0lgPir949 /sUg== X-Gm-Message-State: AOJu0Yxo9UttWtlCFQJMnXUkHy+iBdtmCQe5eaUw5aMYJ5TnNSVIbYG/ E5SahbcYse4orGEX+JTci6U= X-Received: by 2002:a05:600c:205a:b0:40e:46e1:e3e9 with SMTP id p26-20020a05600c205a00b0040e46e1e3e9mr1923451wmg.122.1704831591554; Tue, 09 Jan 2024 12:19:51 -0800 (PST) Received: from jernej-laptop.localnet (213-161-3-116.dynamic.telemach.net. [213.161.3.116]) by smtp.gmail.com with ESMTPSA id n33-20020a05600c3ba100b0040e398f8cafsm4740297wms.31.2024.01.09.12.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 12:19:51 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= 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, Andre Przywara , Jianzhang Mai Subject: Re: [PATCH] mfd: sun4i-gpadc: adaptation interrupt number Date: Tue, 09 Jan 2024 21:19:48 +0100 Message-ID: <3201556.5fSG56mABF@jernej-laptop> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Dne sreda, 27. december 2023 ob 03:01:17 CET je Fuyao Kashizuku napisal(a): > The identifiers are used as IRQ resource numbers, where 0 is treated > specially. > > This fixes sun4i-gpadc-iio probe failed when request irq. > > The backstack: > WARNING: CPU: 3 PID: 1 at drivers/base/platform.c:451 > __platform_get_irq_byname+0xb8/0xc4 > 0 is an invalid IRQ number > Modules linked in: > CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc6 #9 > Hardware name: Allwinner sun8i Family > unwind_backtrace > show_stack > dump_stack_lvl > __warn > warn_slowpath_fmt > __platform_get_irq_byname > platform_get_irq_byname > sun4i_irq_init > sun4i_gpadc_probe > platform_probe > really_probe > __driver_probe_device > driver_probe_device > __driver_attach > bus_for_each_dev > bus_add_driver > driver_register > do_one_initcall > do_initcall_level > do_initcalls > kernel_init_freeable > kernel_init > > Log reports: > sun4i-gpadc-iio sun6i-a31-gpadc-iio.0: error -EINVAL: IRQ FIFO_DATA_PENDING > not found > sun4i-gpadc-iio: probe of sun6i-a31-gpadc-iio.0 failed with error -22 > > Signed-off-by: Fuyao Kashizuku Acked-by: Jernej Skrabec Best regards, Jernej > --- > Changes in v2: > - Fix the commit message. > - Add the backstack. > - Add the log reports. > - Use the correct full name and email address. > - Correct the subsystem to mfd. > - Link to v1: https://lore.kernel.org/lkml/YwdhTlk+9h+9Mrwm@scg/ > > 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 >