Re: [PATCH] mtd: nand: pxa3xx: set mtd->dev
On Wed, Jan 05, 2022 at 04:01:00PM +0100, Robert Marko wrote: > Currently the pxa3xx driver does not set the udevice in the mtd_info > struct and this prevents the mtd from parsing the partitions via DTS > like for SPI-NOR. > > So simply set the mtd->dev to the driver udevice. > > Signed-off-by: Robert Marko > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature
Re: [PATCH] mtd: nand: pxa3xx: set mtd->dev
On 1/5/22 16:01, Robert Marko wrote: Currently the pxa3xx driver does not set the udevice in the mtd_info struct and this prevents the mtd from parsing the partitions via DTS like for SPI-NOR. So simply set the mtd->dev to the driver udevice. Signed-off-by: Robert Marko Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/mtd/nand/raw/pxa3xx_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 8ff58a7038..eb739bb3b9 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -1913,6 +1913,7 @@ static int pxa3xx_nand_probe(struct udevice *dev) * user's mtd partitions configuration would get broken. */ mtd->name = "pxa3xx_nand-0"; + mtd->dev = dev; info->cs = cs; ret = pxa3xx_nand_scan(mtd); if (ret) { Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: s...@denx.de
[PATCH] mtd: nand: pxa3xx: set mtd->dev
Currently the pxa3xx driver does not set the udevice in the mtd_info struct and this prevents the mtd from parsing the partitions via DTS like for SPI-NOR. So simply set the mtd->dev to the driver udevice. Signed-off-by: Robert Marko --- drivers/mtd/nand/raw/pxa3xx_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 8ff58a7038..eb739bb3b9 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -1913,6 +1913,7 @@ static int pxa3xx_nand_probe(struct udevice *dev) * user's mtd partitions configuration would get broken. */ mtd->name = "pxa3xx_nand-0"; + mtd->dev = dev; info->cs = cs; ret = pxa3xx_nand_scan(mtd); if (ret) { -- 2.34.1