public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/3] mtd: Fix partition handling code
Date: Sat, 10 Nov 2018 12:33:08 +0100	[thread overview]
Message-ID: <20181110123308.50724790@bbrezillon> (raw)
In-Reply-To: <CAMty3ZDOZ42vk4Pbysg8Ei9pJcLjSb5pFc+8eE_xatpGY52Q6g@mail.gmail.com>

On Sat, 10 Nov 2018 16:57:07 +0530
Jagan Teki <jagan@amarulasolutions.com> wrote:

> On Sat, Nov 10, 2018 at 4:54 PM Boris Brezillon
> <boris.brezillon@bootlin.com> wrote:
> >
> > On Sat, 10 Nov 2018 15:02:05 +0530
> > Jagan Teki <jagan@amarulasolutions.com> wrote:
> >  
> > > On Mon, Nov 5, 2018 at 2:07 PM Jagan Teki <jagan@amarulasolutions.com> wrote:  
> > > >
> > > > On Wed, Oct 31, 2018 at 3:38 PM Boris Brezillon
> > > > <boris.brezillon@bootlin.com> wrote:  
> > > > >
> > > > > Hello,
> > > > >
> > > > > Stefan recently reported a bug when using ubi part on a spi-nand
> > > > > device and proposed this fix[1]. While his solution while working
> > > > > I proposed a different approach to kill the CMD_UBI dependency on
> > > > > CMD_MTDPARTS. This is what patches 1 and 2 are doing.
> > > > >
> > > > > Patch 3 is just removing the duplicate Kconfig MTD_PARTITIONS entry.
> > > > >
> > > > > Jagan, can you queue those patches to one of your branch and send a
> > > > > fixes PR, unless Tom prefers to take them directly.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Boris
> > > > >
> > > > > Boris Brezillon (3):
> > > > >   mtd: Use default mtdparts/mtids when not defined in the environment
> > > > >   cmd: ubi: Remove useless call to mtdparts_init()
> > > > >   mtd: Drop duplicate MTD_PARTITIONS Kconfig option  
> > >
> > > Did you find this build issues? [1]
> > > https://travis-ci.org/openedev/u-boot-amarula/builds/450798634  
> >
> > If by find you mean notice, then no, but I just sent 2 patches to fix
> > the problems.
> >
> > Thanks for reporting the bugs.  
> 
> Look like enabling CMD_MTDPARTS=y to relevant defconfigs were fine,
> since other boards did the same. I made change trigger a build [2]

Well, there's still a problem with dependencies. For instance, DFU_NAND
should select CMD_MTDPARTS since it's using a function exposed by
cmd/mtdparts.c. For sure, adding CMD_MTDPARTS=y to existing defconfigs
does the trick, but it's not the correct fix IMHO.

> 
> [2] https://travis-ci.org/openedev/u-boot-amarula/builds/453235656

      reply	other threads:[~2018-11-10 11:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 10:07 [U-Boot] [PATCH 0/3] mtd: Fix partition handling code Boris Brezillon
2018-10-31 10:07 ` [U-Boot] [PATCH 1/3] mtd: Use default mtdparts/mtids when not defined in the environment Boris Brezillon
2018-10-31 10:07 ` [U-Boot] [PATCH 2/3] cmd: ubi: Remove useless call to mtdparts_init() Boris Brezillon
2018-10-31 10:07 ` [U-Boot] [PATCH 3/3] mtd: Drop duplicate MTD_PARTITIONS Kconfig option Boris Brezillon
2018-10-31 10:43 ` [U-Boot] [PATCH 0/3] mtd: Fix partition handling code Miquel Raynal
2018-11-05  8:37 ` Jagan Teki
2018-11-10  9:32   ` Jagan Teki
2018-11-10 11:23     ` Boris Brezillon
2018-11-10 11:27       ` Jagan Teki
2018-11-10 11:33         ` Boris Brezillon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181110123308.50724790@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox