Re: [PATCH v2 3/3] irqchip: add nps Internal and external irqchips

2016-02-02 Thread kbuild test robot
Hi Noam, [auto build test ERROR on tip/irq/core] [cannot apply to v4.5-rc2 next-20160202] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-NPS400-drivers/20160202-213530

Re: [PATCH v7 2/2] add new platform driver for PCI RC

2016-02-02 Thread Arnd Bergmann
On Tuesday 02 February 2016 17:14:49 Bjorn Helgaas wrote: > On Tue, Feb 02, 2016 at 09:25:25PM +0100, Arnd Bergmann wrote: > > On Monday 01 February 2016 18:07:45 Joao Pinto wrote: > > > +static void synopsys_pcie_establish_link(struct pcie_port *pp) > > > +{ > > > + int retries = 0; > > > + > >

Re: [PATCH v7 2/2] add new platform driver for PCI RC

2016-02-02 Thread Bjorn Helgaas
On Tue, Feb 02, 2016 at 09:25:25PM +0100, Arnd Bergmann wrote: > On Monday 01 February 2016 18:07:45 Joao Pinto wrote: > > +static void synopsys_pcie_establish_link(struct pcie_port *pp) > > +{ > > + int retries = 0; > > + > > + /* check if the link is up or not */ > > + for (retries = 0; ret

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Alexey Brodkin
Hi Vineet, On Tue, 2016-02-02 at 18:36 +0300, Alexey Brodkin wrote: > Hi Vineet, > > On Tue, 2016-02-02 at 19:59 +0530, Vineet Gupta wrote: > > Hi Alexey, > > > > On Tuesday 02 February 2016 06:45 PM, Alexey Brodkin wrote: > > > Hi Vineet, > > > > > > On Tue, 2016-02-02 at 16:28 +0530, Vineet G

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 04:28:52PM +0530, Vineet Gupta wrote: > ARC Timers have historically been probed directly. > As precursor to start probing Timers thru DT introduce these bindings > > Cc: Daniel Lezcano > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Signed-off-by: Vineet Gupta > --

Re: [PATCH v7 2/2] add new platform driver for PCI RC

2016-02-02 Thread Arnd Bergmann
On Monday 01 February 2016 18:07:45 Joao Pinto wrote: > This patch adds a new driver that will be the reference platform driver > for all PCI RC IP Protoyping Kits based on ARC SDP. > This patch is composed by: > > -MAINTAINERS file was updated to include the new driver > -Documentation/devicetree

Re: [PATCH v7 0/2] adding PCI support to AXS10x

2016-02-02 Thread Joao Pinto
Found it. Thanks. On 2/2/2016 5:17 PM, Joao Pinto wrote: > Hi Bjorn, > Thanks. Could you please send me the git URL for me to give it a try? > > Joao > > On 2/2/2016 5:14 PM, Bjorn Helgaas wrote: >> On Mon, Feb 01, 2016 at 06:07:43PM +, Joao Pinto wrote: >>> This patch set has the goal to ad

Re: [PATCH v7 0/2] adding PCI support to AXS10x

2016-02-02 Thread Bjorn Helgaas
On Mon, Feb 01, 2016 at 06:07:43PM +, Joao Pinto wrote: > This patch set has the goal to add suppport for DesignWare PCIe RC in ARC > AXS10x. It includes the necessary tweaks to the ARC architecture, > necessary tweaks to the PCI subsystem and a new driver (pcie-synopsys). > This new driver wi

Re: [PATCH v7 0/2] adding PCI support to AXS10x

2016-02-02 Thread Joao Pinto
Hi Bjorn, Thanks. Could you please send me the git URL for me to give it a try? Joao On 2/2/2016 5:14 PM, Bjorn Helgaas wrote: > On Mon, Feb 01, 2016 at 06:07:43PM +, Joao Pinto wrote: >> This patch set has the goal to add suppport for DesignWare PCIe RC in ARC >> AXS10x. It includes the nece

Re: [PATCH v7 2/2] add new platform driver for PCI RC

2016-02-02 Thread Bjorn Helgaas
On Mon, Feb 01, 2016 at 06:07:45PM +, Joao Pinto wrote: > This patch adds a new driver that will be the reference platform driver > for all PCI RC IP Protoyping Kits based on ARC SDP. > This patch is composed by: > > -MAINTAINERS file was updated to include the new driver > -Documentation/devi

Re: [PATCH v2 2/3] clocksource: Add NPS400 timers driver

2016-02-02 Thread kbuild test robot
Hi Noam, [auto build test WARNING on tip/irq/core] [also build test WARNING on v4.5-rc2 next-20160201] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-NPS400-drivers/20160202

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Alexey Brodkin
Hi Vineet, On Tue, 2016-02-02 at 19:59 +0530, Vineet Gupta wrote: > Hi Alexey, > > On Tuesday 02 February 2016 06:45 PM, Alexey Brodkin wrote: > > Hi Vineet, > > > > On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > > > + > > > +Required properties: > > > + > > > +- compatible : should be

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Vineet Gupta
Hi Alexey, On Tuesday 02 February 2016 06:45 PM, Alexey Brodkin wrote: > Hi Vineet, > > On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: >> + >> +Required properties: >> + >> +- compatible : should be "snps,arc-timer0" >> +- interrupts : single Interrupt going into parent intc >> +

Re: [PATCH 7/9] ARC: use fixed frequencies in arc_set_early_base_baud()

2016-02-02 Thread Alexey Brodkin
Hi Christian, On Tue, 2016-02-02 at 14:43 +0100, christian.rupp...@alitech.com wrote: > Alexey Brodkin wrote on 02.02.2016 13:53:26: > > > > Adding Christian for Abilis TB10x clocks review. > > > > On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > > > From: Alexey Brodkin > > > > > > U

Re: [PATCH 7/9] ARC: use fixed frequencies in arc_set_early_base_baud()

2016-02-02 Thread christian . ruppert
Alexey Brodkin wrote on 02.02.2016 13:53:26: > > Adding Christian for Abilis TB10x clocks review. > > On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > > From: Alexey Brodkin > > > > UARTs usually have fixed clock so we're switching to use of > > constant values instead of something der

Re: [PATCH v2 3/3] irqchip: add nps Internal and external irqchips

2016-02-02 Thread Thomas Gleixner
On Tue, 2 Feb 2016, Noam Camus wrote: > +#include > +#include > +#include > +#include > +#include > +#include > + > +#undef NR_CPU_IRQS What's that #undef for? > +#define NR_CPU_IRQS 8 /* number of interrupt lines of NPS400 CPU */ > +#define TIMER0_IRQ 3 > +static void nps400_irq_eoi_g

[PATCH v2 3/3] irqchip: add nps Internal and external irqchips

2016-02-02 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

[PATCH v2 2/3] clocksource: Add NPS400 timers driver

2016-02-02 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v2 0/3] Adding NPS400 drivers

2016-02-02 Thread Noam Camus
From: Noam Camus Change Log-- v2: Add header file include/soc/nps/common.h. Now to build we do not depend on ARC subtree. General summay: Both drivers are now apart of previous basic patch set of new platform for ARC. The rest is now can be seen at ARC srctree: https://git.kernel.org/cgit/linux/

[PATCH v2 1/3] soc: Support for EZchip SoC

2016-02-02 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 140 ++ 1 file

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Alexey Brodkin
Hi Vineet, On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > ARC Timers have historically been probed directly. > As precursor to start probing Timers thru DT introduce these bindings > > Cc: Daniel Lezcano > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Signed-off-by: Vineet Gupta

Re: [PATCH 7/9] ARC: use fixed frequencies in arc_set_early_base_baud()

2016-02-02 Thread Alexey Brodkin
Adding Christian for Abilis TB10x clocks review. On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > From: Alexey Brodkin > > UARTs usually have fixed clock so we're switching to use of > constant values instead of something derived from core clock > frequency. > > Among other things this

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Alexey Brodkin
Hi Vineet, On Tue, 2016-02-02 at 16:28 +0530, Vineet Gupta wrote: > ARC Timers have historically been probed directly. > As precursor to start probing Timers thru DT introduce these bindings > > Cc: Daniel Lezcano > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Signed-off-by: Vineet Gupta

[PATCH 7/9] ARC: use fixed frequencies in arc_set_early_base_baud()

2016-02-02 Thread Vineet Gupta
From: Alexey Brodkin UARTs usually have fixed clock so we're switching to use of constant values instead of something derived from core clock frequency. Among other things this will allow us to get rid of arc_{get|set}_core_freq() and switch to generic clock framework later on. Signed-off-by: A

[PATCH 3/9] ARC: clockevent: switch to cpu notifier for clockevent setup

2016-02-02 Thread Vineet Gupta
From: Noam Camus ARC Timers so far have been handled as "legacy" w/o explicit description in DT. This poses challenge for newer platforms wanting to use them. This series will eventually help move timers over to DT. This patch does a small change of using a CPU notifier to set clockevent on non-

[PATCH 8/9] ARC: [plat-axs] Don't use arc_{get|set}_core_freq() for manipulating core clk

2016-02-02 Thread Vineet Gupta
From: Alexey Brodkin For AXS103, certain bitfile configurations may not work with stock "clock-frequency" specified in DT. Instead of duplicating the DT files, we fixup the DT in-place. This used to be done differently - as in top level "clock-frequency" was read very early from FDT and exported

[PATCH 6/9] ARC: clocksource: DT based probe

2016-02-02 Thread Vineet Gupta
- Remove explicit clocksource setup and let it be done by OF framework by defining CLOCKSOURCE_OF_DECLARE() for various timers - This allows multiple clocksources to be potentially registered simultaneouly: previously we could only do one - as all of them had same arc_counter_setup() routine

[PATCH 5/9] ARC: clockevent: DT based probe

2016-02-02 Thread Vineet Gupta
- timer frequency is derived from DT (no longer rely on top level DT "clock-frequency" probed early and exported by asm/clk.h) - TIMER0_IRQ need not be exported across arch code, confided to intc as it is property of same Cc: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/incl

[PATCH 9/9] ARC: RIP arc_{get|set}_core_freq() clk API

2016-02-02 Thread Vineet Gupta
From: Alexey Brodkin There are no more users of this - so RIP! Signed-off-by: Alexey Brodkin [vgupta: update changelog] Signed-off-by: Vineet Gupta Signed-off-by: Vineet Gupta --- arch/arc/include/asm/clk.h | 22 -- arch/arc/kernel/Makefile | 2 +- arch/arc/kernel/clk

[PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Vineet Gupta
ARC Timers have historically been probed directly. As precursor to start probing Timers thru DT introduce these bindings Cc: Daniel Lezcano Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Vineet Gupta --- .../devicetree/bindings/timer/snps,arc-timer0.txt | 23 +++

[PATCH 4/9] ARC: clockevent: Prepare for DT based probe

2016-02-02 Thread Vineet Gupta
From: Noam Camus - call clocksource_probe() - This in turns needs of_clk_init() to be called earlier Cc: Daniel Lezcano Signed-off-by: Noam Camus [vgupta: broken off from a bigger patch] Signed-off-by: Vineet Gupta Signed-off-by: Vineet Gupta --- arch/arc/Kconfig| 3 ++- arch/arc

[PATCH 0/9] ARC clockevent/clocksource modernization

2016-02-02 Thread Vineet Gupta
Hi, This mini-series came out as a result of discussions during EZChip platform code review. This switches ARC timers to DT based probe and removes the homebrew clk API we had before. @Rob could you please take a look at the DT bindings. @Daniel any comments would be appreciated ! Thx, -Vineet

[PATCH 1/9] ARC: [dts] Add clk feeding into timers to DTs

2016-02-02 Thread Vineet Gupta
This allows us to introduce timers in DT in next commit Cc: Daniel Lezcano Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Vineet Gupta --- arch/arc/boot/dts/axc001.dtsi | 6 ++ arch/arc/boot/dts/axc003.dtsi | 6 ++ arch/arc/boot/dts/axc003_idu.dtsi |

Re: [PATCH v7 1/2] PCI support added to ARC

2016-02-02 Thread Vineet Gupta
On Monday 01 February 2016 11:37 PM, Joao Pinto wrote: > This patch adds PCI support to ARC and updates drivers/pci Makefile > enabling the ARC arch to use the generic PCI setup functions. > > Signed-off-by: Joao Pinto Acked-by: Vineet Gupta @Bjorn - feel free to pull this patch into your tree