All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MX3x: clean kpp resource structure definitions
@ 2010-08-24  7:57 Michael Grzeschik
  2010-08-24  8:39 ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Grzeschik @ 2010-08-24  7:57 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 arch/arm/mach-mx3/devices.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index a4fd1a2..a3e0fe2 100644
--- a/arch/arm/mach-mx3/devices.c
+++ b/arch/arm/mach-mx3/devices.c
@@ -374,12 +374,12 @@ struct platform_device imx_rtc_device0 = {
 
 static struct resource imx_kpp_resources[] = {
 	{
-		.start	= MX3x_KPP_BASE_ADDR,
-		.end	= MX3x_KPP_BASE_ADDR + 0xf,
-		.flags	= IORESOURCE_MEM
+		.start	= KPP_BASE_ADDR,
+		.end	= KPP_BASE_ADDR + SZ_4K - 1,
+		.flags	= IORESOURCE_MEM,
 	}, {
-		.start	= MX3x_INT_KPP,
-		.end	= MX3x_INT_KPP,
+		.start	= MXC_INT_KPP,
+		.end	= MXC_INT_KPP,
 		.flags	= IORESOURCE_IRQ,
 	},
 };
-- 
1.7.1

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

* [PATCH] MX3x: clean kpp resource structure definitions
  2010-08-24  7:57 [PATCH] MX3x: clean kpp resource structure definitions Michael Grzeschik
@ 2010-08-24  8:39 ` Uwe Kleine-König
  2010-08-24  8:54   ` Michael Grzeschik
  2010-08-24  8:56   ` Jason Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2010-08-24  8:39 UTC (permalink / raw)
  To: linux-arm-kernel

Hallo Michael,

On Tue, Aug 24, 2010 at 09:57:39AM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  arch/arm/mach-mx3/devices.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
> index a4fd1a2..a3e0fe2 100644
> --- a/arch/arm/mach-mx3/devices.c
> +++ b/arch/arm/mach-mx3/devices.c
> @@ -374,12 +374,12 @@ struct platform_device imx_rtc_device0 = {
>  
>  static struct resource imx_kpp_resources[] = {
>  	{
> -		.start	= MX3x_KPP_BASE_ADDR,
> -		.end	= MX3x_KPP_BASE_ADDR + 0xf,
> -		.flags	= IORESOURCE_MEM
> +		.start	= KPP_BASE_ADDR,
> +		.end	= KPP_BASE_ADDR + SZ_4K - 1,
> +		.flags	= IORESOURCE_MEM,
>  	}, {
> -		.start	= MX3x_INT_KPP,
> -		.end	= MX3x_INT_KPP,
> +		.start	= MXC_INT_KPP,
> +		.end	= MXC_INT_KPP,
>  		.flags	= IORESOURCE_IRQ,
>  	},
>  };
what ist the exact problem you want to fix?  I'm OK with adding that
comma and using SZ_4K (assuming you checked it in the reference
manuals).  But why s/MX3x_KPP_BASE_ADDR/KPP_BASE_ADDR/ ?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

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

* [PATCH] MX3x: clean kpp resource structure definitions
  2010-08-24  8:39 ` Uwe Kleine-König
@ 2010-08-24  8:54   ` Michael Grzeschik
  2010-08-24  8:56   ` Jason Wang
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Grzeschik @ 2010-08-24  8:54 UTC (permalink / raw)
  To: linux-arm-kernel

Hallo Uwe,

On Tue, Aug 24, 2010 at 10:39:44AM +0200, Uwe Kleine-K?nig wrote:
> Hallo Michael,
> 
> On Tue, Aug 24, 2010 at 09:57:39AM +0200, Michael Grzeschik wrote:
> > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> > ---
> >  arch/arm/mach-mx3/devices.c |   10 +++++-----
> >  1 files changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
> > index a4fd1a2..a3e0fe2 100644
> > --- a/arch/arm/mach-mx3/devices.c
> > +++ b/arch/arm/mach-mx3/devices.c
> > @@ -374,12 +374,12 @@ struct platform_device imx_rtc_device0 = {
> >  
> >  static struct resource imx_kpp_resources[] = {
> >  	{
> > -		.start	= MX3x_KPP_BASE_ADDR,
> > -		.end	= MX3x_KPP_BASE_ADDR + 0xf,
> > -		.flags	= IORESOURCE_MEM
> > +		.start	= KPP_BASE_ADDR,
> > +		.end	= KPP_BASE_ADDR + SZ_4K - 1,
> > +		.flags	= IORESOURCE_MEM,
> >  	}, {
> > -		.start	= MX3x_INT_KPP,
> > -		.end	= MX3x_INT_KPP,
> > +		.start	= MXC_INT_KPP,
> > +		.end	= MXC_INT_KPP,
> >  		.flags	= IORESOURCE_IRQ,
> >  	},
> >  };
> what ist the exact problem you want to fix?
> I'm OK with adding that
> comma and using SZ_4K (assuming you checked it in the reference
> manuals).
Yes i looked for it in the reference manuals. So it should be ok.

> But why s/MX3x_KPP_BASE_ADDR/KPP_BASE_ADDR/ ?
I didn't see that in mx3x.h these Symbols are defined as deprecated.
So you are right and we better stay with the MX3x_* Prefix.

I think you could take the SZ_4K into one of your patches when you are going
to touch the devices.c again. Or do you prefer a oneline patch?

Michael

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

* [PATCH] MX3x: clean kpp resource structure definitions
  2010-08-24  8:39 ` Uwe Kleine-König
  2010-08-24  8:54   ` Michael Grzeschik
@ 2010-08-24  8:56   ` Jason Wang
  1 sibling, 0 replies; 4+ messages in thread
From: Jason Wang @ 2010-08-24  8:56 UTC (permalink / raw)
  To: linux-arm-kernel

Uwe Kleine-K?nig wrote:
> Hallo Michael,
>
> On Tue, Aug 24, 2010 at 09:57:39AM +0200, Michael Grzeschik wrote:
>   
>> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
>> ---
>>  arch/arm/mach-mx3/devices.c |   10 +++++-----
>>  1 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
>> index a4fd1a2..a3e0fe2 100644
>> --- a/arch/arm/mach-mx3/devices.c
>> +++ b/arch/arm/mach-mx3/devices.c
>> @@ -374,12 +374,12 @@ struct platform_device imx_rtc_device0 = {
>>  
>>  static struct resource imx_kpp_resources[] = {
>>  	{
>> -		.start	= MX3x_KPP_BASE_ADDR,
>> -		.end	= MX3x_KPP_BASE_ADDR + 0xf,
>> -		.flags	= IORESOURCE_MEM
>> +		.start	= KPP_BASE_ADDR,
>> +		.end	= KPP_BASE_ADDR + SZ_4K - 1,
>> +		.flags	= IORESOURCE_MEM,
>>  	}, {
>> -		.start	= MX3x_INT_KPP,
>> -		.end	= MX3x_INT_KPP,
>> +		.start	= MXC_INT_KPP,
>> +		.end	= MXC_INT_KPP,
>>  		.flags	= IORESOURCE_IRQ,
>>  	},
>>  };
>>     
:) The final goal is to build all i.MX platforms into a single kernel, 
your change will add troubles for that.

Regards,
Jason.
> what ist the exact problem you want to fix?  I'm OK with adding that
> comma and using SZ_4K (assuming you checked it in the reference
> manuals).  But why s/MX3x_KPP_BASE_ADDR/KPP_BASE_ADDR/ ?
>
> Best regards
> Uwe
>
>   

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

end of thread, other threads:[~2010-08-24  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-24  7:57 [PATCH] MX3x: clean kpp resource structure definitions Michael Grzeschik
2010-08-24  8:39 ` Uwe Kleine-König
2010-08-24  8:54   ` Michael Grzeschik
2010-08-24  8:56   ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.