mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] arm: cfa10036: Add proper resource length
@ 2012-09-28 13:58 Maxime Ripard
  2012-09-28 14:32 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2012-09-28 13:58 UTC (permalink / raw)
  To: barebox; +Cc: brian

The cfa10036 board file were missing the length parameter when adding
devices. This made barebox crash early in the boot, in the mxs-mci
driver.

Provide the resources lengths in a consistent format.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boards/crystalfontz-cfa10036/cfa10036.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
index e454afd..fcb7057 100644
--- a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
+++ b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
@@ -23,6 +23,7 @@
 #include <init.h>
 #include <mci.h>
 #include <io.h>
+#include <sizes.h>
 
 #include <mach/clock.h>
 #include <mach/imx-regs.h>
@@ -89,7 +90,7 @@ static int cfa10036_devices_init(void)
 	armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100);
 	armlinux_set_architecture(MACH_TYPE_CFA10036);
 
-	add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, 0,
+	add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, SZ_8K,
 			   IORESOURCE_MEM, &mci_pdata);
 
 	return 0;
@@ -98,7 +99,7 @@ device_initcall(cfa10036_devices_init);
 
 static int cfa10036_console_init(void)
 {
-	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, 8192,
+	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, SZ_8K,
 			   IORESOURCE_MEM, NULL);
 
 	return 0;
-- 
1.7.9.5


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

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

* Re: [PATCH] arm: cfa10036: Add proper resource length
  2012-09-28 13:58 [PATCH] arm: cfa10036: Add proper resource length Maxime Ripard
@ 2012-09-28 14:32 ` Sascha Hauer
  2012-09-28 14:39   ` Maxime Ripard
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-09-28 14:32 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: barebox, brian

On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote:
> The cfa10036 board file were missing the length parameter when adding
> devices. This made barebox crash early in the boot, in the mxs-mci
> driver.
> 
> Provide the resources lengths in a consistent format.

Applied, thanks

Sascha

> 
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> ---
>  arch/arm/boards/crystalfontz-cfa10036/cfa10036.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
> index e454afd..fcb7057 100644
> --- a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
> +++ b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c
> @@ -23,6 +23,7 @@
>  #include <init.h>
>  #include <mci.h>
>  #include <io.h>
> +#include <sizes.h>
>  
>  #include <mach/clock.h>
>  #include <mach/imx-regs.h>
> @@ -89,7 +90,7 @@ static int cfa10036_devices_init(void)
>  	armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100);
>  	armlinux_set_architecture(MACH_TYPE_CFA10036);
>  
> -	add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, 0,
> +	add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, SZ_8K,
>  			   IORESOURCE_MEM, &mci_pdata);
>  
>  	return 0;
> @@ -98,7 +99,7 @@ device_initcall(cfa10036_devices_init);
>  
>  static int cfa10036_console_init(void)
>  {
> -	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, 8192,
> +	add_generic_device("stm_serial", 0, NULL, IMX_DBGUART_BASE, SZ_8K,
>  			   IORESOURCE_MEM, NULL);
>  
>  	return 0;
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> 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] 4+ messages in thread

* Re: [PATCH] arm: cfa10036: Add proper resource length
  2012-09-28 14:32 ` Sascha Hauer
@ 2012-09-28 14:39   ` Maxime Ripard
  2012-09-28 17:37     ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2012-09-28 14:39 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, brian

Hi Sascha,

Le 28/09/2012 16:32, Sascha Hauer a écrit :
> On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote:
>> The cfa10036 board file were missing the length parameter when adding
>> devices. This made barebox crash early in the boot, in the mxs-mci
>> driver.
>>
>> Provide the resources lengths in a consistent format.
> 
> Applied, thanks

Will this be applied to the next stable release (2012.10)? Since 2012.09
was already broken (my bad), it would be nice if 2012.10 wasn't.

-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

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

* Re: [PATCH] arm: cfa10036: Add proper resource length
  2012-09-28 14:39   ` Maxime Ripard
@ 2012-09-28 17:37     ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-09-28 17:37 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: barebox, brian

On Fri, Sep 28, 2012 at 04:39:02PM +0200, Maxime Ripard wrote:
> Hi Sascha,
> 
> Le 28/09/2012 16:32, Sascha Hauer a écrit :
> > On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote:
> >> The cfa10036 board file were missing the length parameter when adding
> >> devices. This made barebox crash early in the boot, in the mxs-mci
> >> driver.
> >>
> >> Provide the resources lengths in a consistent format.
> > 
> > Applied, thanks
> 
> Will this be applied to the next stable release (2012.10)? Since 2012.09
> was already broken (my bad), it would be nice if 2012.10 wasn't.

Yes, I applied this to master.

Sascha


-- 
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] 4+ messages in thread

end of thread, other threads:[~2012-09-28 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-28 13:58 [PATCH] arm: cfa10036: Add proper resource length Maxime Ripard
2012-09-28 14:32 ` Sascha Hauer
2012-09-28 14:39   ` Maxime Ripard
2012-09-28 17:37     ` Sascha Hauer

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