[PATCH 1/5] Documentation: dt: atmel-at91: Document secumod bindings

2016-08-31 Thread Alexandre Belloni
A security module is available starting with sama5d2, add its bindings. Signed-off-by: Alexandre Belloni --- Cc: Rob Herring Cc: devicet...@vger.kernel.org Documentation/devicetree/bindings/arm/atmel-at91.txt | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation

Re: [PATCH 1/2] rtc-cmos: Clear expired alarm after resume

2016-08-31 Thread Alexandre Belloni
On 31/08/2016 at 17:05:58 +0200, Gabriele Mazzotta wrote : > On 31/08/2016 01:28, Alexandre Belloni wrote: > > Hi, > > > > On 25/08/2016 at 16:54:18 +0200, Gabriele Mazzotta wrote : > >> Hi, > >> > >> were you able to verify that no other driver is

[PATCH v2 2/2] rtc: asm9260: rework locking

2016-08-31 Thread Alexandre Belloni
The rtc-asm9260 driver uses a discrete spinlock (wrongly uninitialized). Use the rtc mutex to lock mmio accesses instead. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-asm9260.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc

[PATCH v2 1/2] rtc: asm9260: allow COMPILE_TEST

2016-08-31 Thread Alexandre Belloni
The rtc-asm9260 driver compiles correctly on other architectures, add COMPILE_TEST to improve code coverage. Signed-off-by: Alexandre Belloni --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e215f50794b6

Re: [PATCH v6 1/4] rtc: ac100: support clock-output-names in device tree binding

2016-08-31 Thread Alexandre Belloni
137991.html > > --- > drivers/rtc/rtc-ac100.c | 2 ++ > 1 file changed, 2 insertions(+) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH 5/5] misc: sram: add Atmel securam support

2016-08-31 Thread Alexandre Belloni
On 31/08/2016 at 18:45:37 +0200, Philipp Zabel wrote : > Hi Alexandre, > > Am Mittwoch, den 31.08.2016, 18:11 +0200 schrieb Alexandre Belloni: > > The Atmel secure SRAM is connected to a security module and may be erased > > automatically under certain conditions. For that re

Re: [PATCH] memory: atmel-sdramc: fix a possible NULL dereference

2016-08-31 Thread Alexandre Belloni
getting the match data. > > Signed-off-by: LABBE Corentin > --- > drivers/memory/atmel-sdramc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH v2 4/4] pwm: sunxi: Add H3 support

2016-09-01 Thread Alexandre Belloni
On 31/08/2016 at 17:25:20 +0900, Milo Kim wrote : > H3 PWM controller has same register layout as sun4i driver, so it works > by adding H3 specific data. > > Cc: Thierry Reding > Cc: Rob Herring > Cc: Maxime Ripard > Cc: Alexandre Belloni > Cc: Chen-Yu Tsai > Cc

Re: [PATCH] rtc: constify rtc_class_ops structures

2016-09-02 Thread Alexandre Belloni
> drivers/rtc/rtc-rx8025.c |2 +- > drivers/rtc/rtc-spear.c |2 +- > drivers/rtc/rtc-stmp3xxx.c |2 +- > drivers/rtc/rtc-tegra.c |2 +- > drivers/rtc/rtc-twl.c|2 +- > 19 files changed, 19 insertions(+), 19 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

[PATCH v2 4/4] clocksource: timer-atmel-pit: simplify IRQ handler

2016-08-08 Thread Alexandre Belloni
Because the PIT is also a proper clocksource, the timekeeping code is already able to handle lost ticks. Reported-by: Thomas Gleixner Acked-by: Nicolas Ferre Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-pit.c | 11 +++ 1 file changed, 3 insertions(+), 8

[PATCH v2 1/4] clocksource: timer-atmel-pit: enable mck

2016-08-08 Thread Alexandre Belloni
: Alexandre Belloni --- drivers/clocksource/timer-atmel-pit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index 1ffac0cb0cb7..db839fc99a8e 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource

[PATCH v2 3/4] clocksource: timer-atmel-pit: remove uselesss WARN_ON_ONCE

2016-08-08 Thread Alexandre Belloni
IRQ handlers are running with IRQ disabled for a while, remove wrong comment and useless test. Acked-by: Nicolas Ferre Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-pit.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/clocksource/timer-atmel-pit.c b

[PATCH v2 0/4] clocksource: timer-atmel-pit: driver fix and cleanups

2016-08-08 Thread Alexandre Belloni
Hi, The first patch in the series is a fix that will be needed starting v4.9. The remaining patches are cleanups. Changes in v2: - Rebased on v4.8-rc1 - Collected acks Alexandre Belloni (4): clocksource: timer-atmel-pit: enable mck clocksource: timer-atmel-pit: drop

[PATCH v2 2/4] clocksource: timer-atmel-pit: drop at91sam926x_pit_common_init

2016-08-08 Thread Alexandre Belloni
Merge at91sam926x_pit_common_init in at91sam926x_pit_dt_init as this is the only initialization method now. Acked-by: Nicolas Ferre Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-pit.c | 64 ++- 1 file changed, 26 insertions(+), 38

Re: [PATCH] iio: adc: at91: unbreak channel adc channel 3

2016-08-08 Thread Alexandre Belloni
ot;iio: adc: at91_adc: Add support for touchscreens > without TSMR"). Earlier versions only entered that part of the if-else > statement if only the following flags are set: > > AT91_ADC_IER_XRDY | AT91_ADC_IER_YRDY | AT91_ADC_IER_PRDY > > Signed-off-by: Anders Darander Acked

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Alexandre Belloni
| 25 > drivers/rtc/rtc-tegra.c | 22 +++--- > drivers/rtc/rtc-test.c | 17 +-- > drivers/rtc/rtc-tps6586x.c | 26 > drivers/rtc/rtc-vr41xx.c | 6 ++-- &

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Alexandre Belloni
On 20/06/2017 at 12:03:48 +0200, Alexandre Belloni wrote: > On 20/06/2017 at 11:35:08 +0200, Benjamin Gaignard wrote: > > rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they > > rely on 32bits variables and that will make rtc break in y2038/2016. > > Please don

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Alexandre Belloni
On 20/06/2017 at 14:10:11 +0200, Pavel Machek wrote: > On Tue 2017-06-20 12:03:48, Alexandre Belloni wrote: > > On 20/06/2017 at 11:35:08 +0200, Benjamin Gaignard wrote: > > > rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they > > > rely on 32bits varia

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Alexandre Belloni
> > > On Tue 2017-06-20 14:24:00, Alexandre Belloni wrote: > > > > On 20/06/2017 at 14:10:11 +0200, Pavel Machek wrote: > > > > > On Tue 2017-06-20 12:03:48, Alexandre Belloni wrote: > > > > > > On 20/06/2017 at 11:35:08 +0200, Benja

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Alexandre Belloni
On 20/06/2017 at 22:15:36 +0100, Russell King - ARM Linux wrote: > On Tue, Jun 20, 2017 at 05:07:46PM +0200, Benjamin Gaignard wrote: > > 2017-06-20 15:48 GMT+02:00 Alexandre Belloni > > : > > >> Yes, that's argument against changing rtc _drivers_ for hardware th

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-21 Thread Alexandre Belloni
he past, > which is quite unusual. > Or not, having an RTC set in the past is actually quite common. I'd find it weird to have a new device boot and be set to a date in the future. Also note that the threshold or offset thing may seem like a good idea but fails with many RTCs because of how they handle leap years. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-21 Thread Alexandre Belloni
On 21/06/2017 at 10:19:49 +0100, Russell King - ARM Linux wrote: > On Wed, Jun 21, 2017 at 10:39:07AM +0200, Alexandre Belloni wrote: > > On 21/06/2017 at 09:51:52 +0200, Pavel Machek wrote: > > > If someone uses different threshold, well, there will be > > > confusi

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-21 Thread Alexandre Belloni
code, so that we can do fixups once > per class, not once per driver. Yes, I'm in the middle of the whole rework that allows that. I don't understand the sudden urgency of fixing that and the amount of bikeshedding, seeing that the closest cutoff date is actually 31st of december 2069 in the rtc subsystem and that anyway the current 32bit userspace will explode in february 2038. My plan from the beginning was to have something for the next stable. I know nobody can read my mind but again, I don't think there is currently any urgency to change anything. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH] ARM: at91: select CONFIG_ARM_CPU_SUSPEND

2017-05-29 Thread Alexandre Belloni
u_resume' > > Fixes: 24a0f5c539f9 ("ARM: at91: pm: Add sama5d2 backup mode") > Signed-off-by: Arnd Bergmann > --- > arch/arm/mach-at91/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

[GIT PULL] ARM: at91: fixes for 4.12

2017-05-29 Thread Alexandre Belloni
Arnd Bergmann (2): memory: atmel-ebi: mark PM ops as __maybe_unused ARM: at91: select CONFIG_ARM_CPU_SUSPEND arch/arm/mach-at91/Kconfig | 1 + drivers/memory/atmel-ebi.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- Alexandre Belloni, Free Electrons

Re: [PATCH v4 1/2] clk: at91: fix clk-generated parenting

2017-05-30 Thread Alexandre Belloni
On 18/05/2017 at 18:33:02 -0700, Stephen Boyd wrote: > On 05/12, Alexandre Belloni wrote: > > clk_generated_startup is called after clk_hw_register. So the first call to > > get_parent will not have the correct value (i.e. 0) and because this is > > cached, it may never be upd

[PATCH] rtc: omap: Support scratch registers

2017-10-31 Thread Alexandre Belloni
Register an nvmem device to expose the 3 scratch registers (total of 12 bytes) to both userspace and kernel space. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-omap.c | 45 + 1 file changed, 45 insertions(+) diff --git a/drivers/rtc/rtc

Re: [PATCH v3 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-10-26 Thread Alexandre Belloni
tc: mediatek: add bindings for MediaTek SoC based RTC > rtc: mediatek: add driver for RTC on MT7622 SoC > rtc: mediatek: enhance the description for MediaTek PMIC based RTC > rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver > All applied, thanks. (I've alphabe

Re: [PATCH] iio/light/opt3001: Use common error handling code in opt3001_get_lux()

2017-10-26 Thread Alexandre Belloni
@@ -77,6 +77,9 @@ > #define OPT3001_RESULT_READY_SHORT 150 > #define OPT3001_RESULT_READY_LONG1000 > > +static char const read_failure[] = "failed to read register %02x\n"; > +static char const write_failure[] = "failed to write register %02x\n"; > + If you are goin

Re: [PATCH] iio/light/opt3001: Use common error handling code in opt3001_get_lux()

2017-10-26 Thread Alexandre Belloni
On 26/10/2017 at 17:07:43 +0300, Dan Carpenter wrote: > On Thu, Oct 26, 2017 at 03:48:52PM +0200, Alexandre Belloni wrote: > > On 26/10/2017 at 14:17:30 +0200, SF Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Thu, 26 Oct 2017 14:06:49 +0200 > > &g

Re: Introduce clock precision to help time travelers was Re: Extreme time jitter with suspend/resume cycles

2017-11-04 Thread Alexandre Belloni
ejournal.com/~pavelmachek > (cesky, pictures) > http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH v2 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-10-18 Thread Alexandre Belloni
#x27;d bet it won't support leap year > correctly after 2100. This make the RTC useless after that. > > Also, yr_base is lost after power cycle, so you can't get correct year > back anyway. > I agree, the best you can do here is to only support 2000 to 2099. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: Introduce clock precision to help time travelers was Re: Extreme time jitter with suspend/resume cycles

2017-10-18 Thread Alexandre Belloni
so linux should be able to do it, too. > > It seems kernel should pass accurancy info, or at least "this time is > probably off by hours at least" from gettimeofday() and similar > syscalls... The question being how do you expect the kernel to get that information? Some RTCs

Re: [PATCH v2 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-10-19 Thread Alexandre Belloni
On 19/10/2017 at 10:55:49 +0800, Sean Wang wrote: > Hi, both > > On Wed, 2017-10-18 at 14:57 +0200, Alexandre Belloni wrote: > > On 18/10/2017 at 19:12:06 +0800, Yingjoe Chen wrote: > > > On Tue, 2017-10-17 at 17:40 +0800, sean.w...@mediatek.com wrote:

Re: [PATCH v2 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-10-19 Thread Alexandre Belloni
On 19/10/2017 at 18:04:39 +0800, Sean Wang wrote: > I prefer to 2001 to 2099 only which can be completely handled in the > common logic. Extra specific logic simply for 2100 seems not be > worthwhile. > Agreed. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engi

Re: [PATCH v2 1/5] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-10-19 Thread Alexandre Belloni
s when there is only one. > You didn't reply to the question I had previously about that: What if at some point, we have multiple dmas in the same binding? -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

[PATCH] rtc: ds1390: Add OF device ID table

2017-10-27 Thread Alexandre Belloni
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. Worse, the compatible is documented but doesn't currently match the driver. Add the proper compatible to the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds

Re: [GIT PULL] ARM: at91: DT for 4.15

2017-10-30 Thread Alexandre Belloni
On 30/10/2017 at 13:38:04 +0100, Arnd Bergmann wrote: > On Sun, Oct 22, 2017 at 9:58 PM, Alexandre Belloni > wrote: > > > > Wenyou Yang (1): > > ARM: dts: at91: sama5d2_xplained: Add charger node > > > > Can you clarify this patch? It looks like an inco

Re: [PATCH v4 4/4] misc: atmel_tclib: get and use slow clock

2015-10-05 Thread Alexandre Belloni
On 05/10/2015 at 17:27:06 +0200, Thierry Reding wrote : > On Sun, Aug 16, 2015 at 11:23:46AM +0200, Alexandre Belloni wrote: > > From: Boris Brezillon > > > > Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system > > hang") added a worka

Re: [PATCH v2 01/10] pwm: introduce default period and polarity concepts

2015-10-06 Thread Alexandre Belloni
h also modifies all the places where the default helpers should > be used in place of the standard ones. > > Signed-off-by: Boris Brezillon Acked-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To uns

[PATCH] iio: mxs-lradc: Fix temperature offset

2015-10-06 Thread Alexandre Belloni
0° Kelvin is actually −273.15°C, not -272.15°C. Fix the temperature offset. Reported-by: Janusz Użycki Signed-off-by: Alexandre Belloni --- drivers/staging/iio/adc/mxs-lradc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/adc/mxs-lradc.c b

[GIT PULL] at91: cleanup for 4.4 #1

2015-10-06 Thread Alexandre Belloni
| 31 ++- drivers/misc/atmel_tclib.c | 4 drivers/pwm/pwm-atmel-tcb.c | 26 +++--- include/linux/atmel_tc.h | 1 + 5 files changed, 56 insertions(+), 18 deletions(-) -- Alexandre Belloni, Free Electrons Embedded Linux, K

Re: [PATCH] iio: mxs-lradc: Fix temperature offset

2015-10-06 Thread Alexandre Belloni
000 * SCALE / 100; val2 = 27315 * SCALE + 100 * val; I don't feel this is any clearer because we can't use floating points in the kernel anyway. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe f

Re: [PATCH] watchdog: at91sam9: keep watchdog running in idle mode

2015-10-07 Thread Alexandre Belloni
out while the CPU is in idle state. Removing the > AT91_WDT_WDIDLEHLT flag that was set by default fixes this. > > Signed-off-by: Sylvain Rochet > Fixes: 5161b31dc39a ("watchdog: at91sam9_wdt: better watchdog support") > Cc: # 3.14+ Acked-by: Alexandre Belloni However, w

[PATCH v2] iio: mxs-lradc: Fix temperature offset

2015-10-07 Thread Alexandre Belloni
0° Kelvin is actually −273.15°C, not -272.15°C. Fix the temperature offset. Also improve the comment explaining the calculation. Reported-by: Janusz Użycki Signed-off-by: Alexandre Belloni --- drivers/staging/iio/adc/mxs-lradc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions

Re: [PATCH] serial: atmel: fix compiler warning on address cast

2015-10-08 Thread Alexandre Belloni
. > > Signed-off-by: Andre Przywara Acked-by: Alexandre Belloni > --- > drivers/tty/serial/atmel_serial.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/atmel_serial.c > b/drivers/tty/serial/atmel_serial.c > index cd30a45.

Re: linux-next: manual merge of the rtc tree with the arm-soc tree

2015-08-28 Thread Alexandre Belloni
mp;tlv320aic3106>; > +system-clock-frequency = <1200>; > +}; > +}; > ++ > + /* fixed 32k external oscillator clock */ > + clk_32k_rtc: clk_32k_rtc { > + #clock-cells = <0>; > + compatible = "fixed-clock&

Re: [PATCH] rtc: Fix module autoload for rtc-{ab8500,max8997,s5m} drivers

2015-08-31 Thread Alexandre Belloni
drivers/rtc/rtc-ab8500.c | 1 + > drivers/rtc/rtc-max8997.c | 1 + > drivers/rtc/rtc-s5m.c | 1 + > 3 files changed, 3 insertions(+) Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this

Re: [PATCH] rtc: Fix module autoload for OF platform drivers

2015-08-31 Thread Alexandre Belloni
vt8500.c| 1 + > 8 files changed, 8 insertions(+) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH -next] rtc: drop unused ret variable orphaned by misc_deregister becoming void

2015-09-01 Thread Alexandre Belloni
> which now generates a compile warning. Get rid of it. > > > > Cc: Alessandro Zummo > > Cc: Alexandre Belloni > > Cc: rtc-li...@googlegroups.com > > Cc: Greg Kroah-Hartman > > Signed-off-by: Paul Gortmaker > > Acked-by: Geert Uytterhoeven >

[PATCH v2 02/14] clk: at91: make use of syscon to share PMC registers in several drivers

2015-10-12 Thread Alexandre Belloni
specific API or a global void __iomem * variable. Signed-off-by: Boris Brezillon Signed-off-by: Alexandre Belloni Acked-by: Stephen Boyd --- arch/arm/mach-at91/Kconfig | 1 + drivers/clk/at91/pmc.c | 12 drivers/clk/at91/pmc.h | 11 --- 3 files changed, 17 insertions

[PATCH v2 04/14] clk: at91: clk-main: factorize irq handling

2015-10-12 Thread Alexandre Belloni
The three different irq handlers are doing the same thing, factorize their code in a generic irq handler. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-main.c | 144 +++- 1 file changed, 63 insertions(+), 81 deletions(-) diff --git a/drivers

[PATCH v2 09/14] ARM: at91: pm: simply call at91_pm_init

2015-10-12 Thread Alexandre Belloni
at91_pm_init() doesn't return a value, as is the case for its callers, simply call it instead of returning its non-existent return value. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach

[PATCH v2 05/14] clk: at91: make IRQ optional and register them later

2015-10-12 Thread Alexandre Belloni
until the IRQ is registered and register the IRQ at module probe time. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-main.c | 152 ++ drivers/clk/at91/clk-master.c | 74 ++-- drivers/clk/at91/clk-pll.c| 75

[PATCH v2 14/14] clk: at91: pmc: drop at91_pmc_base

2015-10-12 Thread Alexandre Belloni
at91_pmc_base is not used anymore, remove it along with at91_pmc_read and at91_pmc_write. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/pmc.c | 5 - include/linux/clk/at91_pmc.h | 12 2 files changed, 17 deletions(-) diff --git a/drivers/clk/at91/pmc.c b/drivers

[PATCH v2 06/14] clk: at91: only disable available IRQs

2015-10-12 Thread Alexandre Belloni
From: Boris Brezillon Only disable available IRQs in case writing to a reserved bit has a harmful effect. Signed-off-by: Boris Brezillon Signed-off-by: Alexandre Belloni --- drivers/clk/at91/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/pmc.c b

[PATCH v2 11/14] ARM: at91: pm: move idle functions to pm.c

2015-10-12 Thread Alexandre Belloni
Avoid using code from clk/at91 for PM. This also has the bonus effect of setting arm_pm_idle for sama5 platforms. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/at91rm9200.c | 2 -- arch/arm/mach-at91/at91sam9.c | 2 -- arch/arm/mach-at91/generic.h| 6 ++ arch/arm/mach

[PATCH v2 13/14] usb: gadget: atmel: access the PMC using regmap

2015-10-12 Thread Alexandre Belloni
Use regmap to access the PMC to avoid using at91_pmc_read and at91_pmc_write. Signed-off-by: Alexandre Belloni Acked-by: Felipe Balbi --- drivers/usb/gadget/udc/atmel_usba_udc.c | 20 ++-- drivers/usb/gadget/udc/atmel_usba_udc.h | 2 ++ 2 files changed, 12 insertions(+), 10

[PATCH v2 03/14] clk: at91: make use of syscon/regmap internally

2015-10-12 Thread Alexandre Belloni
children. Signed-off-by: Boris Brezillon Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-h32mx.c| 33 +++-- drivers/clk/at91/clk-main.c | 248 +++- drivers/clk/at91/clk-master.c | 68 ++ drivers/clk/at91/clk-peripheral.c

[PATCH v2 08/14] clk: at91: pmc: move pmc structures to C file

2015-10-12 Thread Alexandre Belloni
pmc.c is now the only user of struct at91_pmc*, move their definition in the C file. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/pmc.c | 12 drivers/clk/at91/pmc.h | 12 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/at91/pmc.c b

[PATCH v2 12/14] ARM: at91: remove useless includes and function prototypes

2015-10-12 Thread Alexandre Belloni
Remove leftover from the previous cleanup Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/generic.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index d224e195706a..28ca57a2060f 100644 --- a/arch/arm/mach-at91

[PATCH v2 07/14] clk: at91: pmc: merge at91_pmc_init in atmel_pmc_probe

2015-10-12 Thread Alexandre Belloni
at91_pmc_init() doesn't do much anymore, merge it in atmel_pmc_probe(). Signed-off-by: Alexandre Belloni --- drivers/clk/at91/pmc.c | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c

[PATCH v2 10/14] ARM: at91: pm: find and remap the pmc

2015-10-12 Thread Alexandre Belloni
To avoid relying on at91_pmc_read(), find the pmc node and remap it locally. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index

[PATCH v2 00/14] ARM: at91: PMC driver rework

2015-10-12 Thread Alexandre Belloni
s ack - dropped the first two patches as they are already in clk-next - reworked struct clk_main as suggested by Boris - changed the commit descritpion for "clk: at91: only disable available IRQs" as suggested by Ludovic - added Stephen's ack on patch 2 Alexandre Belloni (11):

[PATCH v2 01/14] ARM: at91/dt: use syscon for PMC

2015-10-12 Thread Alexandre Belloni
The PMC is not only used to drive the clocks but also has some registers related to other functions. One of those is for example the USB gadget bias. Using a syscon allows to properly separate those functions. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91rm9200.dtsi | 2 +- arch

Re: [PATCH] rtc: pcf8563: disable CLKOUT

2015-10-13 Thread Alexandre Belloni
lso provide a generic way of setting the clkout frequency (some RTC are able to output 32kHZ, 1kHz and 1Hz). -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: [PATCH] rtc: Abracon ABX8XX write RTC fix

2015-09-05 Thread Alexandre Belloni
On 02/09/2015 at 10:02:29 +0200, Mitja Spes wrote : > Fixed RTC write bit as per application manual > > Signed-off-by: Mitja Spes > --- > drivers/rtc/rtc-abx80x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks. -- Alexandre Belloni, Free Ele

[GIT PULL] RTC for 4.3

2015-09-06 Thread Alexandre Belloni
e/time instead of 0 for isl12022, pcf2123, pcf2127 Adrian Huang (2): rtc: cmos: Cancel alarm timer if alarm time is equal to now+1 seconds rtc: cmos: Revert "rtc-cmos: Add an alarm disable quirk" Alexandre

Re: [GIT PULL REQUEST] watchdog - v4.3-rc1 merge window

2015-09-09 Thread Alexandre Belloni
Hi Wim, On 09/09/2015 at 21:58:38 +0200, Wim Van Sebroeck wrote : > commit ab54d7f017772e89964d4040937a83cd4468562a > Author: Alexandre Belloni > Date: Fri Jul 31 11:39:39 2015 +0200 > > Documentation: watchdog: at91sam9_wdt: add clocks property > > The

Re: [PATCH v1 0/4] rtc: pcf2127: a fix, a cleanup and two questionable features

2015-10-14 Thread Alexandre Belloni
: pcf2127: remove useless driver version > rtc: pcf2127: implement reading battery status bits > rtc: pcf2127: implement access to nvram > > drivers/rtc/rtc-pcf2127.c | 285 > ++++++---- > 1 file changed, 261 insertions(+), 24 deletions(-) >

Re: [PATCH 2/2] ARM: at91/pm: add ultra Low-power mode 1(ULP1) support

2015-10-15 Thread Alexandre Belloni
mp1, tmp1, #AT91_PMC_MOSCSEL > + bic tmp1, tmp1, #AT91_PMC_KEY_MASK > + orr tmp1, tmp1, #AT91_PMC_KEY > + bic tmp1, tmp1, #(7 << 4) > + str tmp1, [pmc, #AT91_CKGR_MOR] > + > + wait_moscsels > + > + /* Restore PLLA config */ > +

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Alexandre Belloni
It is probably worth updating the multi_v7_defconfig too (in a separate patch). -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] ARM: at91/dt: fix "disabled" property on at91rm9200

2015-10-15 Thread Alexandre Belloni
On 13/10/2015 at 13:24:24 +0200, Michael Opdenacker wrote : > Fix instances of "disable" instead of "disabled" > in the at91rm9200 dtsi. > > Signed-off-by: Michael Opdenacker Acked-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Ker

Re: [PATCH] ARM: at91: debug: update prompt for DEBUG_AT91_UART

2015-10-15 Thread Alexandre Belloni
Say Y here if you want the debug print routines to direct Isn't the "read help" message from config DEBUG_LL enough? :) -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "

Re: Atmel sama5d3 boot regression, today's linux-next

2015-10-15 Thread Alexandre Belloni
m [] (do_one_initcall+0x90/0x1d8) [] (do_one_initcall) from [] (kernel_init_freeable+0x130/0x1d0) [] (kernel_init_freeable) from [] (kernel_init+0xc/0xe8) [] (kernel_init) from [] (ret_from_fork+0x14/0x3c) > Sylvain -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering

Re: [PATCH v2] rtc: pcf8563: add CLKOUT to common clock framework

2015-10-16 Thread Alexandre Belloni
higher power > consumption. > > Signed-off-by: Heiko Schocher > --- > > Changes in v2: > - add comments from Alexandre Belloni > - remove the DT property, instead > register for the CLKOUT a clk in the common > clk framework. The clk is disabled by default. &

Re: [PATCH v3] rtc: pcf8563: add CLKOUT to common clock framework

2015-10-16 Thread Alexandre Belloni
with CLKOUT enabled the RTC chip has 2-3 times higher power > consumption. > > Signed-off-by: Heiko Schocher > --- > > Changes in v3: > - use CONFIG_COMMON_CLK for common clk framework > changes > > Changes in v2: > - add comments from Alexandre Belloni >

Re: [PATCH v2] rtc: pcf8563: add CLKOUT to common clock framework

2015-10-16 Thread Alexandre Belloni
On 16/10/2015 at 12:54:46 +0200, Alexandre Belloni wrote : > > +static struct clk *pcf8563_clkout_register_clk(struct pcf8563 *pcf8563) > > +{ > > + struct i2c_client *client = pcf8563->client; > > + struct device_node *node = client->dev.of_node; > >

Re: [PATCH] ARM: at91/dt: sama5d4: add the macb1 node

2015-10-16 Thread Alexandre Belloni
;okay"; /* Enable ADC IIO support */ > }; > > mmc0: mmc@f800 { This probably shouldn't be part of that patch. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- T

Re: Atmel SoCs and the newly added CONFIG_DELAY_DEVICE_PROBES option

2015-10-16 Thread Alexandre Belloni
cy isn't there at that point, but that's likely to be more > invasive than wanted at this point. > I guess that the PM code will be really difficult to move into drivers but I'd be happy to see that done on AT91 as this is the only thing left in mach-at91. -- Alexandre Bello

Re: [PATCH 1/1] rtc: fix type information of rtc-proc

2015-10-17 Thread Alexandre Belloni
Hi, On 08/10/2015 at 17:47:32 +0800, Zhen Lei wrote : > Display the whole word of "alarm", make it look more comfortable. > While this is nice, this will break scripts parsing that file for not good technical reason. I guess we are stuck with legacy here. -- Alexandre Belloni

Re: [PATCH v1 1/4] rtc: pcf2127: fix reading uninitialized value on RTC_READ_VL ioctl

2015-10-17 Thread Alexandre Belloni
gned-off-by: Uwe Kleine-König Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.or

Re: [PATCH v1 2/4] rtc: pcf2127: remove useless driver version

2015-10-17 Thread Alexandre Belloni
by: Uwe Kleine-König > --- > drivers/rtc/rtc-pcf2127.c | 5 - > 1 file changed, 5 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linu

Re: [PATCH v2] rtc: at91rm9200: clear RTC alarm status flag prior to suspending

2015-10-17 Thread Alexandre Belloni
suspending > to avoid the erroneous wake-up activity, as it is often used as > the wake-up source for the ULP mode 1. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: > - Add more detail commit log. > > drivers/rtc/rtc-at91rm9200.c |2 ++ > 1 file c

Re: [PATCH] rtc: davinci: remove incorrect reference to probe function

2015-10-17 Thread Alexandre Belloni
nci_rtc_probe() > The variable davinci_rtc_driver references > the function __init davinci_rtc_probe() > > This patch removes the .probe callback from the platform driver, > which avoids those problems. > > Signed-off-by: Arnd Bergmann Applied, thanks. -- Alexandre Belloni, Free Electrons

Re: [PATCH v4] rtc: pcf8563: add CLKOUT to common clock framework

2015-10-17 Thread Alexandre Belloni
higher power > consumption. > > Signed-off-by: Heiko Schocher > --- > > Changes in v4: > - add comments from Alexandre Belloni > - use devm_clk_register() instead of clk_register() > - rework Documentation > > Changes in v3: > - use CONFIG_COMMON_CLK for com

Re: [PATCH 0/5] drivers/tty: make more bool drivers explicitly non-modular

2015-10-21 Thread Alexandre Belloni
On 20/10/2015 at 20:20:07 -0400, Paul Gortmaker wrote : > [Re: [PATCH 0/5] drivers/tty: make more bool drivers explicitly non-modular] > On 20/10/2015 (Tue 17:10) Alexandre Belloni wrote: > > > On 18/10/2015 at 18:21:13 -0400, Paul Gortmaker wrote : > > > The one common

Re: [GIT PULL] at91: dt for 4.4 #2

2015-10-21 Thread Alexandre Belloni
Hi, Actually, this built on my machine because one of the headers was left unversionned in my tree. The last patch depends on the MFD tree, I'm not sure how you want to handle that. I can as well drop the last patch and resend a PR. On 19/10/2015 at 21:31:58 +0200, Alexandre Belloni

[GIT PULLv2] at91: dt for 4.4 #2

2015-10-21 Thread Alexandre Belloni
) Second batch of DT changes for 4.4: - some DT fixes: pullups, disabled property - the PMC is now a syscon - great improvement of sama5d2 support Alexandre Belloni (1): ARM: at91/dt: use syscon

[PATCH] MAINTAINERS: explicitly add Atmel SAMA5

2015-09-02 Thread Alexandre Belloni
Atmel SAMA5 SoCs are also supported through mach-at91. Signed-off-by: Alexandre Belloni --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b60e2b2369d2..e8a40437727c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -891,7 +891,7 @@ M

[GIT PULL] at91: dt for 4.4 #2

2015-10-19 Thread Alexandre Belloni
support Alexandre Belloni (1): ARM: at91/dt: use syscon for PMC Gregory CLEMENT (1): ARM: at91/dt: sama5d4: add the macb1 node Ludovic Desroches (2): ARM: at91/dt: sama5d2: add missing devices ARM: at91/dt

[GIT PULL] at91: defconfig for 4.4 #1

2015-10-19 Thread Alexandre Belloni
device arch/arm/configs/at91_dt_defconfig | 15 --- arch/arm/configs/multi_v7_defconfig | 3 +++ arch/arm/configs/sama5_defconfig| 16 ++-- 3 files changed, 9 insertions(+), 25 deletions(-) -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android

[GIT PULL] at91: soc for 4.4 #2

2015-10-19 Thread Alexandre Belloni
(+) -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH 0/5] drivers/tty: make more bool drivers explicitly non-modular

2015-10-20 Thread Alexandre Belloni
e it a tristate and allow building as a module. I think it currently fails because of console_initcall() but that is certainly fixable. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "

Re: [PATCH 01/17] rtc: pl031: remove misuse of IRQF_NO_SUSPEND flag

2015-10-02 Thread Alexandre Belloni
the use of IRQF_NO_SUSPEND flags and uses newly > >>introduce PM wakeup APIs dev_pm_{set,clear}_wake_irq. > >> > >>Cc: Linus Walleij > >>Cc: Alessandro Zummo > >>Cc: Alexandre Belloni > >>Cc: rtc-li...@googlegroups.com > >>Signed-o

Re: [PATCH v3 1/2] Fixed ds1390_get_reg returned value

2015-10-03 Thread Alexandre Belloni
-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v3 2/2] Added trickle charger device tree binding

2015-10-03 Thread Alexandre Belloni
vers/rtc/rtc-ds1390.c | 62 > ++ > 2 files changed, 80 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rtc/dallas,ds1390.txt > Applied, after doing a few whitespace modifications, thanks. -- Alexandre Belloni, Free Electrons E

Re: [PATCH 24/38] rtc: opal: fix type of token

2015-10-03 Thread Alexandre Belloni
038576 > > Signed-off-by: Andrzej Hajda > --- > drivers/rtc/rtc-opal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsub

Re: [PATCH 01/17] rtc: pl031: remove misuse of IRQF_NO_SUSPEND flag

2015-10-03 Thread Alexandre Belloni
a suspended state, enable_irq_wake is recommended to be used for > the wakeup. > > This patch removes the use of IRQF_NO_SUSPEND flags and uses newly > introduce PM wakeup APIs dev_pm_{set,clear}_wake_irq. > > Cc: Linus Walleij > Cc: Alessandro Zummo > Cc: Alexandre

Re: [PATCH 02/17] rtc: ab8500: remove misuse of IRQF_NO_SUSPEND flag

2015-10-03 Thread Alexandre Belloni
a suspended state, enable_irq_wake is recommended to be used for > the wakeup. > > This patch removes the use of IRQF_NO_SUSPEND flags and uses newly > introduce PM wakeup APIs dev_pm_{set,clear}_wake_irq. > > Cc: Linus Walleij > Cc: Alessandro Zummo > Cc: Alexandre

<    1   2   3   4   5   6   7   8   9   10   >