[U-Boot] mtd partitions go away

2018-11-15 Thread Heiko Schocher
Hello all, just see with current HEAD of u-boot on an imx6ull based board with SPI NOR and NAND following behaviour: => mtdparts device nand0 , # parts = 1 #: namesizeoffset mask_flags 0: ubi 0x0800 0x 0 device nor0 ,

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Marek Vasut
On 11/15/2018 11:14 AM, Heiko Schocher wrote: > Hello all, > > just see with current HEAD of u-boot on an imx6ull based board with SPI NOR > and NAND following behaviour: +CC Boris, since he was recently looking into this stuff. > => mtdparts > > device nand0 , # parts = 1 >  #: name   

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 14:48:49 +0100 Marek Vasut wrote: > On 11/15/2018 11:14 AM, Heiko Schocher wrote: > > Hello all, > > > > just see with current HEAD of u-boot on an imx6ull based board with SPI NOR > > and NAND following behaviour: > > +CC Boris, since he was recently looking into this stu

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
Hi Heiko, On Thu, 15 Nov 2018 15:21:31 +0100 Boris Brezillon wrote: > > Looks like spi_flash_mtd_register() is doing something really bad here > [1]: memsetting the global sf_mtd_info object without testing if > this object has already been registered, and then registering it again > to the MT

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 16:15:51 +0100 Boris Brezillon wrote: > Hi Heiko, > > On Thu, 15 Nov 2018 15:21:31 +0100 > Boris Brezillon wrote: > > > > > Looks like spi_flash_mtd_register() is doing something really bad here > > [1]: memsetting the global sf_mtd_info object without testing if > > this

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Heiko Schocher
Hello Boris, Am 15.11.2018 um 17:47 schrieb Boris Brezillon: On Thu, 15 Nov 2018 16:15:51 +0100 Boris Brezillon wrote: Hi Heiko, On Thu, 15 Nov 2018 15:21:31 +0100 Boris Brezillon wrote: Looks like spi_flash_mtd_register() is doing something really bad here [1]: memsetting the global sf_

Re: [U-Boot] mtd partitions go away

2018-11-15 Thread Heiko Schocher
Hello Boris, thanks for the fast response. Am 15.11.2018 um 16:15 schrieb Boris Brezillon: Hi Heiko, On Thu, 15 Nov 2018 15:21:31 +0100 Boris Brezillon wrote: Looks like spi_flash_mtd_register() is doing something really bad here Yes! [1]: memsetting the global sf_mtd_info object witho