Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp114068pxb; Tue, 2 Feb 2021 00:14:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNecy/I/zougY+NJtAX8iB2ISUxK/7oAlS7X2NddxADZ2zjx73+wypiIcYUvlFRvdPQmoN X-Received: by 2002:aa7:c906:: with SMTP id b6mr4620274edt.194.1612253673431; Tue, 02 Feb 2021 00:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612253673; cv=none; d=google.com; s=arc-20160816; b=MTVp197UtvYfBHASHinyfdJ4QmOIlmxoG9qsr+yPi7ZWS4LdkJGpqizTa+01+y6jRn YyAUJj+JktndRY/n3KjgJjN2FDO71erY/6k78IxxVgx7mGuTZ1fYmVke2T4LGzzhkXea pLPF5k1iWrgflvdUFi4uBZL5APEoc2N9q12BYlp4+aVa3lfKvqmchaBqA9KoexpC8ysC RbCPB1YQO3rUAUnFEs2yRFcCFKVcpjdBLbcUz5OLkmw33Bk/RXVSVXMhlRzEEJGirFcK pcZ74LGmd7AQQAJb9BAIRK2ChNnHkV3naCEhBbrVvl4R9etFHZUYONz44ks1DOX6ruXZ f0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UtGszIkdg9WNOOknjAzF5cpVs9oSS/XOJFgkzx2VHUg=; b=bGOyOGylRelyP9Mw+EBKDk4LmcsyhQFoApu+t6ir+p81xCT6K6ixXbHFcD1mwhc2hF HJ6d84Q5OXjQLLfk3txifA5iX9Ba6PUlpbUPk7BIiUPz74jtmWd7UX6pFrCdSsGlXGGH Y1ZuFTXt9NqJ2hDt6u7koYJ2M4aPGVU33Xqi4IFj7IAG7Ayd8xSD/vtBB7PBR5RKMVLa 8T9rL4KxiSp4K5LmYgGC+hqUgpl2xz46hy1zI1hwCPkPj1/58Tql2lugCn2tKQQz3wSz vVFqlI2SNmkKYkEJg9ZC5TZr0LsRK+qMn3ZMPxlbmjx32+3BCdXyoWhaigrBQM45GJve tTKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DWN6+ht8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si1823348edp.33.2021.02.02.00.14.02; Tue, 02 Feb 2021 00:14:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DWN6+ht8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbhBBINR (ORCPT + 99 others); Tue, 2 Feb 2021 03:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhBBINO (ORCPT ); Tue, 2 Feb 2021 03:13:14 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95BC0C061573 for ; Tue, 2 Feb 2021 00:12:33 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id f16so1484333wmq.5 for ; Tue, 02 Feb 2021 00:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=UtGszIkdg9WNOOknjAzF5cpVs9oSS/XOJFgkzx2VHUg=; b=DWN6+ht8i7YxICH5WPY4Cq+8/qwpbhSgZPyufefIPTt+K/e7HDwyILEXei5zzE6utZ J89zy4PAL1yr44hqZv6NRlr67CEhTVlVYQWW1nIY0PR3b5rCVKnv9Z7mA3c/X9R7X9Hm ISaA5oEgnfyy8WU0F5NhUg1wJeHn3T1uPCgk5b9Lb3qkoVF2lIqa7aBomkVS9mtx+eVG LbkeOZkbyHSEK9Ra5XLCwj2j6klrFM8QUd24Rp0vATaS+YgVj3hOLbiXow8d6Gc3uZ0Y XVm8ScrYKlctL2Tv5UhKpL2Cbw8/5owsxjLcUqG7NejUjryL0QjCYxbDqp45SlYrJiIp O+jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=UtGszIkdg9WNOOknjAzF5cpVs9oSS/XOJFgkzx2VHUg=; b=iw1neGDDS6lG8bERhZ5jKh+ZbBkahenqqRj6/ggeXV67k1NEKY0BYFpyt6r80XCvtE PAVTZQmjBYUbMnTYkWgiTYWNR7Onf1QiVQtzWFGP4RsdmumJvwOr0mnLhBpJjkyVpwbH deKSXUxZy11pkZfpjyQGP032ufq5VDLlOc2AQ48h03yZ7T2QtMD1OvDPC3CHBJFUhjG6 FBhEzzOPfBOB4vhEvEvK3vsfsqnz55QWCpyqj7pu/LBvR8U0oMO9xGqXAeSfbwghyiI6 CJPRb4kloV557qEBabGfufHI92mJViSE+edlRUqSt3/tWH9EoKaUQLu1gbMJZnXVrxq9 GniQ== X-Gm-Message-State: AOAM531k8SzVgb2lfF992zPMOfvQvjhaI3/TYAO424lQit2RWvww+3xG WiJCMjJiKcTa8MDIHlmyHtPcDA== X-Received: by 2002:a1c:68d4:: with SMTP id d203mr97951wmc.153.1612253552331; Tue, 02 Feb 2021 00:12:32 -0800 (PST) Received: from dell ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id y18sm29352427wrt.19.2021.02.02.00.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 00:12:31 -0800 (PST) Date: Tue, 2 Feb 2021 08:12:29 +0000 From: Lee Jones To: Andre Przywara Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Icenowy Zheng , Rob Herring , =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= , Shuosheng Huang , Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v5 06/20] mfd: axp20x: Allow AXP chips without interrupt lines Message-ID: <20210202081229.GW4774@dell> References: <20210127172500.13356-1-andre.przywara@arm.com> <20210127172500.13356-7-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210127172500.13356-7-andre.przywara@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Jan 2021, Andre Przywara wrote: > Currently the AXP chip requires to have its IRQ line connected to some > interrupt controller, and will fail probing when this is not the case. > > On a new Allwinner SoC (H616) there is no NMI pin anymore, and at > least one board does not connect the AXP's IRQ pin to anything else, > so the interrupt functionality of the AXP chip is simply not available. > > Check whether the interrupt line number returned by the platform code is > valid, before trying to register the irqchip. If not, we skip this > registration, to avoid the driver to bail out completely. > > Signed-off-by: Andre Przywara > --- > drivers/mfd/axp20x.c | 17 +++++++++++------ > 1 file changed, 11 insertions(+), 6 deletions(-) For my own reference (apply this as-is to your sign-off block): Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog