Re: [RFC v1 PATCH 6/6] drivers: rtc: Add support for Qualcomm PMIC8058 RTC

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lars-Peter Clausen
Date: Friday, November 12, 2010 - 5:53 am

Trilok Soni wrote:

Are there other bits in the ctrl register which are not touch by this driver?
If not you could turn the read-modify-write operations changing the ctrl register
into simple writes.

Is there a reason for the '0'?
Hm, I don't know the hardware, but I would assume that
pm8058_read(rtc_dd->pm_chip, base, rtc_val, NUM_8_BIT_RTC_REGS) should work as well.
Same here
dev_err instead of pr_err. The other pr_err should also be replaced.
No need to initialize secs here.
The upper layer will already check if alarm->time is valid, so there is no need to
check it here again.
No need to initialize secs here.

Implementig alarm_irq_enable might be a good idea


just rtc_update_irq(rtc_dd->rtc0, 1, RTC_IRQF | RTC_AF); should be fine

It might be a good idea to assume a default for rtc_write_enable if pdata is not set.
You don't seem to use this irq.

module_{init,exit} should go right beneath the function they are referring to

Is there a technical reason why changing the rtc clocks time should be disabled or is
this a policy based decision?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC v1 PATCH 3/6] led: pmic8058: Add PMIC8058 leds driver, Lars-Peter Clausen, (Wed Nov 10, 1:45 pm)
Re: [RFC v1 PATCH 3/6] led: pmic8058: Add PMIC8058 leds driver, Lars-Peter Clausen, (Wed Nov 10, 4:50 pm)
Re: [RFC v1 PATCH 6/6] drivers: rtc: Add support for Qualc ..., Lars-Peter Clausen, (Fri Nov 12, 5:53 am)
RE: [RFC v1 PATCH 5/6] input: pmic8058-othc: Add support f ..., Datta, Shubhrajyoti, (Mon Nov 15, 10:36 pm)