Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1583907pxb; Tue, 8 Feb 2022 23:07:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG3p0JqtrfJJ8KacmUhM0OFvaCIByY1sITFqhW/6bFCjeog1AKeB2kviyl5++qsPvFEd0g X-Received: by 2002:a05:6402:881:: with SMTP id e1mr986404edy.234.1644390463890; Tue, 08 Feb 2022 23:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644390463; cv=none; d=google.com; s=arc-20160816; b=KbX2EGxkLZu2RvjQhvDSnbs0c8M8VVUf+lYVxfaE1CPzHN6RJvSgaKWhAJu4C+ztW+ e34cNxkV7nDsVpo7MRQsEwHuubDBx6vzWPasPPE1OjSZS/ZKDvRQzb7zOF2kp0pjdvVh x6TpHlb6YZLaZzA/qq00fW5Ub7AyAF28V/kSbVd4/MHdYdjm781jvIb138mkkMdiIEpf wFi7hXtH4A789pxTUi/Yy05M2AfSXDYZoVTxhIWtJgRXLTwF+pk+204NIR0GqSZ6QMqN 0J5MbJYJeWdlxMMrXEG/AlKgpJ9AD8sm/ZIeDGOpI4CC8vMXgvLR9BAHJHx57j/PvP3X cGtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=xHru5TU5HhlnjFaOeSow4mUo8dMHot6Dpfmt0uhEuss=; b=JynUlsL6NP2F9No6V9XsjfggcVzaQksE/FkvI5DjwOWxZkmn6Wv5VTNksIC2D+Ybys 8bN+klBqGWNatcQ+GRZJ6T+ePgwpy3BhXSV1L0QeSoWkPpmb2nZQFEiD91CtCPLldJoS 4nrcncd81tgq5z6hwOaPpNYz7T9lTDtdMp6kIC3ypVtWNTQqUGv0KGd3w08xjMKksQDK sjuC4M6lvNsSRjpKYFwvxjlC1rS/2tQ4FLOF3KtWroBeH2mZDLArxCYPMVDGy1dp0ujh 4WTkTge6yPNm4S2HSh+9tYHpIykCmOD4tkbkgCqSdM2aHjhQPs0lp65EXmWVwgzsuIVI 0cWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt37si518400ejc.97.2022.02.08.23.07.19; Tue, 08 Feb 2022 23:07:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384558AbiBHSJQ (ORCPT + 99 others); Tue, 8 Feb 2022 13:09:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376333AbiBHSJO (ORCPT ); Tue, 8 Feb 2022 13:09:14 -0500 Received: from mx1.smtp.larsendata.com (mx1.smtp.larsendata.com [91.221.196.215]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F458C061578 for ; Tue, 8 Feb 2022 10:09:11 -0800 (PST) Received: from mail01.mxhotel.dk (mail01.mxhotel.dk [91.221.196.236]) by mx1.smtp.larsendata.com (Halon) with ESMTPS id 5c4c73a6-890a-11ec-b20b-0050568c148b; Tue, 08 Feb 2022 18:10:13 +0000 (UTC) Received: from ravnborg.org (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sam@ravnborg.org) by mail01.mxhotel.dk (Postfix) with ESMTPSA id 0DD9A194B43; Tue, 8 Feb 2022 19:09:08 +0100 (CET) Date: Tue, 8 Feb 2022 19:09:05 +0100 X-Report-Abuse-To: abuse@mxhotel.dk From: Sam Ravnborg To: DRI Development , linux-fbdev@vger.kernel.org, Du Cheng , Tetsuo Handa , Intel Graphics Development , LKML , Claudio Suarez , Greg Kroah-Hartman , Daniel Vetter , Helge Deller Subject: Re: [PATCH 06/21] fbcon: delete delayed loading code Message-ID: References: <20220131210552.482606-1-daniel.vetter@ffwll.ch> <20220131210552.482606-7-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Daniel, On Tue, Feb 08, 2022 at 02:42:25PM +0100, Daniel Vetter wrote: > On Thu, Feb 03, 2022 at 09:45:29PM +0100, Sam Ravnborg wrote: > > Hi Daniel, > > > > On Mon, Jan 31, 2022 at 10:05:37PM +0100, Daniel Vetter wrote: > > > Before > > > > > > commit 6104c37094e729f3d4ce65797002112735d49cd1 > > > Author: Daniel Vetter > > > Date: Tue Aug 1 17:32:07 2017 +0200 > > > > > > fbcon: Make fbcon a built-time depency for fbdev > > > > > > it was possible to load fbcon and fbdev drivers in any order, which > > > means that fbcon init had to handle the case where fbdev drivers where > > > already registered. > > > > > > This is no longer possible, hence delete that code. > > > > > > Note that the exit case is a bit more complex and will be done in a > > > separate patch. > > > > > > Signed-off-by: Daniel Vetter > > > Cc: Helge Deller > > > Cc: Daniel Vetter > > > Cc: Claudio Suarez > > > Cc: Greg Kroah-Hartman > > > Cc: Tetsuo Handa > > > Cc: Du Cheng > > > --- > > > drivers/video/fbdev/core/fbcon.c | 13 +------------ > > > 1 file changed, 1 insertion(+), 12 deletions(-) > > > > > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c > > > index 8f971de35885..814b648e8f09 100644 > > > --- a/drivers/video/fbdev/core/fbcon.c > > > +++ b/drivers/video/fbdev/core/fbcon.c > > > @@ -942,7 +942,7 @@ static const char *fbcon_startup(void) > > > return display_desc; > > > /* > > > * Instead of blindly using registered_fb[0], we use info_idx, set by > > > - * fb_console_init(); > > > + * fbcon_fb_registered(); > > > */ > > This comment change looks like it does not belong in this patch. > > Also, the comment is wrong as info_idx is set in several places. > > Like set_con2fb_map(), fbcon_remap_all(), and more. > > Yeah I can split this out into a separate patch, but I spotted this wrong > comment as part of reviewing this code change here - essentially you have > to check how fb_info for fbcon are registered and fbcon init happens to > validate that deleting the below code is correct. > > Ok if I put this explainer into the commit message, or do you want me to > split this out fully? Keep it and add my a-b Sam