Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1765413pxb; Wed, 9 Feb 2022 04:07:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhu0dhLmWw8LtmAlts9qExfBbpEyacrdWUNOxyFw4wlp2clvBIaxuPUdat6PR7ka7xWENu X-Received: by 2002:a05:6a00:2350:: with SMTP id j16mr1948751pfj.78.1644408471398; Wed, 09 Feb 2022 04:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644408471; cv=none; d=google.com; s=arc-20160816; b=rP5KUkL7XFfd8ZdLiHWFVBWVk4ALenYJDJtkC8hTaGrN5PV+U0fAp+QlhWt5kCHoaB G35n2GGFGdu/YjvRGaT546QkVkQUsonhpv8/tDjIQ19GrMgV01iAzfYnZMlZpc61g5ad v7DT2h7lmiveZpGb4Pe1cdsTYrmqe81WfLBckltGbkVxCiDD//4eiKCKc7jzZ5/HMsNB nGsc+aSpkDQogT4/iQJuzCkAREDU+lGoC6gf+kDrPiedbQujVW7sSuvaIKW6vsEdTikE wOpBHpL/itZpgYhkE4EVPwosYfwo98mHV4e5FT32lqNrMxH7SGr/CbG+g5RkHwphNqnK k2ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8ci+zVgmKNSLQNQrrMPx52kulFJ3CPBS+SrN/VofHQk=; b=r0eQkipcHLu8r4dveXSH2dZjLfAMGq3QCH0f/dlPhnOmFgmLOGJ2yn7wgSUpv1o6i1 rhmTWwhfEKrejPHFSeT8DCNahqPwkQ3P35lihg0RRWvHCIpmQ9kwB347yGAm5I1TwoQx jWJXbkixRxcVIovqAfsQKOI6Vx+YhdT48YJ0Wp9fg8ue3hvTkNcJxQU1f7IDbGcyLYWv 4xheT+o3W/xJ/yU7nKR3dHOpu0l8BOz24j/akTbE1Cyc9wU6qoxW0OkN5VDhcbec/WQK Cn5fQ5wto4rYo867CspnmS6jlUTTxTYAL5C60uXL8+rLUB+pgyhQWL9oce8B/LFh92JL OfAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PsFTwW+B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n8si17486985plh.598.2022.02.09.04.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:07:51 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PsFTwW+B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DA98E0FBC26; Wed, 9 Feb 2022 02:06:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345924AbiBGJtr (ORCPT + 99 others); Mon, 7 Feb 2022 04:49:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236095AbiBGJpN (ORCPT ); Mon, 7 Feb 2022 04:45:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D59EBC043181; Mon, 7 Feb 2022 01:45:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8C3F1B810F7; Mon, 7 Feb 2022 09:45:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 919B0C004E1; Mon, 7 Feb 2022 09:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644227108; bh=SC/2SlU63pP9Mfmat6jclxxX8jCixi9ZXMl/X43zsPk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PsFTwW+BM2Mk8RCqQMVi5w+w3sjlZTVS3IHoxPnbk0VYHtd32RH2XI4CnHBhE/qir o6RNj/CjKHlw8ZpG9ZxnPou3yfqsCESJkBWOawAeZ56aZfqA93cxgnFCSMiGg82fPP dChoaEuCbahF7lkXlzsSAr/oE9DuGgs613jBNKZ6TMa6Cfx3U2wDwuIwn7sbxyj+2x N7eXuMcfW5TgucA914NNYG+rSzwXtaGM4lo7KhsAJLXr7ZnVsIGpHitAGtVlRTIajb Sz1r7+FfKh0yYX7moqJPsbgLBaR6iMpxtcQvDJuycYVJM+HFDLqvKdrN9RvNptzhEr s8M+jDY4H0yaw== Message-ID: Date: Mon, 7 Feb 2022 03:45:06 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] ARM: socfpga: fix missing RESET_CONTROLLER Content-Language: en-US To: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Nathan Chancellor , kernel test robot , stable@vger.kernel.org References: <20220207084404.212017-1-krzysztof.kozlowski@canonical.com> From: Dinh Nguyen In-Reply-To: <20220207084404.212017-1-krzysztof.kozlowski@canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/22 02:44, Krzysztof Kozlowski wrote: > The SocFPGA machine since commit b3ca9888f35f ("reset: socfpga: add an > early reset driver for SoCFPGA") uses reset controller, so it should > select RESET_CONTROLLER explicitly. Selecting ARCH_HAS_RESET_CONTROLLER > is not enough because it affects only default choice still allowing a > non-buildable configuration: > > /usr/bin/arm-linux-gnueabi-ld: arch/arm/mach-socfpga/socfpga.o: in function `socfpga_init_irq': > arch/arm/mach-socfpga/socfpga.c:56: undefined reference to `socfpga_reset_init' > > Reported-by: kernel test robot > Cc: > Fixes: b3ca9888f35f ("reset: socfpga: add an early reset driver for SoCFPGA") > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/mach-socfpga/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig > index 43ddec677c0b..594edf9bbea4 100644 > --- a/arch/arm/mach-socfpga/Kconfig > +++ b/arch/arm/mach-socfpga/Kconfig > @@ -2,6 +2,7 @@ > menuconfig ARCH_INTEL_SOCFPGA > bool "Altera SOCFPGA family" > depends on ARCH_MULTI_V7 > + select ARCH_HAS_RESET_CONTROLLER > select ARCH_SUPPORTS_BIG_ENDIAN > select ARM_AMBA > select ARM_GIC > @@ -18,6 +19,7 @@ menuconfig ARCH_INTEL_SOCFPGA > select PL310_ERRATA_727915 > select PL310_ERRATA_753970 if PL310 > select PL310_ERRATA_769419 > + select RESET_CONTROLLER > > if ARCH_INTEL_SOCFPGA > config SOCFPGA_SUSPEND Acked-By: Dinh Nguyen