Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24239477rwd; Sat, 1 Jul 2023 15:48:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxddbW8Gb2sMjXjwf2+65QNUBqmAvKevt8lZvHOaRM7TEzZ+9VbZ/ANNUIU1McoQP+uLsX X-Received: by 2002:a17:903:11d1:b0:1aa:d971:4623 with SMTP id q17-20020a17090311d100b001aad9714623mr7660834plh.38.1688251711377; Sat, 01 Jul 2023 15:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688251711; cv=none; d=google.com; s=arc-20160816; b=bC4qZ+Md4uxXDRwzVtbVyImFsogD+hj+2GjPWilz4D7WNfEXKgBid+lStGr1LtwbhB YnxFc75SwQ0VTmlRXwavc2iIDM/CfZQ31CrSwHZ2iKFxTtXRLDP8YWfEk+22gUhFWeRy ks05/LqP6a6MKtyB9dwWLmntQv+3rcGqX82wInRkQBbf+vMlnZXkNEdEowKs8RPD/H1U Y0dbWTPIBxoXtpJvpkgFovMUCDXUWCXvCEhcebO2VQl2QHrgUwhq3zDzSoCjyHqi6DXI WTjWyDtSrG6de7gAr6MeBIi4NmcLIZTabOCNf/YsAtH6j7x0KPkhvGYhpdhg+X9C7pD/ by1w== 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=aNT+gGft12BfYIdNaF797cPbj08SwdIbd2wcB4+Y1P0=; fh=KBJrKMUp2CdpuzUrNGM791tx4J3msum4usH5VL4HbKk=; b=noaWkcZrT7wRV3usUyqKZXPDrhOv/jWLfoMcHtibnsdpuc0TQETz9vSyCunTDuzDR4 hXv38n9P+hFUtSTgZYpaBqfz95YY0o/5fJpNDZXf0+zPGOySCHbCfOlq3BDiNvpP87eu SHoiCs2OQh70tLUqzYiKmr908Dom4S0cM7HHejySVWhBFnua90Gz/AmEgQWUxwnI8hZv IcQcwjcTP6scCZz4RGZDVeLCgSA6BF6NdLQzNkyZWQSurXcNpQteLjoUWmoud+QE/Ykz 4aK9ctY/ibg0IVlvz6IDJc4IiQ8WNsWAG+eD/eAhdGHqHGcTXpXyfdBgqqjvRvwgf/I+ Hb5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2DLhD7yl; 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 o16-20020a170902d4d000b001b530ede2besi16296287plg.614.2023.07.01.15.48.19; Sat, 01 Jul 2023 15:48:31 -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=2DLhD7yl; 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 S229862AbjGAWUa (ORCPT + 99 others); Sat, 1 Jul 2023 18:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjGAWU3 (ORCPT ); Sat, 1 Jul 2023 18:20:29 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 232C71AC; Sat, 1 Jul 2023 15:20:27 -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:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=aNT+gGft12BfYIdNaF797cPbj08SwdIbd2wcB4+Y1P0=; b=2DLhD7ylKYE6Zcp7pp4P0723wG ljgabZpZ4nYDZPGrv9bs3H9D32DAR2p3wv6az2uoYVjg9D+wLfeJL+kj6VSfot0pKg+GCdqAxBtKi 2ROgEMqHG4HJETr+P5YwI9sB08vjN72d4A0LBWopSLwSWTRbhQaRNF2y431fdbjQBuHOmljVETueg hUVqk0OOFcq8krBgEdZSoO1WKLOFXTpbsShQ4cSOBTj3w3lS1Dh3wPvbu+iXbzMr1b5tXrbF/UXNO SOXq46d8bB8rRBpY6jkE4aKLFxkT3CuakwlZvUmTZMX42PlHWZz/BC6vp7x33aDQR0F4bdPu5Vqvc Z+Hz5JQg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qFix1-006isr-0h; Sat, 01 Jul 2023 22:20:19 +0000 Message-ID: <4416a125-534e-345b-65a9-26b2c075890f@infradead.org> Date: Sat, 1 Jul 2023 15:20:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols Content-Language: en-US To: Javier Martinez Canillas , linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Geert Uytterhoeven , Arnd Bergmann , Andy Shevchenko , Borislav Petkov , Daniel Vetter , Dave Hansen , Greg Kroah-Hartman , "H. Peter Anvin" , Helge Deller , Ingo Molnar , Sam Ravnborg , Thomas Gleixner , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, x86@kernel.org References: <20230701214503.550549-1-javierm@redhat.com> <20230701214503.550549-2-javierm@redhat.com> From: Randy Dunlap In-Reply-To: <20230701214503.550549-2-javierm@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 Hi, Does this series apply on top of the previous series or on what? On 7/1/23 14:44, Javier Martinez Canillas wrote: > Currently the CONFIG_FB option has to be enabled even if no legacy fbdev > drivers are needed (e.g: only to have support for framebuffer consoles). > > The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB > and so it can only be enabled if that dependency is enabled as well. > > That means fbdev drivers have to be explicitly disabled if users want to > enable CONFIG_FB, only to use fbcon and/or the DRM fbdev emulation layer. > > This patch introduces a non-visible CONFIG_FB_CORE symbol that could be > enabled just to have core support needed for CONFIG_DRM_FBDEV_EMULATION, > allowing CONFIG_FB to be disabled (and automatically disabling all the > fbdev drivers). > > Signed-off-by: Javier Martinez Canillas > --- > > Changes in v2: > - Keep "depends on FB" for FB_DDC, FB_HECUBA, FB_SVGALIB, FB_MACMODES, > FB_BACKLIGHT, FB_MODE_HELPERS and FB_TILEBLITTING (Arnd Bergmann). > - Don't change the fb.o object name (Arnd Bergmann). > - Make FB_CORE a non-visible Kconfig symbol instead (Thomas Zimmermann). > > arch/x86/Makefile | 2 +- > arch/x86/video/Makefile | 2 +- > drivers/video/console/Kconfig | 2 +- > drivers/video/fbdev/Kconfig | 40 +++++++++++++++++++------------ > drivers/video/fbdev/core/Makefile | 2 +- > 5 files changed, 29 insertions(+), 19 deletions(-) > > diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig > index cecf15418632..da6f7d588f17 100644 > --- a/drivers/video/fbdev/Kconfig > +++ b/drivers/video/fbdev/Kconfig > @@ -6,8 +6,12 @@ > config FB_NOTIFY > bool > > +menuconfig FB_CORE > + tristate "Core support for frame buffer devices" > + I could be reading this incorrectly, but FB_CORE does not appear to be a non-visible Kconfig symbol here. > menuconfig FB > - tristate "Support for frame buffer devices" > + tristate "Support for frame buffer device drivers" > + select FB_CORE > select FB_NOTIFY > select VIDEO_CMDLINE > help thanks. -- ~Randy