public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] what's the problem with CBUS ?
@ 2010-12-27 17:13 Felipe Balbi
  2010-12-27 17:18 ` Felipe Balbi
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2010-12-27 17:13 UTC (permalink / raw)
  Cc: Linux OMAP Mailing List

Hi Tony,

What was the problem you saw with N810 which caused the need for
commit fc8c2f1dba400e9a0d1d82756e0e2f52dfe2f4b6, quoted below ?

I mean, looking into the code, all retu_rtc_do_reset() does is setup a
few default values on a few registers and that'll only be used if the
calibration register has a value of 'zero', so I'm suspecting something
(NOLO ?) toggles the gpio reset line on retu before giving control back
to kernel ?!?

Also, the rtc->reset_occured flag seems to be quite useless as it's
never read, only written.

When you figured you needed to disable retu_rtc_do_reset() did you get
any Kernel Oops or N810 simply got stuck ? If it got stuck, it could be
that nothing is calling complete(&rtc->sync), which would mean no RTC
IRQ is happening after a reset.

> Author: Tony Lindgren <tony@atomide.com>
> Date:   Wed Nov 24 17:21:37 2010 -0800
> 
>     cbus: Disable retu_rtc_do_reset for now
>     
>     Otherwise interrupts get enabled too early.
>     
>     This is only a temporary fix to boot N810. For
>     some reason N800 does not need this.
>     
>     Signed-off-by: Tony Lindgren <tony@atomide.com>
> 
> diff --git a/drivers/cbus/retu-rtc.c b/drivers/cbus/retu-rtc.c
> index c0fe481..34fb689 100644
> --- a/drivers/cbus/retu-rtc.c
> +++ b/drivers/cbus/retu-rtc.c
> @@ -309,9 +309,10 @@ static int __init retu_rtc_probe(struct platform_device *pdev)
>          * power */
>         if (retu_read_reg(RETU_REG_RTCCALR) & 0x00ff)
>                 rtc->reset_occurred = 0;
> +#if 0
>         else
>                 retu_rtc_do_reset(rtc);
> -
> +#endif
>  
>         rtc->rtc = rtc_device_register(pdev->name, &pdev->dev, &
>                         retu_rtc_ops, THIS_MODULE);


-- 
balbi

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

end of thread, other threads:[~2011-01-01  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 17:13 [QUESTION] what's the problem with CBUS ? Felipe Balbi
2010-12-27 17:18 ` Felipe Balbi
2010-12-30 20:53   ` Tony Lindgren
2011-01-01  0:01     ` Felipe Balbi

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