public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap3: Change the default silicon
@ 2009-10-29 14:35 Sanjeev Premi
  2009-11-12 22:21 ` Tony Lindgren
  0 siblings, 1 reply; 7+ messages in thread
From: Sanjeev Premi @ 2009-10-29 14:35 UTC (permalink / raw)
  To: linux-omap; +Cc: Sanjeev Premi

Currently the default silicon - in absence of
identification - is set to OMAP3630 ES1.0.

Though, condition may/should not arise; but
the default should be latest in the most
common silicon variant - currently OMAP3430
ES3.1.

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 arch/arm/mach-omap2/id.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 1c15112..0162623 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -243,8 +243,8 @@ void __init omap3_check_revision(void)
 		}
 		break;
 	default:
-		/* Unknown default to latest silicon rev as default*/
-		omap_revision = OMAP3630_REV_ES1_0;
+		/* Unknown. Default to latest among all variants */
+		omap_revision = OMAP3430_REV_ES3_1;
 	}
 }
 
-- 
1.6.2.2


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

* Re: [PATCH] omap3: Change the default silicon
  2009-10-29 14:35 [PATCH] omap3: Change the default silicon Sanjeev Premi
@ 2009-11-12 22:21 ` Tony Lindgren
  2009-11-13  5:11   ` Gadiyar, Anand
  0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2009-11-12 22:21 UTC (permalink / raw)
  To: Sanjeev Premi; +Cc: linux-omap

* Sanjeev Premi <premi@ti.com> [091029 07:35]:
> Currently the default silicon - in absence of
> identification - is set to OMAP3630 ES1.0.
> 
> Though, condition may/should not arise; but
> the default should be latest in the most
> common silicon variant - currently OMAP3430
> ES3.1.

Is this still needed? To me it seems more likely there will
more 3630 based silicon than 3430 based silicon?

Regards,

Tony
 
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> ---
>  arch/arm/mach-omap2/id.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
> index 1c15112..0162623 100644
> --- a/arch/arm/mach-omap2/id.c
> +++ b/arch/arm/mach-omap2/id.c
> @@ -243,8 +243,8 @@ void __init omap3_check_revision(void)
>  		}
>  		break;
>  	default:
> -		/* Unknown default to latest silicon rev as default*/
> -		omap_revision = OMAP3630_REV_ES1_0;
> +		/* Unknown. Default to latest among all variants */
> +		omap_revision = OMAP3430_REV_ES3_1;
>  	}
>  }
>  
> -- 
> 1.6.2.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* RE: [PATCH] omap3: Change the default silicon
  2009-11-12 22:21 ` Tony Lindgren
@ 2009-11-13  5:11   ` Gadiyar, Anand
  2009-11-13 10:10     ` Premi, Sanjeev
  0 siblings, 1 reply; 7+ messages in thread
From: Gadiyar, Anand @ 2009-11-13  5:11 UTC (permalink / raw)
  To: Tony Lindgren, Premi, Sanjeev; +Cc: linux-omap@vger.kernel.org

Tony Lindgren wrote:
> * Sanjeev Premi <premi@ti.com> [091029 07:35]:
> > Currently the default silicon - in absence of
> > identification - is set to OMAP3630 ES1.0.
> > 
> > Though, condition may/should not arise; but
> > the default should be latest in the most
> > common silicon variant - currently OMAP3430
> > ES3.1.
> 
> Is this still needed? To me it seems more likely there will
> more 3630 based silicon than 3430 based silicon?
> 

3430 ES3.1s are the most common I believe. All boards in the wild
are 3430 based.

3630 is just coming up and will take a while to be as common.

IMO, 3430 ES3.1 should be default.

- Anand


> Regards,
> 
> Tony
>  
> > Signed-off-by: Sanjeev Premi <premi@ti.com>
> > ---
> >  arch/arm/mach-omap2/id.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
> > index 1c15112..0162623 100644
> > --- a/arch/arm/mach-omap2/id.c
> > +++ b/arch/arm/mach-omap2/id.c
> > @@ -243,8 +243,8 @@ void __init omap3_check_revision(void)
> >  		}
> >  		break;
> >  	default:
> > -		/* Unknown default to latest silicon rev as default*/
> > -		omap_revision = OMAP3630_REV_ES1_0;
> > +		/* Unknown. Default to latest among all variants */
> > +		omap_revision = OMAP3430_REV_ES3_1;
> >  	}
> >  }
> >  

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

* RE: [PATCH] omap3: Change the default silicon
  2009-11-13  5:11   ` Gadiyar, Anand
@ 2009-11-13 10:10     ` Premi, Sanjeev
  2009-11-13 10:15       ` Nishanth Menon
  0 siblings, 1 reply; 7+ messages in thread
From: Premi, Sanjeev @ 2009-11-13 10:10 UTC (permalink / raw)
  To: Gadiyar, Anand, Tony Lindgren; +Cc: linux-omap@vger.kernel.org

> -----Original Message-----
> From: Gadiyar, Anand 
> Sent: Friday, November 13, 2009 10:41 AM
> To: Tony Lindgren; Premi, Sanjeev
> Cc: linux-omap@vger.kernel.org
> Subject: RE: [PATCH] omap3: Change the default silicon
> 
> Tony Lindgren wrote:
> > * Sanjeev Premi <premi@ti.com> [091029 07:35]:
> > > Currently the default silicon - in absence of
> > > identification - is set to OMAP3630 ES1.0.
> > > 
> > > Though, condition may/should not arise; but
> > > the default should be latest in the most
> > > common silicon variant - currently OMAP3430
> > > ES3.1.
> > 
> > Is this still needed? To me it seems more likely there will
> > more 3630 based silicon than 3430 based silicon?
> > 
> 
> 3430 ES3.1s are the most common I believe. All boards in the wild
> are 3430 based.
> 
> 3630 is just coming up and will take a while to be as common.
> 
> IMO, 3430 ES3.1 should be default.
> 
> - Anand

[sp] That's exactly the reason for this patch.
     There is a small typo in the comment though :(

		/* Unknown. Default to latest among all variants */
Should be:
		/* Unknown. Default to common among all variants */

     Sending a v2 for the same.

~sanjeev

> 
> 
> > Regards,
> > 
> > Tony
> >  
> > > Signed-off-by: Sanjeev Premi <premi@ti.com>
> > > ---
> > >  arch/arm/mach-omap2/id.c |    4 ++--
> > >  1 files changed, 2 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
> > > index 1c15112..0162623 100644
> > > --- a/arch/arm/mach-omap2/id.c
> > > +++ b/arch/arm/mach-omap2/id.c
> > > @@ -243,8 +243,8 @@ void __init omap3_check_revision(void)
> > >  		}
> > >  		break;
> > >  	default:
> > > -		/* Unknown default to latest silicon rev as default*/
> > > -		omap_revision = OMAP3630_REV_ES1_0;
> > > +		/* Unknown. Default to latest among all variants */
> > > +		omap_revision = OMAP3430_REV_ES3_1;
> > >  	}
> > >  }
> > >  
> 

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

* Re: [PATCH] omap3: Change the default silicon
  2009-11-13 10:10     ` Premi, Sanjeev
@ 2009-11-13 10:15       ` Nishanth Menon
  2009-11-13 10:53         ` Premi, Sanjeev
  0 siblings, 1 reply; 7+ messages in thread
From: Nishanth Menon @ 2009-11-13 10:15 UTC (permalink / raw)
  To: Premi, Sanjeev; +Cc: Gadiyar, Anand, Tony Lindgren, linux-omap@vger.kernel.org

Premi, Sanjeev had written, on 11/13/2009 04:10 AM, the following:
>> -----Original Message-----
>> From: Gadiyar, Anand 
>> Sent: Friday, November 13, 2009 10:41 AM
>> To: Tony Lindgren; Premi, Sanjeev
>> Cc: linux-omap@vger.kernel.org
>> Subject: RE: [PATCH] omap3: Change the default silicon
>>
>> Tony Lindgren wrote:
>>> * Sanjeev Premi <premi@ti.com> [091029 07:35]:
>>>> Currently the default silicon - in absence of
>>>> identification - is set to OMAP3630 ES1.0.
>>>>
>>>> Though, condition may/should not arise; but
>>>> the default should be latest in the most
>>>> common silicon variant - currently OMAP3430
>>>> ES3.1.
>>> Is this still needed? To me it seems more likely there will
>>> more 3630 based silicon than 3430 based silicon?
>>>
>> 3430 ES3.1s are the most common I believe. All boards in the wild
>> are 3430 based.
>>
>> 3630 is just coming up and will take a while to be as common.
>>
>> IMO, 3430 ES3.1 should be default.
>>
>> - Anand
> 
> [sp] That's exactly the reason for this patch.
>      There is a small typo in the comment though :(
> 
> 		/* Unknown. Default to latest among all variants */
> Should be:
> 		/* Unknown. Default to common among all variants */
> 
>      Sending a v2 for the same.
> 

I believe this patch should be dropped -> here is why -> if you have new 
silicons that are in 3430 category, you should be sending patches for 
them ;)..

The latest and greatest in the bucket of silicons is 3630 and I would 
rather go with felipe's patch [1] cleaning up the id.c than this -> in 
my opinion, hitting this condition is only because you have the next 
generation of devices..


-- 
Regards,
Nishanth Menon

Ref:
[1]: http://patchwork.kernel.org/patch/59540/

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

* RE: [PATCH] omap3: Change the default silicon
  2009-11-13 10:15       ` Nishanth Menon
@ 2009-11-13 10:53         ` Premi, Sanjeev
  2009-11-13 11:01           ` Nishanth Menon
  0 siblings, 1 reply; 7+ messages in thread
From: Premi, Sanjeev @ 2009-11-13 10:53 UTC (permalink / raw)
  To: Menon, Nishanth; +Cc: Gadiyar, Anand, Tony Lindgren, linux-omap@vger.kernel.org

> -----Original Message-----
> From: Menon, Nishanth 
> Sent: Friday, November 13, 2009 3:46 PM
> To: Premi, Sanjeev
> Cc: Gadiyar, Anand; Tony Lindgren; linux-omap@vger.kernel.org
> Subject: Re: [PATCH] omap3: Change the default silicon
> 
> Premi, Sanjeev had written, on 11/13/2009 04:10 AM, the following:
> >> -----Original Message-----
> >> From: Gadiyar, Anand 
> >> Sent: Friday, November 13, 2009 10:41 AM
> >> To: Tony Lindgren; Premi, Sanjeev
> >> Cc: linux-omap@vger.kernel.org
> >> Subject: RE: [PATCH] omap3: Change the default silicon
> >>
> >> Tony Lindgren wrote:
> >>> * Sanjeev Premi <premi@ti.com> [091029 07:35]:
> >>>> Currently the default silicon - in absence of
> >>>> identification - is set to OMAP3630 ES1.0.
> >>>>
> >>>> Though, condition may/should not arise; but
> >>>> the default should be latest in the most
> >>>> common silicon variant - currently OMAP3430
> >>>> ES3.1.
> >>> Is this still needed? To me it seems more likely there will
> >>> more 3630 based silicon than 3430 based silicon?
> >>>
> >> 3430 ES3.1s are the most common I believe. All boards in the wild
> >> are 3430 based.
> >>
> >> 3630 is just coming up and will take a while to be as common.
> >>
> >> IMO, 3430 ES3.1 should be default.
> >>
> >> - Anand
> > 
> > [sp] That's exactly the reason for this patch.
> >      There is a small typo in the comment though :(
> > 
> > 		/* Unknown. Default to latest among all variants */
> > Should be:
> > 		/* Unknown. Default to common among all variants */
> > 
> >      Sending a v2 for the same.
> > 
> 
> I believe this patch should be dropped -> here is why -> if 
> you have new 
> silicons that are in 3430 category, you should be sending patches for 
> them ;)..

Default != new si

> 
> The latest and greatest in the bucket of silicons is 3630 and I would 
> rather go with felipe's patch [1] cleaning up the id.c than 

No issues with felipe's patch. It is cleaning the code style.

> this -> in 
> my opinion, hitting this condition is only because you have the next 
> generation of devices..

Since we are talking OMAP3 derivatives, the default should be the
base - in case the condition ever arises. The fall back should
usually be 'most common' than 'latest'.

~sanjeev
> 
> 
> -- 
> Regards,
> Nishanth Menon
> 
> Ref:
> [1]: http://patchwork.kernel.org/patch/59540/
> 

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

* Re: [PATCH] omap3: Change the default silicon
  2009-11-13 10:53         ` Premi, Sanjeev
@ 2009-11-13 11:01           ` Nishanth Menon
  0 siblings, 0 replies; 7+ messages in thread
From: Nishanth Menon @ 2009-11-13 11:01 UTC (permalink / raw)
  To: Premi, Sanjeev; +Cc: Gadiyar, Anand, Tony Lindgren, linux-omap@vger.kernel.org

Premi, Sanjeev had written, on 11/13/2009 04:53 AM, the following:
>> -----Original Message-----
>> From: Menon, Nishanth 
>> Sent: Friday, November 13, 2009 3:46 PM
>> To: Premi, Sanjeev
>> Cc: Gadiyar, Anand; Tony Lindgren; linux-omap@vger.kernel.org
>> Subject: Re: [PATCH] omap3: Change the default silicon
>>
>> Premi, Sanjeev had written, on 11/13/2009 04:10 AM, the following:
>>>> -----Original Message-----
>>>> From: Gadiyar, Anand 
>>>> Sent: Friday, November 13, 2009 10:41 AM
>>>> To: Tony Lindgren; Premi, Sanjeev
>>>> Cc: linux-omap@vger.kernel.org
>>>> Subject: RE: [PATCH] omap3: Change the default silicon
>>>>
>>>> Tony Lindgren wrote:
>>>>> * Sanjeev Premi <premi@ti.com> [091029 07:35]:
>>>>>> Currently the default silicon - in absence of
>>>>>> identification - is set to OMAP3630 ES1.0.
>>>>>>
>>>>>> Though, condition may/should not arise; but
>>>>>> the default should be latest in the most
>>>>>> common silicon variant - currently OMAP3430
>>>>>> ES3.1.
>>>>> Is this still needed? To me it seems more likely there will
>>>>> more 3630 based silicon than 3430 based silicon?
>>>>>
>>>> 3430 ES3.1s are the most common I believe. All boards in the wild
>>>> are 3430 based.
>>>>
>>>> 3630 is just coming up and will take a while to be as common.
>>>>
>>>> IMO, 3430 ES3.1 should be default.
>>>>
>>>> - Anand
>>> [sp] That's exactly the reason for this patch.
>>>      There is a small typo in the comment though :(
>>>
>>> 		/* Unknown. Default to latest among all variants */
>>> Should be:
>>> 		/* Unknown. Default to common among all variants */
>>>
>>>      Sending a v2 for the same.
>>>
>> I believe this patch should be dropped -> here is why -> if 
>> you have new 
>> silicons that are in 3430 category, you should be sending patches for 
>> them ;)..
> 
> Default != new si

IMHO, I would rather have it as a BUG() instead of giving something 
default there.. essentially hitting that case points at: "hey here is a 
chip the programmers did not think about, let me be smart and try to 
dream up what they might be using" - lets face it, our code aint' that 
smart.. we have two options:
a) Make a guess what it might be
b) force the programmer to fix the bug and send us the patch ;)..
just my 2 cents..

> 
>> The latest and greatest in the bucket of silicons is 3630 and I would 
>> rather go with felipe's patch [1] cleaning up the id.c than 
> 
> No issues with felipe's patch. It is cleaning the code style.
> 
>> this -> in 
>> my opinion, hitting this condition is only because you have the next 
>> generation of devices..
> 
> Since we are talking OMAP3 derivatives, the default should be the
> base - in case the condition ever arises. The fall back should
> usually be 'most common' than 'latest'.
> 
> ~sanjeev
>>
>> -- 
>> Regards,
>> Nishanth Menon
>>
>> Ref:
>> [1]: http://patchwork.kernel.org/patch/59540/


-- 
Regards,
Nishanth Menon

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

end of thread, other threads:[~2009-11-13 11:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 14:35 [PATCH] omap3: Change the default silicon Sanjeev Premi
2009-11-12 22:21 ` Tony Lindgren
2009-11-13  5:11   ` Gadiyar, Anand
2009-11-13 10:10     ` Premi, Sanjeev
2009-11-13 10:15       ` Nishanth Menon
2009-11-13 10:53         ` Premi, Sanjeev
2009-11-13 11:01           ` Nishanth Menon

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