From patchwork Sun Oct 30 05:56:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 13024869 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 C7E3DC38A02 for ; Sun, 30 Oct 2022 05:58:26 +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:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sz2+3eEhSf4DkdH+axEttTr8cwOOec3CjaXeK/TZOzU=; b=qNrDLV4X2rSTkv T/Qa2+gyCRscSVSP5HJs+66MVXWUTh/FprymClocqF5U1tocACvlkrBUqc/y4XA7pQfiePy5hLqvf P8SrEmi2o4fwdhpBma9F5dwBULt57h5nmIhrRDBJ6yidOZJVj6YYx31h9dMI2gJAipNUWs0gl+FyH LgFxkYwbmtqa577sUxuCI8b7GgMCPmWcVSTSMDDzVqKtZ01giyTHyCisuTrVLiJbpVBe5bDE0GkZn gNlV5SKAX2DRpCDsDIFPCGFn7gwZlhrOWo6mLkue7I7HPLA/344CiNbleZLYBiO1vj9+m3whvJ9ji /lOXATLKTXmzAMzD0n0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1op1JO-00D7EN-K0; Sun, 30 Oct 2022 05:56:46 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1op1JN-00D7EE-Ou; Sun, 30 Oct 2022 05:56:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=IdgBLCidrJrh45EYACucWTq5mCeQtdhp0+C2YN+BeY0=; b=abI5nb9mD6FQMxBTLwcGEDtYXf e3nMsih1b6Q360ge8nvSinJvhARbz+apAXjcyRXdilGNXGZOYBM9WNG3LHEhs5VoESpHifTo18lOO lmnt3NIauVMHus9+jBMVSNMCZK9ZrZMdJXsy6glbf0sj9q707Ca00RxOeCCx1EvUBEHRYlYe7yoSK kwkLDsEwTr32cGh+DZm1wOWfEqmxHmtH5WJVNEXL4O072kU9QkmwJpAszeWJlTotv6ldL4Q/nZ7FJ zehHVfnwhlr3KDICdemlcCqYZR4AmAY2800GByjOJtP0UPyD/azQ57xbATkDub9dvft9Ouxky9mmp xKlCKTlw==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1op1JO-002fp1-SG; Sun, 30 Oct 2022 05:56:47 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Nishanth Menon , Tero Kristo , Santosh Shilimkar , linux-arm-kernel@lists.infradead.org, Philipp Zabel Subject: [PATCH] reset: ti-sci: honor TI_SCI_PROTOCOL setting when not COMPILE_TEST Date: Sat, 29 Oct 2022 22:56:36 -0700 Message-Id: <20221030055636.3139-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There is a build error when COMPILE_TEST=y, TI_SCI_PROTOCOL=m, and RESET_TI_SCI=y: drivers/reset/reset-ti-sci.o: in function `ti_sci_reset_probe': reset-ti-sci.c:(.text+0x22c): undefined reference to `devm_ti_sci_get_handle' Fix this by making RESET_TI_SCI honor the Kconfig setting of TI_SCI_PROTOCOL when COMPILE_TEST is not set. When COMPILE_TEST is set, TI_SCI_PROTOCOL must be disabled (=n). Fixes: a6af504184c9 ("reset: ti-sci: Allow building under COMPILE_TEST") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Nishanth Menon Cc: Tero Kristo Cc: Santosh Shilimkar Cc: linux-arm-kernel@lists.infradead.org Cc: Philipp Zabel Reviewed-by: Nishanth Menon --- drivers/reset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/reset/Kconfig b/drivers/reset/Kconfig --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -257,7 +257,7 @@ config RESET_SUNXI config RESET_TI_SCI tristate "TI System Control Interface (TI-SCI) reset driver" - depends on TI_SCI_PROTOCOL || COMPILE_TEST + depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n) help This enables the reset driver support over TI System Control Interface available on some new TI's SoCs. If you wish to use reset resources