Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330941
| From | Noam Camus <noamc@ezchip.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v3 2/3] clocksource: Add NPS400 timers driver |
| Date | 2016-02-10 09:20 +0100 |
| Message-ID | <r0yad-86s-1@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <qZUZc-6vM-17@gated-at.bofh.it> <r0gn0-4x9-21@gated-at.bofh.it> <r0gGm-4Dt-25@gated-at.bofh.it> <r0oDV-1LZ-15@gated-at.bofh.it> <r0pqi-251-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>From: Daniel Lezcano [mailto:daniel.lezcano@linaro.org]
>Sent: Wednesday, February 10, 2016 12:55 AM
>> pr_err() in case of error just like most drivers around. By "hang" do
>> you mean calling panic()?
>No. I meant the errors are caught but no action is taken, the execution continues normally as nothing wrong happened. This is why I asked if you expect the host to hang at boot time with the last error as a hint.
>I was expecting to see a call to clk_disable_unprepare if clocksource_register_hz fails, and returning 'ret' if clk_prepare_enable fails.
Ok, I will fix that, and handle gracefull return. Thanks
>Using the mmio generic code will save:
>+static struct clocksource nps_counter = {
>+ .name = "EZnps-tick",
>+ .rating = 301,
>+ .read = nps_clksrc_read,
>+ .mask = CLOCKSOURCE_MASK(32),
>+ .flags = CLOCK_SOURCE_IS_CONTINUOUS,
>+};
>Up to you.
I will do that, thanks again
Noam
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
RE: [PATCH v3 2/3] clocksource: Add NPS400 timers driver Noam Camus <noamc@ezchip.com> - 2016-02-09 14:20 +0100
Re: [PATCH v3 2/3] clocksource: Add NPS400 timers driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-02-09 14:40 +0100
Re: [PATCH v3 2/3] clocksource: Add NPS400 timers driver Noam Camus <noamc@ezchip.com> - 2016-02-09 23:10 +0100
Re: [PATCH v3 2/3] clocksource: Add NPS400 timers driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-02-10 00:00 +0100
RE: [PATCH v3 2/3] clocksource: Add NPS400 timers driver Noam Camus <noamc@ezchip.com> - 2016-02-10 09:20 +0100
csiph-web