qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v4] arm_mptimer: Convert to use ptimer
Date: Tue, 13 Oct 2015 23:51:41 +0300	[thread overview]
Message-ID: <561D6EDD.9080209@gmail.com> (raw)
In-Reply-To: <561D257E.5040700@gmail.com>

13.10.2015 18:38, Dmitry Osipenko пишет:
> 13.10.2015 17:11, Dmitry Osipenko пишет:
>> +        ptimer_set_limit(tb->timer, value, 0);
>> +        ptimer_set_count(tb->timer, value);
>>
>
> Umm... looking more at these lines, I think it might put in a trouble in some
> corner case. It might worth trying to make ptimer more flexible rather than to
> workaround it's imperfection.
>

I looked into moving specific trigger/start/stop logic into the ptimer and it 
really doesn't worth churning the ptimer code, since no other device has similar 
requirements (or they are just incomplete/broken). I'll add one-line patch in V5 
for ptimer_set_limit() to make ptimer_get_count() return correct value for the 
disabled timer, so we won't need the above ad-hoc.

-- 
Dmitry

      reply	other threads:[~2015-10-13 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 14:11 [Qemu-devel] [PATCH v4] arm_mptimer: Convert to use ptimer Dmitry Osipenko
2015-10-13 15:38 ` Dmitry Osipenko
2015-10-13 20:51   ` Dmitry Osipenko [this message]

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=561D6EDD.9080209@gmail.com \
    --to=digetx@gmail.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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).