All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] RTC: Ensure msecure is mux'd to be able to set RTC for beagleboard
@ 2011-06-16  6:07 Jingdong Lu
  2011-06-16  6:07 ` [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC Jingdong Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Jingdong Lu @ 2011-06-16  6:07 UTC (permalink / raw)
  To: yocto

From: Jingdong Lu <jingdong.lu@windriver.com>

Ensure msecure is mux'd to be able to set the RTC for beagleboard.
Fixes bug [YOCTO #767]

Jingdong Lu (1):
  RTC: Ensure msecure is mux'd to be able to set RTC

 arch/arm/mach-omap2/board-omap3beagle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)



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

* [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16  6:07 [PATCH 0/1] RTC: Ensure msecure is mux'd to be able to set RTC for beagleboard Jingdong Lu
@ 2011-06-16  6:07 ` Jingdong Lu
  2011-06-16  6:13   ` Liming Wang
  2011-06-16  7:27   ` Koen Kooi
  0 siblings, 2 replies; 7+ messages in thread
From: Jingdong Lu @ 2011-06-16  6:07 UTC (permalink / raw)
  To: yocto

From: Jingdong Lu <jingdong.lu@windriver.com>

commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
"Msecure" signal provides for protection of the RTC register in TPS65950 be
disabling that function via a control signal from the OMAP3530. So ensure
msecure is mux'd to be able to set the RTC.

Tested with a BeagleBoard C4.
Fixes bug [YOCTO #767]

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Integrated-by: Jingdong Lu <jingdong.lu@windriver.com>
---
 arch/arm/mach-omap2/board-omap3beagle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index af1166b..925c0b3 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
 	usb_ehci_init(&ehci_pdata);
 	omap3beagle_flash_init();
 
+	/* Ensure msecure is mux'd to be able to set the RTC. */
+	omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
+
 	/* Ensure SDRC pins are mux'd for self-refresh */
 	omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
 	omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
-- 
1.7.0.4



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

* Re: [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16  6:07 ` [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC Jingdong Lu
@ 2011-06-16  6:13   ` Liming Wang
  2011-06-16 13:20     ` Bruce Ashfield
  2011-06-16  7:27   ` Koen Kooi
  1 sibling, 1 reply; 7+ messages in thread
From: Liming Wang @ 2011-06-16  6:13 UTC (permalink / raw)
  To: Jingdong Lu; +Cc: yocto

On 2011-6-16 14:07, Jingdong Lu wrote:
> From: Jingdong Lu<jingdong.lu@windriver.com>
>
> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
It's fine if you break this line into two lines.
> arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
> "Msecure" signal provides for protection of the RTC register in TPS65950 be
> disabling that function via a control signal from the OMAP3530. So ensure
> msecure is mux'd to be able to set the RTC.
>
> Tested with a BeagleBoard C4.
> Fixes bug [YOCTO #767]
I think it's best  to put your comment in the top line.

Liming Wang
> Signed-off-by: Alexander Holler<holler@ahsoftware.de>
> Signed-off-by: Tony Lindgren<tony@atomide.com>
> Integrated-by: Jingdong Lu<jingdong.lu@windriver.com>
> ---
>   arch/arm/mach-omap2/board-omap3beagle.c |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index af1166b..925c0b3 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
>   	usb_ehci_init(&ehci_pdata);
>   	omap3beagle_flash_init();
>
> +	/* Ensure msecure is mux'd to be able to set the RTC. */
> +	omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
> +
>   	/* Ensure SDRC pins are mux'd for self-refresh */
>   	omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
>   	omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);



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

* Re: [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16  6:07 ` [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC Jingdong Lu
  2011-06-16  6:13   ` Liming Wang
@ 2011-06-16  7:27   ` Koen Kooi
  2011-06-16 13:22     ` Bruce Ashfield
  1 sibling, 1 reply; 7+ messages in thread
From: Koen Kooi @ 2011-06-16  7:27 UTC (permalink / raw)
  To: Jingdong Lu; +Cc: yocto


Op 16 jun 2011, om 08:07 heeft Jingdong Lu het volgende geschreven:

> From: Jingdong Lu <jingdong.lu@windriver.com>
> 
> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

When I do 'git show e2a346a2a054f702fd76f328ff747b9ad9264a4' I get:

commit e2a346a2a054f702fd76f328ff747b9ad9264a4c
Author: Alexander Holler <holler@ahsoftware.de>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Date:   Tue Apr 5 15:40:08 2011 +0200

    arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC
    
    Without msecure beeing high it isn't possible to set (or start)
    the RTC.
    
    Tested with a BeagleBoard C4.
    
    Signed-off-by: Alexander Holler <holler@ahsoftware.de>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index be71426..d64ed97 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -579,6 +579,9 @@ static void __init omap3_beagle_init(void)
        omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions,
                             ARRAY_SIZE(omap3beagle_nand_partitions));
 
+       /* Ensure msecure is mux'd to be able to set the RTC. */
+       omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
+
        /* Ensure SDRC pins are mux'd for self-refresh */
        omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
        omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);


So if you're going to change the author, you'd also need to remove the SOBs.

> 
> arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
> "Msecure" signal provides for protection of the RTC register in TPS65950 be
> disabling that function via a control signal from the OMAP3530. So ensure
> msecure is mux'd to be able to set the RTC.
> 
> Tested with a BeagleBoard C4.
> Fixes bug [YOCTO #767]
> 
> Signed-off-by: Alexander Holler <holler@ahsoftware.de>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> Integrated-by: Jingdong Lu <jingdong.lu@windriver.com>
> ---
> arch/arm/mach-omap2/board-omap3beagle.c |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index af1166b..925c0b3 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
> 	usb_ehci_init(&ehci_pdata);
> 	omap3beagle_flash_init();
> 
> +	/* Ensure msecure is mux'd to be able to set the RTC. */
> +	omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
> +
> 	/* Ensure SDRC pins are mux'd for self-refresh */
> 	omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
> 	omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
> -- 
> 1.7.0.4
> 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16  6:13   ` Liming Wang
@ 2011-06-16 13:20     ` Bruce Ashfield
  2011-06-17  2:46       ` Liming Wang
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Ashfield @ 2011-06-16 13:20 UTC (permalink / raw)
  To: Liming Wang; +Cc: yocto

On 06/16/11 02:13, Liming Wang wrote:
> On 2011-6-16 14:07, Jingdong Lu wrote:
>> From: Jingdong Lu<jingdong.lu@windriver.com>
>>
>> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from
>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
> It's fine if you break this line into two lines.
>> arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
>> "Msecure" signal provides for protection of the RTC register in
>> TPS65950 be
>> disabling that function via a control signal from the OMAP3530. So ensure
>> msecure is mux'd to be able to set the RTC.
>>
>> Tested with a BeagleBoard C4.
>> Fixes bug [YOCTO #767]
> I think it's best to put your comment in the top line.

And we don't want the bug tracking information directly
in the kernel commits, it just ends up cluttering things.

It's fine to include this in the 0/N email, but not in
the commit message itself.

Cheers,

Bruce

>
> Liming Wang
>> Signed-off-by: Alexander Holler<holler@ahsoftware.de>
>> Signed-off-by: Tony Lindgren<tony@atomide.com>
>> Integrated-by: Jingdong Lu<jingdong.lu@windriver.com>
>> ---
>> arch/arm/mach-omap2/board-omap3beagle.c | 3 +++
>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c
>> b/arch/arm/mach-omap2/board-omap3beagle.c
>> index af1166b..925c0b3 100644
>> --- a/arch/arm/mach-omap2/board-omap3beagle.c
>> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
>> @@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
>> usb_ehci_init(&ehci_pdata);
>> omap3beagle_flash_init();
>>
>> + /* Ensure msecure is mux'd to be able to set the RTC. */
>> + omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
>> +
>> /* Ensure SDRC pins are mux'd for self-refresh */
>> omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
>> omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16  7:27   ` Koen Kooi
@ 2011-06-16 13:22     ` Bruce Ashfield
  0 siblings, 0 replies; 7+ messages in thread
From: Bruce Ashfield @ 2011-06-16 13:22 UTC (permalink / raw)
  To: Koen Kooi; +Cc: yocto

On 06/16/11 03:27, Koen Kooi wrote:
>
> Op 16 jun 2011, om 08:07 heeft Jingdong Lu het volgende geschreven:
>
>> From: Jingdong Lu<jingdong.lu@windriver.com>
>>
>> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>
> When I do 'git show e2a346a2a054f702fd76f328ff747b9ad9264a4' I get:
>
> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c
> Author: Alexander Holler<holler@ahsoftware.de>
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Date:   Tue Apr 5 15:40:08 2011 +0200
>
>      arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC
>
>      Without msecure beeing high it isn't possible to set (or start)
>      the RTC.
>
>      Tested with a BeagleBoard C4.
>
>      Signed-off-by: Alexander Holler<holler@ahsoftware.de>
>      Signed-off-by: Tony Lindgren<tony@atomide.com>
>
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index be71426..d64ed97 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -579,6 +579,9 @@ static void __init omap3_beagle_init(void)
>          omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions,
>                               ARRAY_SIZE(omap3beagle_nand_partitions));
>
> +       /* Ensure msecure is mux'd to be able to set the RTC. */
> +       omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
> +
>          /* Ensure SDRC pins are mux'd for self-refresh */
>          omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
>          omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
>
>
> So if you're going to change the author, you'd also need to remove the SOBs.

It's likely just a glitch in patch generation.

Jindong: did you cherry-pick or git am this for the import
into your tree ? Or did you use another technique ?
If done properly, the author is always maintained in our
imported patches.

Cheers,

Bruce

>
>>
>> arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
>> "Msecure" signal provides for protection of the RTC register in TPS65950 be
>> disabling that function via a control signal from the OMAP3530. So ensure
>> msecure is mux'd to be able to set the RTC.
>>
>> Tested with a BeagleBoard C4.
>> Fixes bug [YOCTO #767]
>>
>> Signed-off-by: Alexander Holler<holler@ahsoftware.de>
>> Signed-off-by: Tony Lindgren<tony@atomide.com>
>> Integrated-by: Jingdong Lu<jingdong.lu@windriver.com>
>> ---
>> arch/arm/mach-omap2/board-omap3beagle.c |    3 +++
>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
>> index af1166b..925c0b3 100644
>> --- a/arch/arm/mach-omap2/board-omap3beagle.c
>> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
>> @@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
>> 	usb_ehci_init(&ehci_pdata);
>> 	omap3beagle_flash_init();
>>
>> +	/* Ensure msecure is mux'd to be able to set the RTC. */
>> +	omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
>> +
>> 	/* Ensure SDRC pins are mux'd for self-refresh */
>> 	omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
>> 	omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
>> --
>> 1.7.0.4
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC
  2011-06-16 13:20     ` Bruce Ashfield
@ 2011-06-17  2:46       ` Liming Wang
  0 siblings, 0 replies; 7+ messages in thread
From: Liming Wang @ 2011-06-17  2:46 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

On 2011-6-16 21:20, Bruce Ashfield wrote:
> On 06/16/11 02:13, Liming Wang wrote:
>> On 2011-6-16 14:07, Jingdong Lu wrote:
>>> From: Jingdong Lu<jingdong.lu@windriver.com>
>>>
>>> commit e2a346a2a054f702fd76f328ff747b9ad9264a4c from
>>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>> It's fine if you break this line into two lines.
>>> arm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC.
>>> "Msecure" signal provides for protection of the RTC register in
>>> TPS65950 be
>>> disabling that function via a control signal from the OMAP3530. So 
>>> ensure
>>> msecure is mux'd to be able to set the RTC.
>>>
>>> Tested with a BeagleBoard C4.
>>> Fixes bug [YOCTO #767]
>> I think it's best to put your comment in the top line.
>
> And we don't want the bug tracking information directly
> in the kernel commits, it just ends up cluttering things.
>
> It's fine to include this in the 0/N email, but not in
> the commit message itself.
Yes, I agree.
Jingdong should generate a new patch by cherry-pick or format-patch.

Liming Wang
>
> Cheers,
>
> Bruce
>
>>
>> Liming Wang
>>> Signed-off-by: Alexander Holler<holler@ahsoftware.de>
>>> Signed-off-by: Tony Lindgren<tony@atomide.com>
>>> Integrated-by: Jingdong Lu<jingdong.lu@windriver.com>
>>> ---
>>> arch/arm/mach-omap2/board-omap3beagle.c | 3 +++
>>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c
>>> b/arch/arm/mach-omap2/board-omap3beagle.c
>>> index af1166b..925c0b3 100644
>>> --- a/arch/arm/mach-omap2/board-omap3beagle.c
>>> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
>>> @@ -580,6 +580,9 @@ static void __init omap3_beagle_init(void)
>>> usb_ehci_init(&ehci_pdata);
>>> omap3beagle_flash_init();
>>>
>>> + /* Ensure msecure is mux'd to be able to set the RTC. */
>>> + omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
>>> +
>>> /* Ensure SDRC pins are mux'd for self-refresh */
>>> omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
>>> omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>



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

end of thread, other threads:[~2011-06-17  2:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16  6:07 [PATCH 0/1] RTC: Ensure msecure is mux'd to be able to set RTC for beagleboard Jingdong Lu
2011-06-16  6:07 ` [PATCH 1/1] RTC: Ensure msecure is mux'd to be able to set RTC Jingdong Lu
2011-06-16  6:13   ` Liming Wang
2011-06-16 13:20     ` Bruce Ashfield
2011-06-17  2:46       ` Liming Wang
2011-06-16  7:27   ` Koen Kooi
2011-06-16 13:22     ` Bruce Ashfield

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.