Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23323986rwd; Fri, 30 Jun 2023 23:15:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWQaf2OuXOFewHbtiutvLCh6K6Rjl7NjmwMSnWLBPOPB9NAYRPCCNxurGQyoBMbALhn+zs X-Received: by 2002:a17:90a:199:b0:25b:bae6:3c67 with SMTP id 25-20020a17090a019900b0025bbae63c67mr4581083pjc.43.1688192155466; Fri, 30 Jun 2023 23:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688192155; cv=none; d=google.com; s=arc-20160816; b=auwfU7b9hIIHtL6jeFgsdP6gumFxfGKVFGQuPk6MTBUP5/Il7ut/E2mi1Z+X0JgY33 ihsIyryoiclyWKGlqAvlZBPD/HSct4KnIlwFlRoPP0Ys3gpm95ygId+MfL3mfHS7fvxM 3Oc84lYpawaseFEW6a22Pr9KGG7C29Z3J3uF/qyXnoMc9F2n23g52g3TT8amuuzrPDK+ GIvHXBH9rUmErXTu/RKMGSF0FM4b6KiElRkugrGqqxBLNNQMY7EgKxBVvaVR7tHrn8FY uF+VXHKCYdlC3f0vZ+Gi0HN10NlmyuxYiWCPIljBKSvJ3hwmL04vFPte/ByJe/qDni0a 6Bkw== 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 :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=gsaHjVQr2zvDdc7XvtO8GxLsgjI16sNGgoHw1T72M/A=; fh=Jp/Ubk/zpdxrmvN+jxCrfFNRm2sMykr6OmlYOUnDZYA=; b=SRAS4Q16f1ZLga8FoSIBRZtOPnBWyHSz4ZgO9ftjZ5ON6NipLhEKaHgYDPSXYLgZ1M 8ec86gLxmjj50QG/rIMDCt6Z//sjlhlJ/SS9YxnWdsKGztowPbOgdi0jAuMyNad3hVng 5Kwrc92RyFKpvm0HyvHxmuBz440BA+vxr+W87DzWB4lEVpjnJUeEBi7HBWwZyYyrVEQ1 uu7k7lAGu1ZtkydO60CPaloXum3pHIjbwQF1ScYTlQZLZv7ZBumnq/qNYA41c7j7xQHZ jdwwzH+1t6ud5vRB4G9POo+xiTjBLK2uMtI38qSRb4l0D3u9KyH9Y7l3ftkf8ahOVuXn RJjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=un+mTFpR; 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 1-20020a630101000000b005578c6a767esi13659976pgb.885.2023.06.30.23.15.43; Fri, 30 Jun 2023 23:15:55 -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=bombadil.20210309 header.b=un+mTFpR; 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 S229547AbjGAFqY (ORCPT + 99 others); Sat, 1 Jul 2023 01:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjGAFqU (ORCPT ); Sat, 1 Jul 2023 01:46:20 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C774204 for ; Fri, 30 Jun 2023 22:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:Subject:From:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=gsaHjVQr2zvDdc7XvtO8GxLsgjI16sNGgoHw1T72M/A=; b=un+mTFpRvO+UwoZDlT4yNO1tZX EpDj2XElOeymR+dihhi1ZMsWTZGqDVrYrVJhmYui4wSi7MLYs17pTBwGG8PncOTTy2z9WiZu3dUHU MyyTf6ReN2UjHNZ0XTUzyCEFtZelN9mJi/UkIT/64J8tqojlt4dGQKn9Qtv9pE8d1SLXVsn1r/g13 gcbL/P7drLVh0cW73KUO5X2QyBUoRPYgJk+kuJBTGeCl2jb7tJADcdv/BMIU2tDpjpnLhffGv8sjL siUoaghAaFSxzEzTUXk9UqQOrJuwuKMj4Ha36ekw7MG7PGSMkSDIVTgamdwm4pMPhnHgLy94JnGn9 DdaHWgMA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qFTR1-005E3i-0E; Sat, 01 Jul 2023 05:46:15 +0000 Message-ID: Date: Fri, 30 Jun 2023 22:46:12 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Randy Dunlap Subject: Re: [PATCH] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: linux-kernel@vger.kernel.org, Kumar Gala , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org References: <20230516152854.22465-1-rdunlap@infradead.org> <20230516185400.urjy6y3kh4grbagt@pali> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 6/9/23 20:11, Randy Dunlap wrote: > Hi-- > > On 5/16/23 11:54, Pali Rohár wrote: >> On Tuesday 16 May 2023 08:28:54 Randy Dunlap wrote: >>> In a randconfig with CONFIG_SERIAL_CPM=m and >>> CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error: >>> ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined! >>> >>> Prevent the build error by allowing PPC_EARLY_DEBUG_CPM only when >>> SERIAL_CPM=y. >>> >>> Fixes: c374e00e17f1 ("[POWERPC] Add early debug console for CPM serial ports.") >>> Signed-off-by: Randy Dunlap >>> Cc: Scott Wood >>> Cc: Kumar Gala >>> Cc: "Pali Rohár" >>> Cc: Michael Ellerman >>> Cc: Nicholas Piggin >>> Cc: Christophe Leroy >>> Cc: linuxppc-dev@lists.ozlabs.org >> >> Looks good, >> >> Reviewed-by: Pali Rohár > > I'm still seeing this build error in linux-next even with other (PPC) CPM > patches applied. > Patchwork shows status as Superseded: http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20230516152854.22465-1-rdunlap@infradead.org/ but I don't understand why or by what. I'm going to resubmit the patch now. >> >>> --- >>> arch/powerpc/Kconfig.debug | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff -- a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug >>> --- a/arch/powerpc/Kconfig.debug >>> +++ b/arch/powerpc/Kconfig.debug >>> @@ -240,7 +240,7 @@ config PPC_EARLY_DEBUG_40x >>> >>> config PPC_EARLY_DEBUG_CPM >>> bool "Early serial debugging for Freescale CPM-based serial ports" >>> - depends on SERIAL_CPM >>> + depends on SERIAL_CPM=y >>> help >>> Select this to enable early debugging for Freescale chips >>> using a CPM-based serial port. This assumes that the bootwrapper > -- ~Randy