Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1518261imm; Tue, 10 Jul 2018 03:18:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdiniKgM3ghfSVrHhAR+yQ9LQhg2xnOxWyJLwuRt/0cyOvoJmkb8rv6BF7EqoCRT0uZd1Do X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr24013133plo.88.1531217922370; Tue, 10 Jul 2018 03:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531217922; cv=none; d=google.com; s=arc-20160816; b=e+bl93aMFrDKW9f14p5wrbGIeitFpelrbJS+nPBllDGBs9oaJ+h2OZyXvk80txNfpB rLzKM/EPQYO2Tnor1SdcooDcoNNSrHxQFeIaFVQVf/oBt/TDiDbCSu4a596OXTl6L68C TF/+b+20B/twJVLmN4VLAOwGn+ccnMu93QHF5RmZ73oOJ5nv5J9h+43d0R7G8Y+ZDwCU q4TLWQceRu6i/xteCfP9A7RhxKlbd0FfPgu68avjpewA0FcgJpmuKvcagQ29g3OLoh34 bNDjyK3CWdwjZN63QGXSpjTFT9HuYbBETPifbCoLXOEBXsVECDx5dHKBu9AIBXtmtk4a ilqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=3ybGYC7o9xrvH886BXXZNtdiRnyDSK7P6vccp2SLdDM=; b=rmR0q7NYP8ZUOEcW1KpP1DRm587h19EEFU/4KgMahFpPzSEFL3Z7dg0OH3jJJ6r8D2 KEX4nzL2nHgyZEx6kvNmrvwCqW4dj/raQmznh/lCo3OgA6ULHtGuxaNLOzVi3PsnFLB8 Ls6xQfA+yWV939U/yOfCVYwklIfJ2HUA2JCul54OphVLv0ybVzSqMA8FYTntRAiFq297 CRNTv+84iJ0dDCq1UK+9Y0QH9PzPrZhOMrolXFgIcJ2o061weVC0J6evdolziZ0xGWVE L7qb5WN9aRJtgGisd1mXpPz1gmGePRBAqIqclydHyYIdn91sJp44d5NuYwqyqpq8V7eG zRfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f28-v6si18119432pfh.33.2018.07.10.03.18.26; Tue, 10 Jul 2018 03:18:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752001AbeGJKRm (ORCPT + 99 others); Tue, 10 Jul 2018 06:17:42 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:59724 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbeGJKRk (ORCPT ); Tue, 10 Jul 2018 06:17:40 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 41PynF6v28z1qx9S; Tue, 10 Jul 2018 12:17:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 41PynF4pDJz1qxFl; Tue, 10 Jul 2018 12:17:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Z8feycl0Fz5w; Tue, 10 Jul 2018 12:17:36 +0200 (CEST) X-Auth-Info: G9YdqR/N9N8DrBHtVzxPjpC7P+4i2Fhc+Bd91fqZ0U8= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 10 Jul 2018 12:17:35 +0200 (CEST) Subject: Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm To: Stefan Agner , Marek Vasut Cc: Leonard Crestez , festevam@gmail.com, shawnguo@kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, marcofrk@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, dl-linux-imx , kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org, l.stach@pengutronix.de References: <47ea7572011735b68a8a70f0e11bdf00cb2fd86a.1529091248.git.leonard.crestez@nxp.com> <07be6d9a85b6be655fc2b084be81d8bf9715b57a.camel@nxp.com> <638457fd-85da-8fec-d146-517c43f71813@denx.de> <6995fa4b-47a9-887b-5e4f-4284ca6a2c79@gmail.com> From: Marek Vasut Message-ID: <6fdba55b-0be6-9e28-d87a-43d876a1fd09@denx.de> Date: Tue, 10 Jul 2018 11:11:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/10/2018 11:06 AM, Stefan Agner wrote: > On 16.06.2018 01:32, Marek Vasut wrote: >> On 06/16/2018 12:42 AM, Leonard Crestez wrote: >>> On Fri, 2018-06-15 at 23:36 +0200, Marek Vasut wrote: >>>> On 06/15/2018 10:58 PM, Leonard Crestez wrote: >>>>> On Fri, 2018-06-15 at 16:47 -0300, Fabio Estevam wrote: >>>>>> On Fri, Jun 15, 2018 at 4:43 PM, Leonard Crestez >>>>>> wrote: >>> >>>>>>> The FBDEV driver uses the same name and both can't be registered at the >>>>>>> same time. Fix this by renaming the drm driver to mxsfb-drm >>>>>> >>>>>> Stefan sent the same patch a few days ago: >>>>> >>>>> In that thread there is a proposal for removing the old fbdev/mxsfb >>>>> driver entirely. >>>>> >>>>> That would break old DTBs, isn't this generally considered bad? Also, >>>>> are we sure the removal of fbdev/mxsfb wouldn't lose any features? >>>>> >>>>> What my series does is make both drivers work with the same kernel >>>>> image and turns the choice into a board-level dtb decision. Supporting >>>>> everything at once seems desirable to me and it allows for a very >>>>> smooth upgrade path. >>>> >>>> Having two drivers in the kernel with different set of bugs is always bad. >>>> >>>>> The old driver could be removed later, after all users are converted. >>>> >>>> Both drivers were in for long enough already. And let's be realistic, >>>> how many MX23/MX28 users of old DTs with new kernels are there who >>>> cannot update the DT as well ? >>> >>> Grepping for "display =" in arch/arm/boot/dts/imx* I see that old >>> bindings are also used by 3rd-party boards for imx6/7: >>> * imx6sx-nitrogen6sx >>> * imx6ul-geam >>> * imx6ul-isiot >>> * imx6ul-opos6uldev >>> * imx6ul-pico-hobbit >>> * imx6ul-tx6ul >>> * imx7d-nitrogen7 >> >> Er, yes, a handful of boards which could be updated :) >> >>> Converting everything might be quite a bit of work, and explicitly >>> supporting old bindings is also work. >> >> Does adding support for old bindings justify the effort invested ? I >> doubt so, it only adds more code to maintain. >> >>> It is very confusing that there is a whole set of displays for imx6/7 >>> which are supported by upstream but only with a non-default config. >>> While it is extremely common in the embedded field to have custom >>> configs the default one in the kernel should try to "just work". >>> >>> Couldn't this patch series be considered a bugfix? It was also >>> surprisingly small. >> >> I think it's just a workaround which allows you to postpone the real >> fix, and I don't like that. > > This is one of the situation where states quo is kinda the worst > situation. > > Currently imx_v6_v7_defconfig and mxs_defconfig actually still uses > CONFIG_FB_MXS. > > I understand that you'd rather prefer to move forward. I suggest we do > it in steps. > > In 4.19: > > - Change DRM driver.name to mxsfb-drm so we avoid conflicts for now But this will break mesa if it depends on mxsfb name for ie. etnaviv binding. > - Remove CONFIG_FB_MXS from imx_v6_v7_defconfig/mxs_defconfig now, and > only enable CONFIG_DRM_MXSFB=y > - Add (deprecated) to CONFIG_FB_MXS > > In 4.19/4.20: > - Fix the above device trees > > In 4.20/4.21: > - Remove FB_MXS > > Does that sound reasonable? If yes, I can send the patch set to do step > 1. Can you fix the DTs for 4.19 too ? -- Best regards, Marek Vasut