| Message ID | 20190428204801.9578-5-jagan@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBHFDTDTAKGQEOZO4TCA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 081083F05A for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 28 Apr 2019 22:48:30 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id f7sf6141788pfd.7 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 28 Apr 2019 13:48:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556484508; cv=pass; d=google.com; s=arc-20160816; b=Ujn9y/lPLfvV1nPAGvIyg4GuqOALyUXVkFQ0VFg4ZP8ZeQWP5WvWrPKaJDflaiPGhs o2CaGtNz57Lg5A4Vt77BFCUI/R9vieoWzRVp28JulFc31db0tiFOjriZWi5jyqKRC0qM QI++V7JFhhQXNy2kj08A0coRK4xvGQJJi4duL68l1opHwtcF0tAhPeLXO8r29L0Nac91 0kD/sdFwL8lYT/M3dTSDwO4JQ/RVMrnjQHG7vQjfuSFve6TvG4FV2g+kYiEeYT7qpjXj FbLHaAJocfKdAHikWeN8Z11dkSKnFQsbd/Gc5Vh8gdpA7iaae+IDdxSpB9xeoIsuwkco 3EwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jXqlBVJI1gsRtfkFBXgzAH0WzEItXlGXgTek94A+2qs=; b=e/ObQVVMHMALw+y0aOTzmkPaWQa/tWoGoDq2CXgv/9+t5EEOvx075uVVTC83SGbc1F l7RLEl93N7lFx5D134YRID0CIlL4bk3ne456lPtMTDxjT/I2f3YZlDJR0FRItMDNNQR+ S/dK2jMP+ClUWkx61cH1yPgwKgq7BZtZC6zx4yK0tCbnz9BwbUF1ArByFeraEP6nvZ78 weVNsCuUKvObpehk7sPwPHn7heHnIhcEX9JjndmPr3jp4XI167Dj6QHJp4yYCU9FDkw5 RVNbx/gZj9JzpPGYIY1mTHWnK+IKZsqakGCgVf2VSIyDoKF1AWc1gneq9FjYSFPgSkag cfiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVU6jkF2; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=jXqlBVJI1gsRtfkFBXgzAH0WzEItXlGXgTek94A+2qs=; b=HkIw7/Tt3JVjSgC9dKhE5a5yVNMygNv5VIMWyb2s06v5+upQVOD8r8qwHq7PtQgJas dupTt9tPYFyrd/Tu1IhfoJx3vowW96+4rVsw/YOa5vystkeDk7l4SOOB0ieaOUMx3gMw 2uqOZtCAYLzFi/n7mNVpcUGEKa3wKn1O7H3qc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=jXqlBVJI1gsRtfkFBXgzAH0WzEItXlGXgTek94A+2qs=; b=RCS8ZXlIhUClsUXOxvuaDd5XObK9rBp0bumGz2xLJOYV8QujAIcWKivBeRu4b3+XUw jivBy6ECbCBZG06dYnPGmwGLOTGzPvgGQ7zs0AgJJKtJ0sqMHIXLoxyvNfRHkOjrOQ5H 9wLcbI7HghbCbY72ysusGvPIhnDK4Mztvn5CZy+OkMcmk7hsTCHE9F2009hGsvZT0jYQ r4tn7/Sn2ZPfryAnUb75t0lJ7gEX3+RSbkYRVnsv6rJq3VvELpZS7O4+eBhtC0iarv6T pbExaBWEI18Yd9G/GRFDL56qg6px6hd2PRsWmjJDf28PmpEUUhQeSgX8AeddnzjBrcFt JIhg== X-Gm-Message-State: APjAAAXEFNUUqKWaQdmxA1DUEDI0TVKz1njn4edU8XNA2Y6RHEmomyaH NGnQGnEnl6uS2xf+pcCf8csse3q7 X-Google-Smtp-Source: APXvYqyFotLvjuZPviiHX1pqV0SxRc4olcCauQC2GfhJoCNJCB4NE42wsNFz2YjDIbCVC7kVlJ+Xww== X-Received: by 2002:a63:e5a:: with SMTP id 26mr24081543pgo.405.1556484508831; Sun, 28 Apr 2019 13:48:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a7:: with SMTP id a36ls8397553pla.6.gmail; Sun, 28 Apr 2019 13:48:28 -0700 (PDT) X-Received: by 2002:a17:902:20cb:: with SMTP id v11mr58373021plg.324.1556484508482; Sun, 28 Apr 2019 13:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556484508; cv=none; d=google.com; s=arc-20160816; b=oKWhuECWl51VblJvwvC39N+dA1Nx3MhPm44Miq0d2gXhTcsHBkxVEG4czbpvrm0Mik 4gZDTEE5nZGuUy3tbyp/FhuyW5zD0oeumD4Ny5T1z2PSo6onw19VOJd7KrXxDq7uKosM hZ1g3r4Kgv6HSAmnPkJuqL+pbvFVjEjbruKUyH+lYPtHQu5TeumFK6tfCkh0wWF7n0Ez GPN4yVpn4Pir/cAPCUBdUTenhzHogyHtq/2NTztw1yXKLUCyVoJ96yYHlMaCsEB4sK5r WAsCcT4sGky4TZ341Vcn11NdGWiw1eSfmnSC2pzTmr/TDzB0F22jUfPSjVzcY6gaGqtX yHfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sUpM+IUccQ6jBCpQ6l56nTFoshrT0iGrzUcV2sSqW/s=; b=rfk7Xy8neUe0iDVbcFlVzaIjHLVjgT5c0oc79/p27uABtS8CSDm/2oSXZRDmajyTkz EEpF7aHjUN30bL9tMpRAmzcVHwLymA7FE2qzberQuem0hkaamZtbgB6VG8KX1LNZvdeW TPcC7Q/24s+NvcV7nihpZxUXBgxgSA/M+3py2q0gM9lLCfbiHlYLQPAj60jrqmKbPW/P QuX9po91T8J3xfGFmoGsOrPxQMrgkLBJ+/1t9p0iK6/E3/g0aIey7KdU5YyUv4WxlkCG Tz+7VK0WtwliEAqA8jqkN2LS3WnUpcLUxqRcXYUyRBvkkKK5/+rXMDVQqnFizGLkNx9G L/iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVU6jkF2; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 97sor23850921plc.23.2019.04.28.13.48.28 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 28 Apr 2019 13:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr50365134plp.291.1556484508218; Sun, 28 Apr 2019 13:48:28 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n1sm32208342pgv.19.2019.04.28.13.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:48:27 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Marek Vasut <marex@denx.de>, Fabio Estevam <fabio.estevam@nxp.com>, Michael Trimarchi <michael@amarulasolutions.com> Subject: [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN Date: Mon, 29 Apr 2019 02:17:57 +0530 Message-Id: <20190428204801.9578-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428204801.9578-1-jagan@amarulasolutions.com> References: <20190428204801.9578-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LVU6jkF2; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
[1/8] Kconfig: Update CONFIG_BROKEN help text
|
|
Commit Message
Jagan Teki
April 28, 2019, 8:47 p.m. UTC
Mark MXS_SPI has BROKEN, this so the resulting build shows
warning for broken configuration enabled and associated code
will remove in v2019.07 release.
Cc: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
drivers/spi/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On 4/28/19 10:47 PM, Jagan Teki wrote: > Mark MXS_SPI has BROKEN, this so the resulting build shows > warning for broken configuration enabled and associated code > will remove in v2019.07 release. But the code is not broken, it works fine, right ? > Cc: Marek Vasut <marex@denx.de> > Cc: Fabio Estevam <fabio.estevam@nxp.com> > Cc: Michael Trimarchi <michael@amarulasolutions.com> > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > --- > drivers/spi/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > index e196f64e2f..393382fee2 100644 > --- a/drivers/spi/Kconfig > +++ b/drivers/spi/Kconfig > @@ -377,6 +377,7 @@ config MXC_SPI > > config MXS_SPI > bool "MXS SPI Driver" > + select BROKEN > help > Enable the MXS SPI controller driver. This driver can be used > on the i.MX23 and i.MX28 SoCs. >
On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > > On 4/28/19 10:47 PM, Jagan Teki wrote: > > Mark MXS_SPI has BROKEN, this so the resulting build shows > > warning for broken configuration enabled and associated code > > will remove in v2019.07 release. > > But the code is not broken, it works fine, right ? Yes the code work fine, but dm conversion not done yet. Now the CONFIG_BROKEN can mark the driver configs which doesn't convert dm yet, so the associated code will drop wrt MIGRATION deadline (similar like what we showed on the Makefile before). It is something like caution, before dropping it as suggested Tom.
On 4/29/19 12:40 PM, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >> >> On 4/28/19 10:47 PM, Jagan Teki wrote: >>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>> warning for broken configuration enabled and associated code >>> will remove in v2019.07 release. >> >> But the code is not broken, it works fine, right ? > > Yes the code work fine, but dm conversion not done yet. Now the > CONFIG_BROKEN can mark the driver configs which doesn't convert dm That makes no sense, if the code works, it works and thus it is NOT broken. Find some other way to flag it as non-DM-converted, not this hack. > yet, so the associated code will drop wrt MIGRATION deadline (similar > like what we showed on the Makefile before). > > It is something like caution, before dropping it as suggested Tom. >
On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > > On 4/29/19 12:40 PM, Jagan Teki wrote: > > On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > >> > >> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>> warning for broken configuration enabled and associated code > >>> will remove in v2019.07 release. > >> > >> But the code is not broken, it works fine, right ? > > > > Yes the code work fine, but dm conversion not done yet. Now the > > CONFIG_BROKEN can mark the driver configs which doesn't convert dm > > That makes no sense, if the code works, it works and thus it is NOT > broken. Find some other way to flag it as non-DM-converted, not this hack. np, It depends on whether we consider non-dm code(for legacy SPI drivers) is broken or not, let Tom comment on this.
On 4/29/19 1:02 PM, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: >> >> On 4/29/19 12:40 PM, Jagan Teki wrote: >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >>>> >>>> On 4/28/19 10:47 PM, Jagan Teki wrote: >>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>>>> warning for broken configuration enabled and associated code >>>>> will remove in v2019.07 release. >>>> >>>> But the code is not broken, it works fine, right ? >>> >>> Yes the code work fine, but dm conversion not done yet. Now the >>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm >> >> That makes no sense, if the code works, it works and thus it is NOT >> broken. Find some other way to flag it as non-DM-converted, not this hack. > > np, It depends on whether we consider non-dm code(for legacy SPI > drivers) is broken or not, let Tom comment on this. Again, the code works, it's not broken. That's very clear. DM conversion is a separate matter, so let's not overload CONFIG_BROKEN for such things. The Makefile warning seems sufficient to me.
On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > On 4/29/19 1:02 PM, Jagan Teki wrote: > > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > >> > >> On 4/29/19 12:40 PM, Jagan Teki wrote: > >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > >>>> > >>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>>>> warning for broken configuration enabled and associated code > >>>>> will remove in v2019.07 release. > >>>> > >>>> But the code is not broken, it works fine, right ? > >>> > >>> Yes the code work fine, but dm conversion not done yet. Now the > >>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > >> > >> That makes no sense, if the code works, it works and thus it is NOT > >> broken. Find some other way to flag it as non-DM-converted, not this hack. > > > > np, It depends on whether we consider non-dm code(for legacy SPI > > drivers) is broken or not, let Tom comment on this. > > Again, the code works, it's not broken. That's very clear. > DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > for such things. The Makefile warning seems sufficient to me. The code is broken because it doesn't work with DM and is going to be removed due to lack of maintenance soon. My problem with this series, but I need to check that we can do what I want to do and still keep travis green, is have this (and the other non-converted and thus non-maintained drivers) depend on, not select BROKEN. The Makefile warnings tell people the code is going to be removed and I'm trying to have the window be: 1) LOUD warning about needing work 2) 1 release past those loud deadlines of the code there, but not built unless you enable BROKEN (as yes, I see code that's not updated to use DM as being broken) 3) Code removed. All that said, I continue to be open to delaying conversion / removal if we're having: - A discussion and proposed patches to do the conversion, but people need more time. The work is in progress, but people need time as it's not as easy to convert as hoped for various reasons. - A problem converting the driver to DM as it's highlighting some other problem within DM or hitting a size constraint or other problem. - Someone who is willing to do the DM work is just now seeing this. Yes, this is possible especially since our LOUD Makefile warnings are also easy enough to miss if you're just automating the build and not doing it manually. But I am not fine with: - Code that isn't converted AND - Code that no one seems to be converting AND - Code that no one says they are going to convert AND - The conversion deadline has past.
On 4/29/19 1:24 PM, Tom Rini wrote: > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: >> On 4/29/19 1:02 PM, Jagan Teki wrote: >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: >>>> >>>> On 4/29/19 12:40 PM, Jagan Teki wrote: >>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >>>>>> >>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: >>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>>>>>> warning for broken configuration enabled and associated code >>>>>>> will remove in v2019.07 release. >>>>>> >>>>>> But the code is not broken, it works fine, right ? >>>>> >>>>> Yes the code work fine, but dm conversion not done yet. Now the >>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm >>>> >>>> That makes no sense, if the code works, it works and thus it is NOT >>>> broken. Find some other way to flag it as non-DM-converted, not this hack. >>> >>> np, It depends on whether we consider non-dm code(for legacy SPI >>> drivers) is broken or not, let Tom comment on this. >> >> Again, the code works, it's not broken. That's very clear. >> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN >> for such things. The Makefile warning seems sufficient to me. > > The code is broken because it doesn't work with DM and is going to be > removed due to lack of maintenance soon. My problem with this series, > but I need to check that we can do what I want to do and still keep > travis green, is have this (and the other non-converted and thus > non-maintained drivers) depend on, not select BROKEN. > > The Makefile warnings tell people the code is going to be removed and > I'm trying to have the window be: > 1) LOUD warning about needing work > 2) 1 release past those loud deadlines of the code there, but not built > unless you enable BROKEN (as yes, I see code that's not updated to use > DM as being broken) > 3) Code removed. > > All that said, I continue to be open to delaying conversion / removal if > we're having: > - A discussion and proposed patches to do the conversion, but people > need more time. The work is in progress, but people need time as it's > not as easy to convert as hoped for various reasons. > - A problem converting the driver to DM as it's highlighting some other > problem within DM or hitting a size constraint or other problem. > - Someone who is willing to do the DM work is just now seeing this. > Yes, this is possible especially since our LOUD Makefile warnings are > also easy enough to miss if you're just automating the build and not > doing it manually. > > But I am not fine with: > - Code that isn't converted AND > - Code that no one seems to be converting AND > - Code that no one says they are going to convert AND > - The conversion deadline has past. Seems there was some offer from Amarula to convert it , no ?
Hi Marek On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut <marex@denx.de> wrote: > > On 4/29/19 1:24 PM, Tom Rini wrote: > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > >> On 4/29/19 1:02 PM, Jagan Teki wrote: > >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > >>>> > >>>> On 4/29/19 12:40 PM, Jagan Teki wrote: > >>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > >>>>>> > >>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>>>>>> warning for broken configuration enabled and associated code > >>>>>>> will remove in v2019.07 release. > >>>>>> > >>>>>> But the code is not broken, it works fine, right ? > >>>>> > >>>>> Yes the code work fine, but dm conversion not done yet. Now the > >>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > >>>> > >>>> That makes no sense, if the code works, it works and thus it is NOT > >>>> broken. Find some other way to flag it as non-DM-converted, not this hack. > >>> > >>> np, It depends on whether we consider non-dm code(for legacy SPI > >>> drivers) is broken or not, let Tom comment on this. > >> > >> Again, the code works, it's not broken. That's very clear. > >> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > >> for such things. The Makefile warning seems sufficient to me. > > > > The code is broken because it doesn't work with DM and is going to be > > removed due to lack of maintenance soon. My problem with this series, > > but I need to check that we can do what I want to do and still keep > > travis green, is have this (and the other non-converted and thus > > non-maintained drivers) depend on, not select BROKEN. > > > > The Makefile warnings tell people the code is going to be removed and > > I'm trying to have the window be: > > 1) LOUD warning about needing work > > 2) 1 release past those loud deadlines of the code there, but not built > > unless you enable BROKEN (as yes, I see code that's not updated to use > > DM as being broken) > > 3) Code removed. > > > > All that said, I continue to be open to delaying conversion / removal if > > we're having: > > - A discussion and proposed patches to do the conversion, but people > > need more time. The work is in progress, but people need time as it's > > not as easy to convert as hoped for various reasons. > > - A problem converting the driver to DM as it's highlighting some other > > problem within DM or hitting a size constraint or other problem. > > - Someone who is willing to do the DM work is just now seeing this. > > Yes, this is possible especially since our LOUD Makefile warnings are > > also easy enough to miss if you're just automating the build and not > > doing it manually. > > > > But I am not fine with: > > - Code that isn't converted AND > > - Code that no one seems to be converting AND > > - Code that no one says they are going to convert AND > > - The conversion deadline has past. > > Seems there was some offer from Amarula to convert it , no ? > we can do some job on imx28 because we have a board there. I have asked to mainline it Michael > -- > Best regards, > Marek Vasut
On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Marek > > On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut <marex@denx.de> wrote: > > > > On 4/29/19 1:24 PM, Tom Rini wrote: > > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > > >> On 4/29/19 1:02 PM, Jagan Teki wrote: > > >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > > >>>> > > >>>> On 4/29/19 12:40 PM, Jagan Teki wrote: > > >>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > > >>>>>> > > >>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > > >>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > > >>>>>>> warning for broken configuration enabled and associated code > > >>>>>>> will remove in v2019.07 release. > > >>>>>> > > >>>>>> But the code is not broken, it works fine, right ? > > >>>>> > > >>>>> Yes the code work fine, but dm conversion not done yet. Now the > > >>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > > >>>> > > >>>> That makes no sense, if the code works, it works and thus it is NOT > > >>>> broken. Find some other way to flag it as non-DM-converted, not this hack. > > >>> > > >>> np, It depends on whether we consider non-dm code(for legacy SPI > > >>> drivers) is broken or not, let Tom comment on this. > > >> > > >> Again, the code works, it's not broken. That's very clear. > > >> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > > >> for such things. The Makefile warning seems sufficient to me. > > > > > > The code is broken because it doesn't work with DM and is going to be > > > removed due to lack of maintenance soon. My problem with this series, > > > but I need to check that we can do what I want to do and still keep > > > travis green, is have this (and the other non-converted and thus > > > non-maintained drivers) depend on, not select BROKEN. > > > > > > The Makefile warnings tell people the code is going to be removed and > > > I'm trying to have the window be: > > > 1) LOUD warning about needing work > > > 2) 1 release past those loud deadlines of the code there, but not built > > > unless you enable BROKEN (as yes, I see code that's not updated to use > > > DM as being broken) > > > 3) Code removed. > > > > > > All that said, I continue to be open to delaying conversion / removal if > > > we're having: > > > - A discussion and proposed patches to do the conversion, but people > > > need more time. The work is in progress, but people need time as it's > > > not as easy to convert as hoped for various reasons. > > > - A problem converting the driver to DM as it's highlighting some other > > > problem within DM or hitting a size constraint or other problem. > > > - Someone who is willing to do the DM work is just now seeing this. > > > Yes, this is possible especially since our LOUD Makefile warnings are > > > also easy enough to miss if you're just automating the build and not > > > doing it manually. > > > > > > But I am not fine with: > > > - Code that isn't converted AND > > > - Code that no one seems to be converting AND > > > - Code that no one says they are going to convert AND > > > - The conversion deadline has past. > > > > Seems there was some offer from Amarula to convert it , no ? > > we can do some job on imx28 because we have a board there. I have asked > to mainline it OK, good. Can you and Marek please coordinate on: - Updating MAINTAINERS files - Dropping the boards that won't be supported moving forward (even if you can't mainline the custom board, there must be a ref platform you have/use, yes?). And Michael, can you please subscribe to the u-boot-maintainers list? Jagan, was there an old patch to try and convert this driver that may be of help to Michael? Thanks!
On 4/29/19 2:47 PM, Tom Rini wrote: > On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: >> Hi Marek >> >> On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut <marex@denx.de> wrote: >>> >>> On 4/29/19 1:24 PM, Tom Rini wrote: >>>> On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: >>>>> On 4/29/19 1:02 PM, Jagan Teki wrote: >>>>>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: >>>>>>> >>>>>>> On 4/29/19 12:40 PM, Jagan Teki wrote: >>>>>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >>>>>>>>> >>>>>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: >>>>>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>>>>>>>>> warning for broken configuration enabled and associated code >>>>>>>>>> will remove in v2019.07 release. >>>>>>>>> >>>>>>>>> But the code is not broken, it works fine, right ? >>>>>>>> >>>>>>>> Yes the code work fine, but dm conversion not done yet. Now the >>>>>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm >>>>>>> >>>>>>> That makes no sense, if the code works, it works and thus it is NOT >>>>>>> broken. Find some other way to flag it as non-DM-converted, not this hack. >>>>>> >>>>>> np, It depends on whether we consider non-dm code(for legacy SPI >>>>>> drivers) is broken or not, let Tom comment on this. >>>>> >>>>> Again, the code works, it's not broken. That's very clear. >>>>> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN >>>>> for such things. The Makefile warning seems sufficient to me. >>>> >>>> The code is broken because it doesn't work with DM and is going to be >>>> removed due to lack of maintenance soon. My problem with this series, >>>> but I need to check that we can do what I want to do and still keep >>>> travis green, is have this (and the other non-converted and thus >>>> non-maintained drivers) depend on, not select BROKEN. >>>> >>>> The Makefile warnings tell people the code is going to be removed and >>>> I'm trying to have the window be: >>>> 1) LOUD warning about needing work >>>> 2) 1 release past those loud deadlines of the code there, but not built >>>> unless you enable BROKEN (as yes, I see code that's not updated to use >>>> DM as being broken) >>>> 3) Code removed. >>>> >>>> All that said, I continue to be open to delaying conversion / removal if >>>> we're having: >>>> - A discussion and proposed patches to do the conversion, but people >>>> need more time. The work is in progress, but people need time as it's >>>> not as easy to convert as hoped for various reasons. >>>> - A problem converting the driver to DM as it's highlighting some other >>>> problem within DM or hitting a size constraint or other problem. >>>> - Someone who is willing to do the DM work is just now seeing this. >>>> Yes, this is possible especially since our LOUD Makefile warnings are >>>> also easy enough to miss if you're just automating the build and not >>>> doing it manually. >>>> >>>> But I am not fine with: >>>> - Code that isn't converted AND >>>> - Code that no one seems to be converting AND >>>> - Code that no one says they are going to convert AND >>>> - The conversion deadline has past. >>> >>> Seems there was some offer from Amarula to convert it , no ? >> >> we can do some job on imx28 because we have a board there. I have asked >> to mainline it > > OK, good. Can you and Marek please coordinate on: > - Updating MAINTAINERS files > - Dropping the boards that won't be supported moving forward (even if > you can't mainline the custom board, there must be a ref platform you > have/use, yes?). Might make sense to keep the MX28EVK, I'll ask about the other boards, but I think they could be dropped. > And Michael, can you please subscribe to the u-boot-maintainers list? > > Jagan, was there an old patch to try and convert this driver that may be > of help to Michael? Thanks! >
+ Akash On Mon, Apr 29, 2019 at 6:17 PM Tom Rini <trini@konsulko.com> wrote: > > On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: > > Hi Marek > > > > On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut <marex@denx.de> wrote: > > > > > > On 4/29/19 1:24 PM, Tom Rini wrote: > > > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > > > >> On 4/29/19 1:02 PM, Jagan Teki wrote: > > > >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > > > >>>> > > > >>>> On 4/29/19 12:40 PM, Jagan Teki wrote: > > > >>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > > > >>>>>> > > > >>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > > > >>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > > > >>>>>>> warning for broken configuration enabled and associated code > > > >>>>>>> will remove in v2019.07 release. > > > >>>>>> > > > >>>>>> But the code is not broken, it works fine, right ? > > > >>>>> > > > >>>>> Yes the code work fine, but dm conversion not done yet. Now the > > > >>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > > > >>>> > > > >>>> That makes no sense, if the code works, it works and thus it is NOT > > > >>>> broken. Find some other way to flag it as non-DM-converted, not this hack. > > > >>> > > > >>> np, It depends on whether we consider non-dm code(for legacy SPI > > > >>> drivers) is broken or not, let Tom comment on this. > > > >> > > > >> Again, the code works, it's not broken. That's very clear. > > > >> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > > > >> for such things. The Makefile warning seems sufficient to me. > > > > > > > > The code is broken because it doesn't work with DM and is going to be > > > > removed due to lack of maintenance soon. My problem with this series, > > > > but I need to check that we can do what I want to do and still keep > > > > travis green, is have this (and the other non-converted and thus > > > > non-maintained drivers) depend on, not select BROKEN. > > > > > > > > The Makefile warnings tell people the code is going to be removed and > > > > I'm trying to have the window be: > > > > 1) LOUD warning about needing work > > > > 2) 1 release past those loud deadlines of the code there, but not built > > > > unless you enable BROKEN (as yes, I see code that's not updated to use > > > > DM as being broken) > > > > 3) Code removed. > > > > > > > > All that said, I continue to be open to delaying conversion / removal if > > > > we're having: > > > > - A discussion and proposed patches to do the conversion, but people > > > > need more time. The work is in progress, but people need time as it's > > > > not as easy to convert as hoped for various reasons. > > > > - A problem converting the driver to DM as it's highlighting some other > > > > problem within DM or hitting a size constraint or other problem. > > > > - Someone who is willing to do the DM work is just now seeing this. > > > > Yes, this is possible especially since our LOUD Makefile warnings are > > > > also easy enough to miss if you're just automating the build and not > > > > doing it manually. > > > > > > > > But I am not fine with: > > > > - Code that isn't converted AND > > > > - Code that no one seems to be converting AND > > > > - Code that no one says they are going to convert AND > > > > - The conversion deadline has past. > > > > > > Seems there was some offer from Amarula to convert it , no ? > > > > we can do some job on imx28 because we have a board there. I have asked > > to mainline it > > OK, good. Can you and Marek please coordinate on: > - Updating MAINTAINERS files > - Dropping the boards that won't be supported moving forward (even if > you can't mainline the custom board, there must be a ref platform you > have/use, yes?). > > And Michael, can you please subscribe to the u-boot-maintainers list? > > Jagan, was there an old patch to try and convert this driver that may be > of help to Michael? Thanks! I have asked previous version[1] author, Akash. He said he is going to send the next version. He don't have hardware to test, but Michael or someone can test his change, thanks. [1] https://patchwork.ozlabs.org/patch/911394/
On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > > On 4/29/19 1:02 PM, Jagan Teki wrote: > > > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > > >> > > >> On 4/29/19 12:40 PM, Jagan Teki wrote: > > >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > > >>>> > > >>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > > >>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > > >>>>> warning for broken configuration enabled and associated code > > >>>>> will remove in v2019.07 release. > > >>>> > > >>>> But the code is not broken, it works fine, right ? > > >>> > > >>> Yes the code work fine, but dm conversion not done yet. Now the > > >>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > > >> > > >> That makes no sense, if the code works, it works and thus it is NOT > > >> broken. Find some other way to flag it as non-DM-converted, not this hack. > > > > > > np, It depends on whether we consider non-dm code(for legacy SPI > > > drivers) is broken or not, let Tom comment on this. > > > > Again, the code works, it's not broken. That's very clear. > > DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > > for such things. The Makefile warning seems sufficient to me. > > The code is broken because it doesn't work with DM and is going to be > removed due to lack of maintenance soon. My problem with this series, > but I need to check that we can do what I want to do and still keep > travis green, is have this (and the other non-converted and thus > non-maintained drivers) depend on, not select BROKEN. Yes, the idea here is to build the broken one by selecting BROKEN so-that the travis-CI is green and have warning on the build, otherwise it is another rework of selecting BROKEN for those non-converted drivers if they depends. > > The Makefile warnings tell people the code is going to be removed and > I'm trying to have the window be: > 1) LOUD warning about needing work > 2) 1 release past those loud deadlines of the code there, but not built > unless you enable BROKEN (as yes, I see code that's not updated to use > DM as being broken) > 3) Code removed. ie what this series does. Driver (for example) will select BROKEN, that means it is still working bu would like to remove in next versions and so..
On Tue, May 14, 2019 at 07:46:06PM +0530, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: > > > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > > > On 4/29/19 1:02 PM, Jagan Teki wrote: > > > > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > > > >> > > > >> On 4/29/19 12:40 PM, Jagan Teki wrote: > > > >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > > > >>>> > > > >>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > > > >>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > > > >>>>> warning for broken configuration enabled and associated code > > > >>>>> will remove in v2019.07 release. > > > >>>> > > > >>>> But the code is not broken, it works fine, right ? > > > >>> > > > >>> Yes the code work fine, but dm conversion not done yet. Now the > > > >>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > > > >> > > > >> That makes no sense, if the code works, it works and thus it is NOT > > > >> broken. Find some other way to flag it as non-DM-converted, not this hack. > > > > > > > > np, It depends on whether we consider non-dm code(for legacy SPI > > > > drivers) is broken or not, let Tom comment on this. > > > > > > Again, the code works, it's not broken. That's very clear. > > > DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > > > for such things. The Makefile warning seems sufficient to me. > > > > The code is broken because it doesn't work with DM and is going to be > > removed due to lack of maintenance soon. My problem with this series, > > but I need to check that we can do what I want to do and still keep > > travis green, is have this (and the other non-converted and thus > > non-maintained drivers) depend on, not select BROKEN. > > Yes, the idea here is to build the broken one by selecting BROKEN > so-that the travis-CI is green and have warning on the build, > otherwise it is another rework of selecting BROKEN for those > non-converted drivers if they depends. > > > > > The Makefile warnings tell people the code is going to be removed and > > I'm trying to have the window be: > > 1) LOUD warning about needing work > > 2) 1 release past those loud deadlines of the code there, but not built > > unless you enable BROKEN (as yes, I see code that's not updated to use > > DM as being broken) > > 3) Code removed. > > ie what this series does. Driver (for example) will select BROKEN, > that means it is still working bu would like to remove in next > versions and so.. What I'm after is https://github.com/trini/u-boot/commits/WIP-BROKEN-test which is close, but not quite there. We no longer build the drivers marked as BROKEN by default, and the fallout from that has been: - Some missing dependencies (I'm trying to fix that now) leading to build problems. - Needing to yank CONFIG_SPI for example from configs that had been using a now-not-built driver as the subsystem fails to link if there's no controller. I don't think that's a problem however. - Needing to migrate a few more symbols to Kconfig in order to be able to properly express "You need to depend on BROKEN to use this option now".
On 5/14/19 4:45 PM, Tom Rini wrote: > On Tue, May 14, 2019 at 07:46:06PM +0530, Jagan Teki wrote: >> On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: >>> >>> On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: >>>> On 4/29/19 1:02 PM, Jagan Teki wrote: >>>>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: >>>>>> >>>>>> On 4/29/19 12:40 PM, Jagan Teki wrote: >>>>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >>>>>>>> >>>>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: >>>>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>>>>>>>> warning for broken configuration enabled and associated code >>>>>>>>> will remove in v2019.07 release. >>>>>>>> >>>>>>>> But the code is not broken, it works fine, right ? >>>>>>> >>>>>>> Yes the code work fine, but dm conversion not done yet. Now the >>>>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm >>>>>> >>>>>> That makes no sense, if the code works, it works and thus it is NOT >>>>>> broken. Find some other way to flag it as non-DM-converted, not this hack. >>>>> >>>>> np, It depends on whether we consider non-dm code(for legacy SPI >>>>> drivers) is broken or not, let Tom comment on this. >>>> >>>> Again, the code works, it's not broken. That's very clear. >>>> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN >>>> for such things. The Makefile warning seems sufficient to me. >>> >>> The code is broken because it doesn't work with DM and is going to be >>> removed due to lack of maintenance soon. My problem with this series, >>> but I need to check that we can do what I want to do and still keep >>> travis green, is have this (and the other non-converted and thus >>> non-maintained drivers) depend on, not select BROKEN. >> >> Yes, the idea here is to build the broken one by selecting BROKEN >> so-that the travis-CI is green and have warning on the build, >> otherwise it is another rework of selecting BROKEN for those >> non-converted drivers if they depends. >> >>> >>> The Makefile warnings tell people the code is going to be removed and >>> I'm trying to have the window be: >>> 1) LOUD warning about needing work >>> 2) 1 release past those loud deadlines of the code there, but not built >>> unless you enable BROKEN (as yes, I see code that's not updated to use >>> DM as being broken) >>> 3) Code removed. >> >> ie what this series does. Driver (for example) will select BROKEN, >> that means it is still working bu would like to remove in next >> versions and so.. > > What I'm after is > https://github.com/trini/u-boot/commits/WIP-BROKEN-test which is close, > but not quite there. We no longer build the drivers marked as BROKEN by > default, and the fallout from that has been: > - Some missing dependencies (I'm trying to fix that now) leading to > build problems. > - Needing to yank CONFIG_SPI for example from configs that had been > using a now-not-built driver as the subsystem fails to link if there's > no controller. I don't think that's a problem however. > - Needing to migrate a few more symbols to Kconfig in order to be able > to properly express "You need to depend on BROKEN to use this option > now". I still disagree with marking drivers that need DM conversion, but are otherwise working perfectly fine, as broken. That's just misleading and in fact incorrect. Invent some new, more descriptive Kconfig option please.
On Tue, May 14, 2019 at 07:33:17PM +0200, Marek Vasut wrote: > On 5/14/19 4:45 PM, Tom Rini wrote: > > On Tue, May 14, 2019 at 07:46:06PM +0530, Jagan Teki wrote: > >> On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: > >>> > >>> On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > >>>> On 4/29/19 1:02 PM, Jagan Teki wrote: > >>>>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > >>>>>> > >>>>>> On 4/29/19 12:40 PM, Jagan Teki wrote: > >>>>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > >>>>>>>> > >>>>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>>>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>>>>>>>> warning for broken configuration enabled and associated code > >>>>>>>>> will remove in v2019.07 release. > >>>>>>>> > >>>>>>>> But the code is not broken, it works fine, right ? > >>>>>>> > >>>>>>> Yes the code work fine, but dm conversion not done yet. Now the > >>>>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > >>>>>> > >>>>>> That makes no sense, if the code works, it works and thus it is NOT > >>>>>> broken. Find some other way to flag it as non-DM-converted, not this hack. > >>>>> > >>>>> np, It depends on whether we consider non-dm code(for legacy SPI > >>>>> drivers) is broken or not, let Tom comment on this. > >>>> > >>>> Again, the code works, it's not broken. That's very clear. > >>>> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > >>>> for such things. The Makefile warning seems sufficient to me. > >>> > >>> The code is broken because it doesn't work with DM and is going to be > >>> removed due to lack of maintenance soon. My problem with this series, > >>> but I need to check that we can do what I want to do and still keep > >>> travis green, is have this (and the other non-converted and thus > >>> non-maintained drivers) depend on, not select BROKEN. > >> > >> Yes, the idea here is to build the broken one by selecting BROKEN > >> so-that the travis-CI is green and have warning on the build, > >> otherwise it is another rework of selecting BROKEN for those > >> non-converted drivers if they depends. > >> > >>> > >>> The Makefile warnings tell people the code is going to be removed and > >>> I'm trying to have the window be: > >>> 1) LOUD warning about needing work > >>> 2) 1 release past those loud deadlines of the code there, but not built > >>> unless you enable BROKEN (as yes, I see code that's not updated to use > >>> DM as being broken) > >>> 3) Code removed. > >> > >> ie what this series does. Driver (for example) will select BROKEN, > >> that means it is still working bu would like to remove in next > >> versions and so.. > > > > What I'm after is > > https://github.com/trini/u-boot/commits/WIP-BROKEN-test which is close, > > but not quite there. We no longer build the drivers marked as BROKEN by > > default, and the fallout from that has been: > > - Some missing dependencies (I'm trying to fix that now) leading to > > build problems. > > - Needing to yank CONFIG_SPI for example from configs that had been > > using a now-not-built driver as the subsystem fails to link if there's > > no controller. I don't think that's a problem however. > > - Needing to migrate a few more symbols to Kconfig in order to be able > > to properly express "You need to depend on BROKEN to use this option > > now". > > I still disagree with marking drivers that need DM conversion, but are > otherwise working perfectly fine, as broken. That's just misleading and > in fact incorrect. Invent some new, more descriptive Kconfig option please. I also still disagree, but, fine, I'll add CONFIG_DEPRECATED.
On 5/14/19 7:37 PM, Tom Rini wrote: > On Tue, May 14, 2019 at 07:33:17PM +0200, Marek Vasut wrote: >> On 5/14/19 4:45 PM, Tom Rini wrote: >>> On Tue, May 14, 2019 at 07:46:06PM +0530, Jagan Teki wrote: >>>> On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: >>>>> >>>>> On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: >>>>>> On 4/29/19 1:02 PM, Jagan Teki wrote: >>>>>>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: >>>>>>>> >>>>>>>> On 4/29/19 12:40 PM, Jagan Teki wrote: >>>>>>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: >>>>>>>>>> >>>>>>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: >>>>>>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>>>>>>>>>> warning for broken configuration enabled and associated code >>>>>>>>>>> will remove in v2019.07 release. >>>>>>>>>> >>>>>>>>>> But the code is not broken, it works fine, right ? >>>>>>>>> >>>>>>>>> Yes the code work fine, but dm conversion not done yet. Now the >>>>>>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm >>>>>>>> >>>>>>>> That makes no sense, if the code works, it works and thus it is NOT >>>>>>>> broken. Find some other way to flag it as non-DM-converted, not this hack. >>>>>>> >>>>>>> np, It depends on whether we consider non-dm code(for legacy SPI >>>>>>> drivers) is broken or not, let Tom comment on this. >>>>>> >>>>>> Again, the code works, it's not broken. That's very clear. >>>>>> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN >>>>>> for such things. The Makefile warning seems sufficient to me. >>>>> >>>>> The code is broken because it doesn't work with DM and is going to be >>>>> removed due to lack of maintenance soon. My problem with this series, >>>>> but I need to check that we can do what I want to do and still keep >>>>> travis green, is have this (and the other non-converted and thus >>>>> non-maintained drivers) depend on, not select BROKEN. >>>> >>>> Yes, the idea here is to build the broken one by selecting BROKEN >>>> so-that the travis-CI is green and have warning on the build, >>>> otherwise it is another rework of selecting BROKEN for those >>>> non-converted drivers if they depends. >>>> >>>>> >>>>> The Makefile warnings tell people the code is going to be removed and >>>>> I'm trying to have the window be: >>>>> 1) LOUD warning about needing work >>>>> 2) 1 release past those loud deadlines of the code there, but not built >>>>> unless you enable BROKEN (as yes, I see code that's not updated to use >>>>> DM as being broken) >>>>> 3) Code removed. >>>> >>>> ie what this series does. Driver (for example) will select BROKEN, >>>> that means it is still working bu would like to remove in next >>>> versions and so.. >>> >>> What I'm after is >>> https://github.com/trini/u-boot/commits/WIP-BROKEN-test which is close, >>> but not quite there. We no longer build the drivers marked as BROKEN by >>> default, and the fallout from that has been: >>> - Some missing dependencies (I'm trying to fix that now) leading to >>> build problems. >>> - Needing to yank CONFIG_SPI for example from configs that had been >>> using a now-not-built driver as the subsystem fails to link if there's >>> no controller. I don't think that's a problem however. >>> - Needing to migrate a few more symbols to Kconfig in order to be able >>> to properly express "You need to depend on BROKEN to use this option >>> now". >> >> I still disagree with marking drivers that need DM conversion, but are >> otherwise working perfectly fine, as broken. That's just misleading and >> in fact incorrect. Invent some new, more descriptive Kconfig option please. > > I also still disagree, but, fine, I'll add CONFIG_DEPRECATED. CONFIG_DM_NEED_MIGRATION or something ?
On Tue, May 14, 2019 at 07:41:07PM +0200, Marek Vasut wrote: > On 5/14/19 7:37 PM, Tom Rini wrote: > > On Tue, May 14, 2019 at 07:33:17PM +0200, Marek Vasut wrote: > >> On 5/14/19 4:45 PM, Tom Rini wrote: > >>> On Tue, May 14, 2019 at 07:46:06PM +0530, Jagan Teki wrote: > >>>> On Mon, Apr 29, 2019 at 4:54 PM Tom Rini <trini@konsulko.com> wrote: > >>>>> > >>>>> On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > >>>>>> On 4/29/19 1:02 PM, Jagan Teki wrote: > >>>>>>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut <marex@denx.de> wrote: > >>>>>>>> > >>>>>>>> On 4/29/19 12:40 PM, Jagan Teki wrote: > >>>>>>>>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut <marex@denx.de> wrote: > >>>>>>>>>> > >>>>>>>>>> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>>>>>>>>>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>>>>>>>>>> warning for broken configuration enabled and associated code > >>>>>>>>>>> will remove in v2019.07 release. > >>>>>>>>>> > >>>>>>>>>> But the code is not broken, it works fine, right ? > >>>>>>>>> > >>>>>>>>> Yes the code work fine, but dm conversion not done yet. Now the > >>>>>>>>> CONFIG_BROKEN can mark the driver configs which doesn't convert dm > >>>>>>>> > >>>>>>>> That makes no sense, if the code works, it works and thus it is NOT > >>>>>>>> broken. Find some other way to flag it as non-DM-converted, not this hack. > >>>>>>> > >>>>>>> np, It depends on whether we consider non-dm code(for legacy SPI > >>>>>>> drivers) is broken or not, let Tom comment on this. > >>>>>> > >>>>>> Again, the code works, it's not broken. That's very clear. > >>>>>> DM conversion is a separate matter, so let's not overload CONFIG_BROKEN > >>>>>> for such things. The Makefile warning seems sufficient to me. > >>>>> > >>>>> The code is broken because it doesn't work with DM and is going to be > >>>>> removed due to lack of maintenance soon. My problem with this series, > >>>>> but I need to check that we can do what I want to do and still keep > >>>>> travis green, is have this (and the other non-converted and thus > >>>>> non-maintained drivers) depend on, not select BROKEN. > >>>> > >>>> Yes, the idea here is to build the broken one by selecting BROKEN > >>>> so-that the travis-CI is green and have warning on the build, > >>>> otherwise it is another rework of selecting BROKEN for those > >>>> non-converted drivers if they depends. > >>>> > >>>>> > >>>>> The Makefile warnings tell people the code is going to be removed and > >>>>> I'm trying to have the window be: > >>>>> 1) LOUD warning about needing work > >>>>> 2) 1 release past those loud deadlines of the code there, but not built > >>>>> unless you enable BROKEN (as yes, I see code that's not updated to use > >>>>> DM as being broken) > >>>>> 3) Code removed. > >>>> > >>>> ie what this series does. Driver (for example) will select BROKEN, > >>>> that means it is still working bu would like to remove in next > >>>> versions and so.. > >>> > >>> What I'm after is > >>> https://github.com/trini/u-boot/commits/WIP-BROKEN-test which is close, > >>> but not quite there. We no longer build the drivers marked as BROKEN by > >>> default, and the fallout from that has been: > >>> - Some missing dependencies (I'm trying to fix that now) leading to > >>> build problems. > >>> - Needing to yank CONFIG_SPI for example from configs that had been > >>> using a now-not-built driver as the subsystem fails to link if there's > >>> no controller. I don't think that's a problem however. > >>> - Needing to migrate a few more symbols to Kconfig in order to be able > >>> to properly express "You need to depend on BROKEN to use this option > >>> now". > >> > >> I still disagree with marking drivers that need DM conversion, but are > >> otherwise working perfectly fine, as broken. That's just misleading and > >> in fact incorrect. Invent some new, more descriptive Kconfig option please. > > > > I also still disagree, but, fine, I'll add CONFIG_DEPRECATED. > > CONFIG_DM_NEED_MIGRATION or something ? No, I think given the definition of deprecated: "to withdraw official support for or discourage the use of (something, such as a software product) in favor of a newer or better alternative" (from https://www.merriam-webster.com/dictionary/deprecated) this is good enough.
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index e196f64e2f..393382fee2 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -377,6 +377,7 @@ config MXC_SPI config MXS_SPI bool "MXS SPI Driver" + select BROKEN help Enable the MXS SPI controller driver. This driver can be used on the i.MX23 and i.MX28 SoCs.