Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611470
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name |
| Date | Wed, 29 Mar 2017 03:30:01 +0200 |
| Message-ID | <tqaAV-80L-1@gated-at.bofh.it> (permalink) |
| References | <tnPhf-3Fu-3@gated-at.bofh.it> <tnPhh-3Fu-65@gated-at.bofh.it> <tpEUp-1P8-3@gated-at.bofh.it> <tq70n-5jM-29@gated-at.bofh.it> <tq7a1-5nl-9@gated-at.bofh.it> |
| X-Original-To | Boris Brezillon <boris.brezillon@free-electrons.com> |
| Dkim-Filter | OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com v2T1J4bx007609 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1490750344; bh=1Ge+X3ZKnjaAluTTapk85xF3itqlDjh19l6jqX6A7/U=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=qMfRGdu+4BbAsFr0j25vq2po2VVjqgEwJ0CzNJfKrNJ2IA7rvi9qL77JUqR42WHXA e3KDvZhBgeb11g/clQSFs24CmP5HAPsS5UmDxAM5WN6yFxLbXuR9VB5OHeOok1QAHd ZySn3J1zh0YarfRY2QpTx1K98xMglCGAgguO2MdTEx4EiAAqWUaLhsS4mLDUe9cu7Y XMNQ6reMxsZu847CwX1kOyWHrdb/UbNytrjVH92SJJv7LNH+7bX0Jl3/I2+paEnYlz 9AKX7e6Cz3u2OWIwZATMqyPJnRWuf1gIAYJfHGLJAAIJwqfBQRVb0VcwQ8SRfLXTO0 +sqBFZjuTwOlQ== |
| X-Nifty-Srcip | [209.85.161.170] |
| X-Gm-Message-State | AFeK/H2Em11i2l9Sq/34rB6w1s0l1ObjmeBzKopsiVDyXKyp2J4zgRZ2V1XiI8kFIBZny4kG3IFcu9QBQ/7snw== |
| X-Received | by 10.129.179.194 with SMTP id r185mr25213966ywh.70.1490750343397; Tue, 28 Mar 2017 18:19:03 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Gmail-Original-Message-ID | <CAK7LNATbpQuouRLQJqixpFMqxByQs9dNjB3yFssf9RJpzLpAoQ@mail.gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 59 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-mtd@lists.infradead.org, Laurent Monat <laurent.monat@idquantique.com>, thorsten.christiansson@idquantique.com, Enrico Jorns <ejo@pengutronix.de>, Jason Roberts <jason.e.roberts@intel.com>, Artem Bityutskiy <artem.bityutskiy@linux.intel.com>, Dinh Nguyen <dinguyen@kernel.org>, Marek Vasut <marek.vasut@gmail.com>, Brian Norris <computersforpeace@gmail.com>, Graham Moore <grmoore@opensource.altera.com>, David Woodhouse <dwmw2@infradead.org>, Masami Hiramatsu <mhiramat@kernel.org>, Chuanxiao Dong <chuanxiao.dong@intel.com>, Jassi Brar <jaswinder.singh@linaro.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Richard Weinberger <richard@nod.at>, Cyrille Pitchen <cyrille.pitchen@atmel.com> |
| X-Original-Date | Wed, 29 Mar 2017 10:19:02 +0900 |
| X-Original-Message-ID | <CAK7LNATbpQuouRLQJqixpFMqxByQs9dNjB3yFssf9RJpzLpAoQ@mail.gmail.com> |
| X-Original-References | <1490191680-14481-1-git-send-email-yamada.masahiro@socionext.com> <1490191680-14481-21-git-send-email-yamada.masahiro@socionext.com> <20170327173146.655f090f@bbrezillon> <CAK7LNARNng6WuuF9OEfJmPkzR=-f1dmM0Q-ypdrAFNxRarATTw@mail.gmail.com> <20170328234023.0c887a51@bbrezillon> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1611470 |
Show key headers only | View raw
Hi Boris, 2017-03-29 6:40 GMT+09:00 Boris Brezillon <boris.brezillon@free-electrons.com>: > On Wed, 29 Mar 2017 06:32:24 +0900 > Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > >> Hi Boris, >> >> 2017-03-28 0:31 GMT+09:00 Boris Brezillon <boris.brezillon@free-electrons.com>: >> > On Wed, 22 Mar 2017 23:07:27 +0900 >> > Masahiro Yamada <yamada.masahiro@socionext.com> wrote: >> > >> >> This will be filled by nand_scan_ident() later. >> >> >> >> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> >> >> --- >> >> >> >> Changes in v2: None >> >> >> >> drivers/mtd/nand/denali.c | 1 - >> >> 1 file changed, 1 deletion(-) >> >> >> >> diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c >> >> index 3badb1d..1706975 100644 >> >> --- a/drivers/mtd/nand/denali.c >> >> +++ b/drivers/mtd/nand/denali.c >> >> @@ -1495,7 +1495,6 @@ int denali_init(struct denali_nand_info *denali) >> >> >> >> /* now that our ISR is registered, we can enable interrupts */ >> >> denali_set_intr_modes(denali, true); >> >> - mtd->name = "denali-nand"; >> > >> > Are you sure this is safe to do that? When mtd->name is NULL, the core >> > takes the parent name, and in the denali_dt case it's not "denali-nand", >> > which means you're breaking mtdparts compat. >> >> How big impact is this? > > Breaking boot on some platforms (those defining partitions through > mtdparts= cmdline parameter), which is not negligible :P. > >> >> I think a bootloader could give mtdparts=denali-nand:... >> but, now we are able to have partitions in DT nodes. > > Just because you have a new way to describe partitions (using DT) does > not mean people are not using the old one (mtdparts= parameter). I thought DT-node derived name can identify the hardware even if multiple Denali controllers exist on an SoC. Anyway, I admit this is a kind of breakage. If this one is reject, I will drop it drop v3. -- Best Regards Masahiro Yamada
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-03-28 23:40 +0200
Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-28 23:50 +0200
Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-03-29 03:30 +0200
Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-03-29 09:30 +0200
Re: [PATCH v2 20/53] mtd: nand: denali: do not set mtd->name Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-03-29 13:40 +0200
csiph-web