Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-04-26 Thread Vlad Zakharov
Hi David, all, On Wed, 2017-03-29 at 14:30 -0700, David Miller wrote: > From: Vlad Zakharov <vladislav.zakha...@synopsys.com> > Date: Wed, 29 Mar 2017 13:41:46 +0300 > > > > > After a new NAPI_STATE_MISSED state was added to NAPI we can get into > > th

Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-04-26 Thread Vlad Zakharov
Hi David, all, On Wed, 2017-03-29 at 14:30 -0700, David Miller wrote: > From: Vlad Zakharov > Date: Wed, 29 Mar 2017 13:41:46 +0300 > > > > > After a new NAPI_STATE_MISSED state was added to NAPI we can get into > > this state and in such case we have to r

[PATCH v3] clk/axs10x: introduce AXS10X pll driver

2017-04-21 Thread Vlad Zakharov
. and more to come later. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> Signed-off-by: Jose Abreu <joab...@synopsys.com> Cc: Michael Turquette <mturque...@baylibre.com> Cc: Stephen Boyd <sb...@codeaurora.org> Cc: Mark Rutland <

[PATCH v3] clk/axs10x: introduce AXS10X pll driver

2017-04-21 Thread Vlad Zakharov
. and more to come later. Acked-by: Rob Herring Signed-off-by: Vlad Zakharov Signed-off-by: Jose Abreu Cc: Michael Turquette Cc: Stephen Boyd Cc: Mark Rutland --- Changes v2..v3 - replaced complex data structures with simple cfg tables - replaced non-hw based provider and clk registration

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-04-20 Thread Vlad Zakharov
Hi Stephen, On Wed, 2017-04-19 at 09:49 -0700, sb...@codeaurora.org wrote: > On 04/05, Vlad Zakharov wrote: > > > > Hi Stephen, > > > > On Tue, 2017-04-04 at 18:35 -0700, Stephen Boyd wrote: > > > > > > >

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-04-20 Thread Vlad Zakharov
Hi Stephen, On Wed, 2017-04-19 at 09:49 -0700, sb...@codeaurora.org wrote: > On 04/05, Vlad Zakharov wrote: > > > > Hi Stephen, > > > > On Tue, 2017-04-04 at 18:35 -0700, Stephen Boyd wrote: > > > > > > >

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-04-05 Thread Vlad Zakharov
he > driver need to probe and also have this of declare happen? Is the > PLL special and needs to be used for the timers? It is special and is used for the timers, so we have to CLK_OF_DECLARE it. On the other hand similar pll is used to drive PGU clock frequency and other subsystems and so we add usual probe func. -- Best regards, Vlad Zakharov <vzak...@synopsys.com>

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-04-05 Thread Vlad Zakharov
he > driver need to probe and also have this of declare happen? Is the > PLL special and needs to be used for the timers? It is special and is used for the timers, so we have to CLK_OF_DECLARE it. On the other hand similar pll is used to drive PGU clock frequency and other subsystems and so we add usual probe func. -- Best regards, Vlad Zakharov

Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-03-30 Thread Vlad Zakharov
Hi Eric, On Wed, 2017-03-29 at 14:41 -0700, Eric Dumazet wrote: > On Wed, Mar 29, 2017 at 2:30 PM, David Miller <da...@davemloft.net> wrote: > Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> > > > > > > Applied. > > > > Eric, if this is reall

Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-03-30 Thread Vlad Zakharov
Hi Eric, On Wed, 2017-03-29 at 14:41 -0700, Eric Dumazet wrote: > On Wed, Mar 29, 2017 at 2:30 PM, David Miller wrote: > Signed-off-by: Vlad Zakharov > > > > > > Applied. > > > > Eric, if this is really required now, we have 148 broken drivers still. >

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-03-29 Thread Vlad Zakharov
Hi Stephen, Michael, On Fri, 2017-03-03 at 15:50 -0800, Stephen Boyd wrote: > On 03/03, Vlad Zakharov wrote: > > > > Hi Michael, Stephen, > > > > On Tue, 2017-02-21 at 16:11 +0300, Vlad Zakharov wrote: > > > > > > AXS10X boards manages it's

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-03-29 Thread Vlad Zakharov
Hi Stephen, Michael, On Fri, 2017-03-03 at 15:50 -0800, Stephen Boyd wrote: > On 03/03, Vlad Zakharov wrote: > > > > Hi Michael, Stephen, > > > > On Tue, 2017-02-21 at 16:11 +0300, Vlad Zakharov wrote: > > > > > > AXS10X boards manages it's

[PATCH] ezchip: nps_enet: check if napi has been completed

2017-03-29 Thread Vlad Zakharov
trapped in interrupt hanlder chain as we had never been able to disabale ethernet interrupts again. So this patch makes nps_enet_poll() func verify return value of napi_complete_done() and enable interrupts only in case all scheduled work has been completed. Signed-off-by: Vlad Zakharov <v

[PATCH] ezchip: nps_enet: check if napi has been completed

2017-03-29 Thread Vlad Zakharov
trapped in interrupt hanlder chain as we had never been able to disabale ethernet interrupts again. So this patch makes nps_enet_poll() func verify return value of napi_complete_done() and enable interrupts only in case all scheduled work has been completed. Signed-off-by: Vlad Zakharov

update timer frequencies

2017-03-10 Thread Vlad Zakharov
some minor changes to timekeeping framework to resolve this issue (special flag that allows such changes or something like this?). Thanks. -- Best regards, Vlad Zakharov <vzak...@synopsys.com>

update timer frequencies

2017-03-10 Thread Vlad Zakharov
some minor changes to timekeeping framework to resolve this issue (special flag that allows such changes or something like this?). Thanks. -- Best regards, Vlad Zakharov

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-03-03 Thread Vlad Zakharov
Hi Michael, Stephen, On Tue, 2017-02-21 at 16:11 +0300, Vlad Zakharov wrote: > AXS10X boards manages it's clocks using various PLLs. These PLL has same > dividers and corresponding control registers mapped to different addresses. > So we add one common driver for such PLLs. >

Re: [PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-03-03 Thread Vlad Zakharov
Hi Michael, Stephen, On Tue, 2017-02-21 at 16:11 +0300, Vlad Zakharov wrote: > AXS10X boards manages it's clocks using various PLLs. These PLL has same > dividers and corresponding control registers mapped to different addresses. > So we add one common driver for such PLLs. >

[PATCH 3/3] arc: get rate from clk driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
n't work as rate may change during the time or even "clock-frequency" property may not be presented at all. So this commit replaces reading device tree with getting rate from clock driver. This approach is much more flexible and will work for both fixed and mutable clocks. Sign

[PATCH 3/3] arc: get rate from clk driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
n't work as rate may change during the time or even "clock-frequency" property may not be presented at all. So this commit replaces reading device tree with getting rate from clock driver. This approach is much more flexible and will work for both fixed and mutable clocks. Signed-off-by

[PATCH 0/3] ARC: get frequency via clock driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
This patch series replaces reading device tree with getting CPU clock frequency via clock driver in show_cpuinfo function. In order to achieve this we also add cpu nodes to device tree which describes SMP system and add "clocks" properties to all ARC cpu nodes. Vlad Zakharov (3):

[PATCH 0/3] ARC: get frequency via clock driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
This patch series replaces reading device tree with getting CPU clock frequency via clock driver in show_cpuinfo function. In order to achieve this we also add cpu nodes to device tree which describes SMP system and add "clocks" properties to all ARC cpu nodes. Vlad Zakharov (3):

[PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree

2017-03-03 Thread Vlad Zakharov
evice tree to match maximum possible cores quantity. Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> --- arch/arc/boot/dts/skeleton_hs_idu.dtsi | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arc/boot/dts/skeleton_hs_idu.dtsi b/a

[PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree

2017-03-03 Thread Vlad Zakharov
evice tree to match maximum possible cores quantity. Signed-off-by: Vlad Zakharov --- arch/arc/boot/dts/skeleton_hs_idu.dtsi | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arc/boot/dts/skeleton_hs_idu.dtsi b/arch/arc/boot/dts/skeleton_hs_idu.

[PATCH 1/3] ARC: [dts] add input clocks for cpu nodes

2017-03-03 Thread Vlad Zakharov
ARC CPU cores are driven by core_clk so we add corresponding "clocks" property to ARC cpu nodes. Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> --- arch/arc/boot/dts/skeleton.dtsi| 1 + arch/arc/boot/dts/skeleton_hs.dtsi | 1 + arch/arc/boot/dts/skeleton_hs_i

[PATCH 1/3] ARC: [dts] add input clocks for cpu nodes

2017-03-03 Thread Vlad Zakharov
ARC CPU cores are driven by core_clk so we add corresponding "clocks" property to ARC cpu nodes. Signed-off-by: Vlad Zakharov --- arch/arc/boot/dts/skeleton.dtsi| 1 + arch/arc/boot/dts/skeleton_hs.dtsi | 1 + arch/arc/boot/dts/skeleton_hs_idu.dtsi | 1 + 3 files

[PATCH] arc: get rate from clk driver instead of reading device tree

2017-02-22 Thread Vlad Zakharov
n't work as rate may change during the time or even "clock-frequency" property may not be presented at all. So this commit replaces reading device tree with getting rate from clock driver. This approach is much more flexible and will work for both fixed and mutable clocks. Sign

[PATCH] arc: get rate from clk driver instead of reading device tree

2017-02-22 Thread Vlad Zakharov
n't work as rate may change during the time or even "clock-frequency" property may not be presented at all. So this commit replaces reading device tree with getting rate from clock driver. This approach is much more flexible and will work for both fixed and mutable clocks. Signed-off-by

[PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-02-21 Thread Vlad Zakharov
. and more to come later. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> Signed-off-by: Jose Abreu <joab...@synopsys.com> Cc: Michael Turquette <mturque...@baylibre.com> Cc: Stephen Boyd <sb...@codeaurora.org> Cc: Mark Rutland <

[PATCH v2] clk/axs10x: introduce AXS10X pll driver

2017-02-21 Thread Vlad Zakharov
. and more to come later. Acked-by: Rob Herring Signed-off-by: Vlad Zakharov Signed-off-by: Jose Abreu Cc: Michael Turquette Cc: Stephen Boyd Cc: Mark Rutland --- Cc: Rob Herring Changes v1..v2 - Replace '_' with '-' in device tree nodes .../devicetree/bindings/clock/snps,pll-clock.txt | 28

cpufreq: get cpufreq_frequency_table from clk driver

2017-02-21 Thread Vlad Zakharov
be very helpful. Thanks! -- Best regards, Vlad Zakharov <vzak...@synopsys.com>

cpufreq: get cpufreq_frequency_table from clk driver

2017-02-21 Thread Vlad Zakharov
be very helpful. Thanks! -- Best regards, Vlad Zakharov

[PATCH] clk/axs10x: introduce AXS10X pll driver

2017-02-09 Thread Vlad Zakharov
. and more to come later. Signed-off-by: Vlad Zakharov <vzak...@synopsys.com> Signed-off-by: Jose Abreu <joab...@synopsys.com> Cc: Michael Turquette <mturque...@baylibre.com> Cc: Stephen Boyd <sb...@codeaurora.org> Cc: Rob Herring <robh...@kernel.org> Cc: Mark

[PATCH] clk/axs10x: introduce AXS10X pll driver

2017-02-09 Thread Vlad Zakharov
. and more to come later. Signed-off-by: Vlad Zakharov Signed-off-by: Jose Abreu Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Mark Rutland --- .../devicetree/bindings/clock/snps,pll-clock.txt | 28 ++ MAINTAINERS| 6 + drivers/clk/axs10x