linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] imx21ads : Fix overlapping static i/o mappings
@ 2012-04-30  9:53 Jaccon Bastiaansen
  2012-05-09  7:29 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jaccon Bastiaansen @ 2012-04-30  9:53 UTC (permalink / raw)
  To: linux-arm-kernel

The statically defined I/O memory regions for the i.MX21 on chip
peripherals and the on board I/O peripherals of the i.MX21ADS board
overlap. This results in a kernel crash during startup. This is fixed
by reducing the memory range for the on board I/O peripherals to the
actually required range.

Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
---
 arch/arm/mach-imx/mach-mx21ads.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c
index e432d4a..4460d25 100644
--- a/arch/arm/mach-imx/mach-mx21ads.c
+++ b/arch/arm/mach-imx/mach-mx21ads.c
@@ -32,7 +32,7 @@
  * Memory-mapped I/O on MX21ADS base board
  */
 #define MX21ADS_MMIO_BASE_ADDR   0xf5000000
-#define MX21ADS_MMIO_SIZE        SZ_16M
+#define MX21ADS_MMIO_SIZE        0xc00000
 
 #define MX21ADS_REG_ADDR(offset)    (void __force __iomem *) \
 		(MX21ADS_MMIO_BASE_ADDR + (offset))
-- 
1.7.1

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

* [PATCH] imx21ads : Fix overlapping static i/o mappings
  2012-04-30  9:53 [PATCH] imx21ads : Fix overlapping static i/o mappings Jaccon Bastiaansen
@ 2012-05-09  7:29 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-05-09  7:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Apr 30, 2012 at 11:53:43AM +0200, Jaccon Bastiaansen wrote:
> The statically defined I/O memory regions for the i.MX21 on chip
> peripherals and the on board I/O peripherals of the i.MX21ADS board
> overlap. This results in a kernel crash during startup. This is fixed
> by reducing the memory range for the on board I/O peripherals to the
> actually required range.
> 
> Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>

Applied, thanks. Please add a ARM i.MX prefix next time to you subject.
Also, added a Cc stable.

Sascha

> ---
>  arch/arm/mach-imx/mach-mx21ads.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c
> index e432d4a..4460d25 100644
> --- a/arch/arm/mach-imx/mach-mx21ads.c
> +++ b/arch/arm/mach-imx/mach-mx21ads.c
> @@ -32,7 +32,7 @@
>   * Memory-mapped I/O on MX21ADS base board
>   */
>  #define MX21ADS_MMIO_BASE_ADDR   0xf5000000
> -#define MX21ADS_MMIO_SIZE        SZ_16M
> +#define MX21ADS_MMIO_SIZE        0xc00000
>  
>  #define MX21ADS_REG_ADDR(offset)    (void __force __iomem *) \
>  		(MX21ADS_MMIO_BASE_ADDR + (offset))
> -- 
> 1.7.1
> 
> 

-- 
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 |

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

end of thread, other threads:[~2012-05-09  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-30  9:53 [PATCH] imx21ads : Fix overlapping static i/o mappings Jaccon Bastiaansen
2012-05-09  7:29 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).