Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1674183
| From | Krzysztof Kozlowski <krzk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/6] rtc: s3c: Handle clock enable failures |
| Date | 2017-06-25 09:20 +0200 |
| Message-ID | <tW9ZU-24M-13@gated-at.bofh.it> (permalink) |
| References | <tT56q-4r7-5@gated-at.bofh.it> <tT56q-4r7-11@gated-at.bofh.it> <tW0jT-49w-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Jun 24, 2017 at 10:55 PM, Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote: > Hi, > > On 16/06/2017 at 21:28:07 +0200, Krzysztof Kozlowski wrote: >> clk_enable() can fail so handle such case. >> >> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> >> --- >> drivers/rtc/rtc-s3c.c | 72 ++++++++++++++++++++++++++++++++++++++++----------- >> 1 file changed, 57 insertions(+), 15 deletions(-) >> > > I've applied the whole series. However, quite often, on a platform, > clk_prepare/enable are ensured to never fail and I find that the added > complexity to handle failures is not worth it. Indeed, the platform clocks usually cannot fail (although not always, e.g. some PLLs might return ETIMEDOUT on sync timeout) but in this case one of the clocks is an I2C-controlled clock from PMIC. Its clk_prepare() can fail. It does not implement clk_enable() but this might change in the future so to avoid unexpected issues, it is better just to handle this properly. Best regards, Krzysztof
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 6/6] rtc: s3c: Handle clock enable failures Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-06-24 23:00 +0200 Re: [PATCH 6/6] rtc: s3c: Handle clock enable failures Krzysztof Kozlowski <krzk@kernel.org> - 2017-06-25 09:20 +0200
csiph-web