mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of: partition: fix typo when writing #address-cells
@ 2018-03-26 14:25 Philipp Zabel
  2018-03-29  7:02 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2018-03-26 14:25 UTC (permalink / raw)
  To: barebox

On > 4 GiB eMMC devices, barebox writes a 32-bit address and a 64-bit
size into the partition reg property, because #address-cells is
accidentally written as '#addres-cells'. This causes a fallback to
32-bit address size. Fix the typo and thereby of_partition_fixup for
64-bit partitions.

Fixes: a2fa18f9f483 ("mtd: of: Make used partition binding configurable")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/of/partition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 6f9651a9e4..aa6e601b7f 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -190,7 +190,7 @@ static int of_partition_fixup(struct device_node *root, void *ctx)
 	if (ret)
 		return ret;
 
-	of_property_write_u32(partnode, "#addres-cells", n_cells);
+	of_property_write_u32(partnode, "#address-cells", n_cells);
 	if (ret)
 		return ret;
 
-- 
2.16.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] of: partition: fix typo when writing #address-cells
  2018-03-26 14:25 [PATCH] of: partition: fix typo when writing #address-cells Philipp Zabel
@ 2018-03-29  7:02 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-03-29  7:02 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: barebox

On Mon, Mar 26, 2018 at 04:25:56PM +0200, Philipp Zabel wrote:
> On > 4 GiB eMMC devices, barebox writes a 32-bit address and a 64-bit
> size into the partition reg property, because #address-cells is
> accidentally written as '#addres-cells'. This causes a fallback to
> 32-bit address size. Fix the typo and thereby of_partition_fixup for
> 64-bit partitions.
> 
> Fixes: a2fa18f9f483 ("mtd: of: Make used partition binding configurable")
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  drivers/of/partition.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/of/partition.c b/drivers/of/partition.c
> index 6f9651a9e4..aa6e601b7f 100644
> --- a/drivers/of/partition.c
> +++ b/drivers/of/partition.c
> @@ -190,7 +190,7 @@ static int of_partition_fixup(struct device_node *root, void *ctx)
>  	if (ret)
>  		return ret;
>  
> -	of_property_write_u32(partnode, "#addres-cells", n_cells);
> +	of_property_write_u32(partnode, "#address-cells", n_cells);
>  	if (ret)
>  		return ret;
>  
> -- 
> 2.16.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-29  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-26 14:25 [PATCH] of: partition: fix typo when writing #address-cells Philipp Zabel
2018-03-29  7:02 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox