Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3926636imu; Mon, 12 Nov 2018 02:57:20 -0800 (PST) X-Google-Smtp-Source: AJdET5cOrz0BK7doIg0WZDAS478i6jPUHD8T06TXE1Q07c3wZmS3Yf2URfrMRLa2H+AnvO4FHgaO X-Received: by 2002:a17:902:64c1:: with SMTP id y1-v6mr482261pli.210.1542020240728; Mon, 12 Nov 2018 02:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542020240; cv=none; d=google.com; s=arc-20160816; b=0eY5u3JAjWnRS3YNGTI3/BfKyolHIvKEfcAciZ99gmGdu+sgYW4qXj47qlCR4EdDDQ 6QzndaEQsvNGsWVXSEvq88fru0k8lf1D7wLWGFMO/YAHGFSegOfruuV+i+j8aTpngH7R ypADdQR4Wp1whVuoJYRVgIKXc7kMkwy97A3nluuL/N+O1oCAlgHxaa7o0YLd/+A0Eske sB1pw1NlyF+tT2iSRLnskiQKu7LWRDjETDsIXaQqkckIMd6jMCxBMweQ8oiilcg0Xv4M KzrxjTCD6ylImiPzInzcff0JMo9AysK88hjyyrPH5bDFqIPMck2Vo9vDqUvqt1doRFhL 3LCQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=53aWlq7lDGB5hbipWGZyKnl2k2rb8bG7JqDTL+DK9Sk=; b=IHWoVoEXiQ5fxBW7njAYgOMtnjB7ZyQM4d/tQFr9QC9SH1CWBMrNgvZM1MiPIl1cbl igLVOKdQGsb6v/LY9BdCZfCthrp0JgIwN/EmvMfk9rjwaHEWyOhs0A/z0549dxnimv6f E6zHisnmT6uFIYErfcR8JALCcz6GwAejYKjUlr9qe1ZmuBcGEnfOqGPOyWQdG6gdK1rc Fc3TzvaZunfo/VN52p/9C3B9vuSPLzfRVQlWX3kmNznwGI2CHxDUnZ+qEs0kUVF+Une3 KKPTvi2woNopGHTHeBRlHu2FaOqw8ts71olQijMYDoIHXoqyWGBD0Eg42Y1STSEKV5vy 4/oQ== 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 m16-v6si20258888pfd.160.2018.11.12.02.57.05; Mon, 12 Nov 2018 02:57:20 -0800 (PST) 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 S1729133AbeKLUtY (ORCPT + 99 others); Mon, 12 Nov 2018 15:49:24 -0500 Received: from mail.bootlin.com ([62.4.15.54]:42939 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728054AbeKLUtY (ORCPT ); Mon, 12 Nov 2018 15:49:24 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 27A5C207BD; Mon, 12 Nov 2018 11:56:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 52A41206D8; Mon, 12 Nov 2018 11:56:28 +0100 (CET) Date: Mon, 12 Nov 2018 11:56:28 +0100 From: Boris Brezillon To: Schrempf Frieder Cc: Olof Johansson , "linux-mtd@lists.infradead.org" , "linux-spi@vger.kernel.org" , David Woodhouse , "Brian Norris" , Mark Vasut , Richard Weinberger , "miquel.raynal@bootlin.com" , Mark Brown , "david.wolfe@nxp.com" , Fabio Estevam , "prabhakar.kushwaha@nxp.com" , "yogeshnarayan.gaur@nxp.com" , "han.xu@nxp.com" , Shawn Guo , "frieder.schrempf@exceet.de" , Sascha Hauer , "Sascha Hauer" , "linux-imx@nxp.com" , Russell King , Arnd Bergmann , Alexandre TORGUE , Eric Anholt , Stefan Agner , Simon Horman , Tony Lindgren , Geert Uytterhoeven , Stefan Wahren , "yannick.fertre@st.com" , Linux ARM Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH v4 06/10] ARM: defconfig: Use the new FSL QSPI driver under the SPI framework Message-ID: <20181112115628.68a84b92@bbrezillon> In-Reply-To: References: <1541601809-16950-1-git-send-email-frieder.schrempf@kontron.de> <1541601809-16950-7-git-send-email-frieder.schrempf@kontron.de> <20181108093451.08dfe63e@bbrezillon> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Nov 2018 10:46:45 +0000 Schrempf Frieder wrote: > On 08.11.18 09:34, Boris Brezillon wrote: > > On Wed, 7 Nov 2018 16:36:13 +0000 > > Schrempf Frieder wrote: > > > >> Hi Olof, > >> > >> On 07.11.18 17:20, Olof Johansson wrote: > >>> On Wed, Nov 7, 2018 at 6:44 AM Frieder Schrempf > >>> wrote: > >>>> > >>>> From: Frieder Schrempf > >>>> > >>>> The new driver at spi/spi-fsl-qspi.c replaces the old SPI NOR driver > >>>> at mtd/fsl-quadspi.c. Switch to the new driver in the defconfigs. > >>>> > >>>> Signed-off-by: Frieder Schrempf > >>> > >>> Hi Frieder, > >>> > >>> This patch is part of a series that I didn't see the rest of, but in > >>> general we prefer to merge these through arm-soc even if the driver > >>> goes in through another tree. The way we'd prefer to handle it is that > >>> once the driver lands, we'll take the config option change to turn it > >>> on. To avoid our branches to break until both sides have landed, it > >>> might be a good idea to keep both drivers on for a short while (one > >>> release). > >>> > >>> So, I'm not going to ack this since we avoid taking defconfig changes > >>> through driver trees (these two defconfigs tend to churn a lot and we > >>> don't want to create merge conflicts where we don't have to), but > >>> we'll be happy to pick it up when the time comes. > >> > >> Ok, thank you for explaining the common practice. I will drop the config > >> changes for the next version and send it separately when the time is ready. > >> > >> Both the old driver and the new one use the same compatible strings for > >> probing. Wouldn't that cause problems if both drivers are enabled for a > >> while, or am I missing something? > > > > Or maybe we should not introduce a new Kconfig option and just reuse > > the old one. It probably requires re-ordering patches a bit (patch 1 > > should be moved after patch 5). Then you have 2 choices: > > > > 1/ merge patch 1 and 6 so that the new driver effectively replaces the > > old one but uses the same Kconfig option > > 2/ remove the ability to compile the old driver when the new one is > > introduced: remove the line from drivers/mtd/spi-nor Makefile and > > move the Kconfig entry from drivers/mtd/spi-nor/Kconfig to > > drivers/spi/Kconfig. And remove the old code in a separate patch > > > > I'm fine either way, but option #2 will probably make the patch > > introducing the new driver bigger and hurt readability. > > I think having both drivers in the tree for a while wouldn't be so bad. > So if any compatibility issues come up with the new driver, people can > still use the old one. Except that's not what happens in practice. Believe me, I tried this approach several times, and people keep using the old driver until they're forced to switch to the new one. So you actually don't address the problem, you just delay it a bit, and you'll have to fix regressions anyway. > > Therefore I think I will drop the patches that change the defconfig and > remove the old driver code and keep the different Kconfig options. And > maybe add an exclusive dependency in Kconfig, so both drivers can not be > enabled at the same time. > > Does this make sense? I'd really prefer to have the removal of the old driver in the same release the new driver is introduced but if that's not possible, let's have a clear plan, like "introduce new driver in release X, remove the old one in release X+1".