From: Sangbeom Kim <sbkim73@samsung.com>
To: 'Jamie Iles' <jamie@jamieiles.com>
Cc: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org,
ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org
Subject: RE: [PATCH v4 1/3] ARM: S5P: Add s5p_timer support for HRT
Date: Thu, 10 Mar 2011 13:48:22 +0900 [thread overview]
Message-ID: <002d01cbdede$65e19660$31a4c320$@com> (raw)
In-Reply-To: <20110309141016.GB2737@pulham.picochip.com>
Hi Jamie,
As you said, .shift = 32, is useless line.
And Do you mean that Is needed error handling of clk_enable like below?
clk_enable(timerclk);
if (IS_ERR(timerclk)){
clk_put(timerclk)
panic("failed to enable timers clock");
}
There is no another clk_enable for timerclk.
I will add clk_enable error handling code.
Thanks and regards,
S.B. Kim
On Wednesday, March 09, 2011 11:10 PM, Jamie Iles <Jamie@jamieiles.com>
wrote
> -----Original Message-----
> > +static struct clock_event_device time_event_device = {
> > + .name = "s5p_event_timer",
> > + .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
> > + .rating = 200,
> > + .shift = 32,
>
> You are using clockevents_calc_mult_shift so you don't need to specify
> .shift here.
>
> > + unsigned long event_id = timer_source.event_id;
> > + unsigned long source_id = timer_source.source_id;
> > +
> > + timerclk = clk_get(NULL, "timers");
> > + if (IS_ERR(timerclk))
> > + panic("failed to get timers clock for timer");
> > +
> > + clk_enable(timerclk);
>
> clk_enable() can fail, should you be checking the return here and the
> other clk_enable() calls?
>
> Jamie
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: sbkim73@samsung.com (Sangbeom Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 1/3] ARM: S5P: Add s5p_timer support for HRT
Date: Thu, 10 Mar 2011 13:48:22 +0900 [thread overview]
Message-ID: <002d01cbdede$65e19660$31a4c320$@com> (raw)
In-Reply-To: <20110309141016.GB2737@pulham.picochip.com>
Hi Jamie,
As you said, .shift = 32, is useless line.
And Do you mean that Is needed error handling of clk_enable like below?
clk_enable(timerclk);
if (IS_ERR(timerclk)){
clk_put(timerclk)
panic("failed to enable timers clock");
}
There is no another clk_enable for timerclk.
I will add clk_enable error handling code.
Thanks and regards,
S.B. Kim
On Wednesday, March 09, 2011 11:10 PM, Jamie Iles <Jamie@jamieiles.com>
wrote
> -----Original Message-----
> > +static struct clock_event_device time_event_device = {
> > + .name = "s5p_event_timer",
> > + .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
> > + .rating = 200,
> > + .shift = 32,
>
> You are using clockevents_calc_mult_shift so you don't need to specify
> .shift here.
>
> > + unsigned long event_id = timer_source.event_id;
> > + unsigned long source_id = timer_source.source_id;
> > +
> > + timerclk = clk_get(NULL, "timers");
> > + if (IS_ERR(timerclk))
> > + panic("failed to get timers clock for timer");
> > +
> > + clk_enable(timerclk);
>
> clk_enable() can fail, should you be checking the return here and the
> other clk_enable() calls?
>
> Jamie
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2011-03-10 4:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 2:13 [PATCH v4 0/3] ARM: S5P: Add HRT support for s5p series Sangbeom Kim
2011-03-09 2:13 ` Sangbeom Kim
2011-03-09 2:13 ` [PATCH v4 1/3] ARM: S5P: Add s5p_timer support for HRT Sangbeom Kim
2011-03-09 2:13 ` Sangbeom Kim
2011-03-09 14:10 ` Jamie Iles
2011-03-09 14:10 ` Jamie Iles
2011-03-10 4:48 ` Sangbeom Kim [this message]
2011-03-10 4:48 ` Sangbeom Kim
2011-03-10 9:49 ` Jamie Iles
2011-03-10 9:49 ` Jamie Iles
2011-03-10 10:19 ` Kukjin Kim
2011-03-10 10:19 ` Kukjin Kim
2011-03-09 2:13 ` [PATCH v4 2/3] ARM: S5P: Update machine initialization " Sangbeom Kim
2011-03-09 2:13 ` Sangbeom Kim
2011-03-09 2:13 ` [PATCH v4 3/3] ARM: S5P: Update defconfig for HRT support Sangbeom Kim
2011-03-09 2:13 ` Sangbeom Kim
2011-03-11 23:08 ` [PATCH v4 0/3] ARM: S5P: Add HRT support for s5p series Kukjin Kim
2011-03-11 23:08 ` Kukjin Kim
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='002d01cbdede$65e19660$31a4c320$@com' \
--to=sbkim73@samsung.com \
--cc=ben-linux@fluff.org \
--cc=jamie@jamieiles.com \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.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 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.