linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: anarsoul@gmail.com (Vasily Khoruzhick)
To: linux-arm-kernel@lists.infradead.org
Subject: Problem with s3c24xx pwm driver
Date: Thu, 24 Sep 2009 11:54:56 +0300	[thread overview]
Message-ID: <200909241155.01206.anarsoul@gmail.com> (raw)
In-Reply-To: <f17812d70909231525t594704c5u781e2221481676a0@mail.gmail.com>

? ????????? ?? 24 ???????? 2009 01:25:46 ????? Eric Miao ???????:

> No, it doesn't.
> 
> So my suggestion at the moment is that you may:
> 
> 1. try dump the registers after pwm_enable() and see if all are setup
> correctly,
> 
> 2. and make sure those registers are write-able at that time (some
> SoC doesn't allow register writing when the controller is disabled).
> 

Here's a trace with my comments, but I can't see anything wrong in this trace:

/* Configuring backlight level */
pwm_config:271: TCMPB, wrote: 0000010a, read: 0000010a <- Configure duty
pwm_config:274: TCNTB, wrote: 0000012a, read: 0000012a <- Configure period
pwm_config:281: TCON, wrote: 0051990f, read: 0051990f <- Set manual update 
flag
pwm_config:286: TCON, wrote: 0051990d, read: 0051990d <- Clear manual update 
flag
pwm_enable:149: TCON, wrote: 0051990d, read: 0051990d <- Enable called each 
time if backlight level != 0
/* Configuring backlight level */
pwm_config:271: TCMPB, wrote: 000000a3, read: 000000a3
pwm_config:274: TCNTB, wrote: 0000012a, read: 0000012a
pwm_config:281: TCON, wrote: 0051990f, read: 0051990f
pwm_config:286: TCON, wrote: 0051990d, read: 0051990d
pwm_enable:149: TCON, wrote: 0051990d, read: 0051990d
/* Configuring backlight level */
pwm_config:271: TCMPB, wrote: 00000112, read: 00000112
pwm_config:274: TCNTB, wrote: 0000012a, read: 0000012a
pwm_config:281: TCON, wrote: 0051990f, read: 0051990f
pwm_config:286: TCON, wrote: 0051990d, read: 0051990d
pwm_enable:149: TCON, wrote: 0051990d, read: 0051990d
/* Works fine until next sequence */
/* Disabling backlight */
pwm_config:271: TCMPB, wrote: 00000129, read: 00000129
pwm_config:274: TCNTB, wrote: 0000012a, read: 0000012a
pwm_config:281: TCON, wrote: 0051990f, read: 0051990f
pwm_config:286: TCON, wrote: 0051990d, read: 0051990d
pwm_disable:170: TCON, wrote: 0051990c, read: 0051990c <- Clear start flag

/* Enabling backlight back, but it doesn't work :( */
pwm_config:271: TCMPB, wrote: 00000124, read: 00000124 <- Configure duty
pwm_config:274: TCNTB, wrote: 0000012a, read: 0000012a <- Configure period
pwm_config:281: TCON, wrote: 0051990e, read: 0051990e <- Set manual update 
flag
pwm_config:286: TCON, wrote: 0051990c, read: 0051990c <- Clear manual update 
flag
pwm_enable:149: TCON, wrote: 0051990d, read: 0051990d <- Set start flag
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20090924/cd49e4b9/attachment.sig>

  reply	other threads:[~2009-09-24  8:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 15:24 Problem with s3c24xx pwm driver Vasily Khoruzhick
2009-09-23 19:03 ` Eric Miao
2009-09-23 19:16   ` Vasily Khoruzhick
2009-09-23 19:23   ` Vasily Khoruzhick
2009-09-23 22:25     ` Eric Miao
2009-09-24  8:54       ` Vasily Khoruzhick [this message]
2009-09-24 14:33       ` Vasily Khoruzhick
2009-09-24 20:34         ` Russell King - ARM Linux
2009-09-25  6:07           ` Vasily Khoruzhick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200909241155.01206.anarsoul@gmail.com \
    --to=anarsoul@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).