Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp1384267rwj; Sat, 29 Oct 2022 23:07:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HHSmi18ucD+vwPOyX/1N8cSvCIJEakC3yWWPgRO2cBw9EAZnDW0QitzEN4S9jb2sy4MaL X-Received: by 2002:a05:6a00:1412:b0:557:d887:2025 with SMTP id l18-20020a056a00141200b00557d8872025mr7592348pfu.39.1667110031576; Sat, 29 Oct 2022 23:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667110031; cv=none; d=google.com; s=arc-20160816; b=Z19em3oNvXTLaCy99iqWpQ3sNRwuF6F01L1m+BI4i0CII3rSsPx0IZcFltBBrMoqVl WXhBbl6YEfb3PC8m6jOojSwU8H22+d9kMnS7kpYxpGNOWvZwfVntrhiSjUnYf8UeUAKD KTXa3CSNj9SlhaMDYMY0Ts1ykvpc5OyzJM0F7Vj2sPVN8+gcQXhjw4YB9apNl8OnwMlG ZvA2t8ENFw4iC7GvvMDRkz6vMHJP1VvXNqe2CJyz0fM5FfXtHKyfM+J7Zoa1gnfqURlm SE/DiphezB6IuL0UeJ4zIyztNCEGIbtvDvygFtbUCNaQquJ7iETJ5kDZwxILv6CCpta1 qI7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IdgBLCidrJrh45EYACucWTq5mCeQtdhp0+C2YN+BeY0=; b=Z9r5TRsBFxTtV643FRqT2/XzWT2pQOBwzRzytk4sz68+6obLwL2bC13jcJGFqxWWyn MBMdVk980iuCtxZKSPBG9VwvdQLRf+hc19PY1/hD/S0jr+yAaqn2irvGzHfaRo191PMA IRtEhrVfN4wWHjboNMJV7JQb3D3M6QOO6B5Xaqe+4FmHIIprgJ+AnXHzSYVpCYZQSduv NF+DZjz4FCgpB3w7cN0yoluh0KuyFRMtbWjpQTUfk1FnDBJsZjsDvepeo1HhF+Dtbffq 6HDycMSjJHteQap3fpBsU8ou3iuM78w7WHIFA6Q7n2w1VCC655/L3WnzZdyFOeoc4nSW oBkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=abI5nb9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902f38200b00186a16f8d94si3716308ple.77.2022.10.29.23.06.45; Sat, 29 Oct 2022 23:07:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=abI5nb9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbiJ3F4v (ORCPT + 99 others); Sun, 30 Oct 2022 01:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiJ3F4t (ORCPT ); Sun, 30 Oct 2022 01:56:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF01BEE for ; Sat, 29 Oct 2022 22:56:47 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 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 --- 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