[rtc-linux] URGENT NEED::Software Test Engineer @ Cambridge, MA

2017-01-11 Thread sneha nallamati
Hi , Hope you are doing great!!... We have an urgent below *“Software Test Engineer”* position with one of our client for *“6-12months” *at *“Cambridge, MA”. *Please send me the resumes with full name, contact details, Rate, and availability date. * Job Description:* Job Title : Soft

[rtc-linux] [PATCH 2/4] mfd: cros_ec: Introduce RTC commands and events definitions.

2017-01-11 Thread Enric Balletbo i Serra
From: Stephen Barber The EC can function as a simple RT, this patch adds the RTC related definitions needed by the rtc-cros-ec driver. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- include/linux/mfd/cros_ec_commands.h | 8 1 file changed, 8 insertions(+) di

[rtc-linux] [PATCH 3/4] rtc: cros-ec: add cros-ec-rtc driver.

2017-01-11 Thread Enric Balletbo i Serra
From: Stephen Barber On platforms with a Chrome OS EC, the EC can function as a simple RTC. Add a basic driver with this functionality. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rt

[rtc-linux] [PATCH 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-01-11 Thread Enric Balletbo i Serra
From: Stephen Barber If the EC supports RTC host commands, expose an RTC device. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/platform/chrome/cr

[rtc-linux] [PATCH 1/4] mfd: cros_ec: Add helper for event notifier.

2017-01-11 Thread Enric Balletbo i Serra
From: Gwendal Grignou Add cros_ec_get_event() entry point to retrieve event within functions called by the notifier. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_proto.c | 20 include/linux/mfd/cros_ec.h

[rtc-linux] [PATCH] rtc: armada38x: hide maybe-uninitialized warning

2017-01-11 Thread Arnd Bergmann
The function is too complicated for gcc to realize that this variable does eventually get initialized, causing a harmless warning: drivers/rtc/rtc-armada38x.c: In function 'read_rtc_register_wa': drivers/rtc/rtc-armada38x.c:131:25: warning: 'index_max' may be used uninitialized in this function [

[rtc-linux] [PATCHv5 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 727 3 files changed, 739 insertions(+) create mode 100644 drivers/rtc/rtc-s

[rtc-linux] Re: [PATCHv4 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
Hi Corentin, Thanks for reviewing, On 01/11/2017 02:04 PM, Corentin Labbe wrote: On Wed, Jan 11, 2017 at 01:48:25PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + d

[rtc-linux] Re: [PATCHv4 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Corentin Labbe
On Wed, Jan 11, 2017 at 01:48:25PM +0100, Amelie Delaunay wrote: > This patch adds support for the STM32 RTC. > > Signed-off-by: Amelie Delaunay > --- > drivers/rtc/Kconfig | 11 + > drivers/rtc/Makefile| 1 + > drivers/rtc/rtc-stm32.c | 727 >

[rtc-linux] [PATCHv4 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie Delaunay
This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 727 3 files changed, 739 insertions(+) create mode 100644 drivers/rtc/rtc-s

[rtc-linux] Re: [PATCH] rtc: armada38x: make struct rtc_class_ops const

2017-01-11 Thread Alexandre Belloni
On 11/01/2017 at 10:16:58 +, Russell King wrote : > Armada38x wants to modify its rtc_class_ops to remove the interrupt > handling when there is no usable interrupt, but this means we leave > function pointers in writable memory. > > Since rtc_class_ops is small, arrange to have two instances,

[rtc-linux] Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Alexandre Belloni
On 11/01/2017 at 11:42:50 +0100, Amelie DELAUNAY wrote : > > On 01/11/2017 11:17 AM, Alexandre Belloni wrote: > > On 11/01/2017 at 11:07:16 +0100, Amelie DELAUNAY wrote : > > > > This will never happen, tm is already checked multiple times (up to > > > > three) in the core before this function can

[rtc-linux] Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
On 01/11/2017 11:17 AM, Alexandre Belloni wrote: On 11/01/2017 at 11:07:16 +0100, Amelie DELAUNAY wrote : This will never happen, tm is already checked multiple times (up to three) in the core before this function can be called. You're right. I'll remove all rtc_valid_tm calls. You can keep

[rtc-linux] [PATCH] rtc: armada38x: make struct rtc_class_ops const

2017-01-11 Thread Russell King
Armada38x wants to modify its rtc_class_ops to remove the interrupt handling when there is no usable interrupt, but this means we leave function pointers in writable memory. Since rtc_class_ops is small, arrange to have two instances, one for when we have interrupts, and one for when we have none,

[rtc-linux] Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Alexandre Belloni
On 11/01/2017 at 11:07:16 +0100, Amelie DELAUNAY wrote : > > This will never happen, tm is already checked multiple times (up to > > three) in the core before this function can be called. > > > You're right. I'll remove all rtc_valid_tm calls. You can keep the one in read_time -- Alexandre Bell

[rtc-linux] Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-11 Thread Amelie DELAUNAY
Hi Alexandre, On 01/11/2017 01:08 AM, Alexandre Belloni wrote: Looks good to me, however... On 05/01/2017 at 14:43:24 +0100, Amelie Delaunay wrote : +struct stm32_rtc { + struct rtc_device *rtc_dev; + void __iomem *base; + struct clk *ck_rtc; + spinlock_t lock; /* Prot