Re: [PATCH 3/3] Input: ti_am335x_tsc - Ack pending IRQs at probe and before suspend

2016-05-16 Thread Lee Jones
On Mon, 16 May 2016, Vignesh R wrote: > From: Grygorii Strashko > > It is seen that just enabling the TSC module triggers a HW_PEN IRQ > without any interaction with touchscreen by user. This results in first > suspend/resume sequence to fail as system immediately

Re: [PATCH 3/3] Input: ti_am335x_tsc - Ack pending IRQs at probe and before suspend

2016-05-16 Thread Lee Jones
On Mon, 16 May 2016, Vignesh R wrote: > From: Grygorii Strashko > > It is seen that just enabling the TSC module triggers a HW_PEN IRQ > without any interaction with touchscreen by user. This results in first > suspend/resume sequence to fail as system immediately wakes up from > suspend as

Re: [linux-sunxi] Re: [PATCH 4/9] spi: sun4i: add DMA support

2016-05-16 Thread Michal Suchanek
On 20 August 2015 at 16:56, Maxime Ripard wrote: >> + /* Enable Dedicated DMA requests */ >> + reg = sun4i_spi_read(sspi, SUN4I_CTL_REG); >> + reg |= SUN4I_CTL_DMAMC_DEDICATED; >> + sun4i_spi_write(sspi,

Re: [linux-sunxi] Re: [PATCH 4/9] spi: sun4i: add DMA support

2016-05-16 Thread Michal Suchanek
On 20 August 2015 at 16:56, Maxime Ripard wrote: >> + /* Enable Dedicated DMA requests */ >> + reg = sun4i_spi_read(sspi, SUN4I_CTL_REG); >> + reg |= SUN4I_CTL_DMAMC_DEDICATED; >> + sun4i_spi_write(sspi, SUN4I_CTL_REG, reg); >> +

Re: CQ and RDMA READ/WRITE APIs

2016-05-16 Thread Christoph Hellwig
Hi Linus, we're not talking about a driver here - we're talking about a new API lifted from a driver to generic code because it's commonly useful. It's also in entirely new files and not a modification of existing code, and it's always been clear how it is. Some of the code has been in since

Re: CQ and RDMA READ/WRITE APIs

2016-05-16 Thread Christoph Hellwig
Hi Linus, we're not talking about a driver here - we're talking about a new API lifted from a driver to generic code because it's commonly useful. It's also in entirely new files and not a modification of existing code, and it's always been clear how it is. Some of the code has been in since

Re: Do not build vmstat_refresh if there is no procfs support

2016-05-16 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160511] [cannot apply to v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: Do not build vmstat_refresh if there is no procfs support

2016-05-16 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160511] [cannot apply to v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c

2016-05-16 Thread Vlastimil Babka
On 05/17/2016 03:06 AM, Wang Xiaoqiang wrote: >>yes it would. Why that would matter. The checks should be in an order >>which could give us a more specific reason with later checks. bad_page() > > I see, you mean the later "bad_reason" is the superset of the previous one. Not exactly. It's not

Re: Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c

2016-05-16 Thread Vlastimil Babka
On 05/17/2016 03:06 AM, Wang Xiaoqiang wrote: >>yes it would. Why that would matter. The checks should be in an order >>which could give us a more specific reason with later checks. bad_page() > > I see, you mean the later "bad_reason" is the superset of the previous one. Not exactly. It's not

[PATCH 08/11] dt/bindings: Correct clk binding example for PIC32 serial.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt | 2 +- 1 file changed, 1

[PATCH 09/11] dt/bindings: Correct clk binding example for PIC32 DMT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt | 4 ++-- 1 file changed, 2

[PATCH 08/11] dt/bindings: Correct clk binding example for PIC32 serial.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 09/11] dt/bindings: Correct clk binding example for PIC32 DMT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-dmt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v8 01/10] clk: fix initial state of critical clock's parents

2016-05-16 Thread Erin Lo
From: James Liao This patch fixed wrong state of parent clocks if they are registered after critical clocks. Signed-off-by: James Liao --- drivers/clk/clk.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v8 07/10] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-05-16 Thread Erin Lo
From: Shunli Wang Dt-binding file about reset controller is used to provide kinds of definition, which is referenced by dts file and IC-specified reset controller driver code. Signed-off-by: Shunli Wang Signed-off-by: James Liao

[PATCH v8 01/10] clk: fix initial state of critical clock's parents

2016-05-16 Thread Erin Lo
From: James Liao This patch fixed wrong state of parent clocks if they are registered after critical clocks. Signed-off-by: James Liao --- drivers/clk/clk.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ce39add..bf80e39

[PATCH v8 07/10] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-05-16 Thread Erin Lo
From: Shunli Wang Dt-binding file about reset controller is used to provide kinds of definition, which is referenced by dts file and IC-specified reset controller driver code. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin Acked-by: Philipp Zabel ---

[PATCH v8 03/10] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-05-16 Thread Erin Lo
From: James Liao Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by:

[PATCH v8 03/10] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-05-16 Thread Erin Lo
From: James Liao Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin Reviewed-by: Matthias Brugger --- drivers/clk/Kconfig |

[PATCH 11/11] dt/bindings: Correct clk binding example for PIC32 gpio.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/gpio/microchip,pic32-gpio.txt | 2 +- 1 file changed, 1 insertion(+),

[PATCH 10/11] dt/bindings: Correct clk binding example for PIC32 WDT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-wdt.txt | 4 ++-- 1 file changed, 2

[PATCH 11/11] dt/bindings: Correct clk binding example for PIC32 gpio.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/gpio/microchip,pic32-gpio.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 10/11] dt/bindings: Correct clk binding example for PIC32 WDT.

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/watchdog/microchip,pic32-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v8 06/10] clk: mediatek: Add MT2701 clock support

2016-05-16 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin

[PATCH v8 06/10] clk: mediatek: Add MT2701 clock support

2016-05-16 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin --- drivers/clk/mediatek/Kconfig | 50 ++ drivers/clk/mediatek/Makefile |7

[PATCH v8 05/10] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-05-16 Thread Erin Lo
From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin

[PATCH v8 08/10] reset: mediatek: Add MT2701 reset driver

2016-05-16 Thread Erin Lo
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang

[PATCH v8 09/10] arm: dts: mt2701: Add clock controller device nodes

2016-05-16 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao

[PATCH v8 04/10] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-05-16 Thread Erin Lo
From: James Liao This patch adds the binding documentation for apmixedsys, bdpsys, ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and vdecsys for Mediatek MT2701. Signed-off-by: James Liao Tested-by: John Crispin

[PATCH v8 10/10] arm: dts: mt2701: Use real clock for UARTs

2016-05-16 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 18 -- 1 file changed, 8

[PATCH v8 05/10] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-05-16 Thread Erin Lo
From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin Reviewed-by: Matthias Brugger --- include/dt-bindings/clock/mt2701-clk.h | 486

[PATCH v8 08/10] reset: mediatek: Add MT2701 reset driver

2016-05-16 Thread Erin Lo
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin

[PATCH v8 09/10] arm: dts: mt2701: Add clock controller device nodes

2016-05-16 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao --- arch/arm/boot/dts/mt2701.dtsi | 42

[PATCH v8 04/10] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-05-16 Thread Erin Lo
From: James Liao This patch adds the binding documentation for apmixedsys, bdpsys, ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and vdecsys for Mediatek MT2701. Signed-off-by: James Liao Tested-by: John Crispin Acked-by: Rob Herring ---

[PATCH v8 10/10] arm: dts: mt2701: Use real clock for UARTs

2016-05-16 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 18 -- 1 file changed, 8 insertions(+), 10

[PATCH 06/11] dt/bindings: Correct clk binding example for PIC32 SDHCI

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding documentation. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt | 2 +- 1 file changed, 1

[PATCH 07/11] dt/bindings: Correct clk binding example for PIC32 pinctrl

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/pinctrl/microchip,pic32-pinctrl.txt | 2 +- 1 file changed, 1

[PATCH 06/11] dt/bindings: Correct clk binding example for PIC32 SDHCI

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding documentation. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 07/11] dt/bindings: Correct clk binding example for PIC32 pinctrl

2016-05-16 Thread Purna Chandra Mandal
Update binding example based on new clock binding scheme. [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt Signed-off-by: Purna Chandra Mandal --- Documentation/devicetree/bindings/pinctrl/microchip,pic32-pinctrl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-05-16 Thread Purna Chandra Mandal
PIC32 clock driver is now implemented as platform driver instead of as part of of_clk_init(). It meants all the clock modules are available quite late in the boot sequence. So request for CPU clock by clk_get_sys() and clk_get_rate() to find c0_timer rate fails. To fix this use PIC32 specific

[PATCH 04/11] irqchip: irq-pic32-evic: Fix bug with external interrupts.

2016-05-16 Thread Purna Chandra Mandal
From: Joshua Henderson The wrong external interrupt bits are being set, offset by 1. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- drivers/irqchip/irq-pic32-evic.c | 2 +- 1 file

[PATCH v8 02/10] clk: mediatek: remove __init from clk registration functions

2016-05-16 Thread Erin Lo
From: James Liao Remove __init from functions that will be used by init functions that support probe deferral. Signed-off-by: James Liao --- drivers/clk/mediatek/clk-gate.c | 2 +- drivers/clk/mediatek/clk-mtk.c | 12 ++--

[PATCH 05/11] serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.

2016-05-16 Thread Purna Chandra Mandal
Allocated memory for 'sport->irq_fault_name' is freed twice, first in error check of 'if(!sport->irq_rx_name)' and other in fallback handler. Signed-off-by: Purna Chandra Mandal --- drivers/tty/serial/pic32_uart.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-05-16 Thread Purna Chandra Mandal
PIC32 clock driver is now implemented as platform driver instead of as part of of_clk_init(). It meants all the clock modules are available quite late in the boot sequence. So request for CPU clock by clk_get_sys() and clk_get_rate() to find c0_timer rate fails. To fix this use PIC32 specific

[PATCH 04/11] irqchip: irq-pic32-evic: Fix bug with external interrupts.

2016-05-16 Thread Purna Chandra Mandal
From: Joshua Henderson The wrong external interrupt bits are being set, offset by 1. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- drivers/irqchip/irq-pic32-evic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-pic32-evic.c

[PATCH v8 02/10] clk: mediatek: remove __init from clk registration functions

2016-05-16 Thread Erin Lo
From: James Liao Remove __init from functions that will be used by init functions that support probe deferral. Signed-off-by: James Liao --- drivers/clk/mediatek/clk-gate.c | 2 +- drivers/clk/mediatek/clk-mtk.c | 12 ++-- drivers/clk/mediatek/clk-pll.c | 2 +- 3 files changed, 8

[PATCH 05/11] serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.

2016-05-16 Thread Purna Chandra Mandal
Allocated memory for 'sport->irq_fault_name' is freed twice, first in error check of 'if(!sport->irq_rx_name)' and other in fallback handler. Signed-off-by: Purna Chandra Mandal --- drivers/tty/serial/pic32_uart.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 02/11] clk: microchip: Initialize SOSC clock rate for PIC32MZDA.

2016-05-16 Thread Purna Chandra Mandal
Optional SOSC is an external fixed clock running at 32768HZ. So Initialize SOSC rate as per PIC32MZDA datasheet. Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-pic32mzda.c | 1 +

[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
pbclk_set_rate() is using readl_poll_timeout_atomic() even though spinlock is released. Fix it by replacing with readl_poll_timeout(). Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. ---

[PATCH 02/11] clk: microchip: Initialize SOSC clock rate for PIC32MZDA.

2016-05-16 Thread Purna Chandra Mandal
Optional SOSC is an external fixed clock running at 32768HZ. So Initialize SOSC rate as per PIC32MZDA datasheet. Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-pic32mzda.c | 1 + 1 file changed, 1

[PATCH 01/11] clk: microchip: use readl_poll_timeout() in pbclk_set_rate().

2016-05-16 Thread Purna Chandra Mandal
pbclk_set_rate() is using readl_poll_timeout_atomic() even though spinlock is released. Fix it by replacing with readl_poll_timeout(). Signed-off-by: Purna Chandra Mandal --- Note: Please pull this complete series through the MIPS tree. --- drivers/clk/microchip/clk-core.c | 6 +++--- 1 file

[PATCH v8 0/10] Add clock support for Mediatek MT2701

2016-05-16 Thread Erin Lo
This series is based on clk-next, add clock and reset controller support for Mediatek MT2701. This series also refined makefile and Kconfig to support configurable multiple SoC clock support. There some code borrowed from [2] in clk-mtk.h, and may need to resolve conflicts while merging these

[PATCH v8 0/10] Add clock support for Mediatek MT2701

2016-05-16 Thread Erin Lo
This series is based on clk-next, add clock and reset controller support for Mediatek MT2701. This series also refined makefile and Kconfig to support configurable multiple SoC clock support. There some code borrowed from [2] in clk-mtk.h, and may need to resolve conflicts while merging these

linux-next: Tree for May 17

2016-05-16 Thread Stephen Rothwell
Hi all, Please do not add any v4.8 destined material to your linux-next included branches until after v4.7-rc1 has been released. Changes since 20160516: The vfs tree gained a conflict against the ext4 tree. The net-next tree gained a conflict against the arm64 tree. The spi tree lost its

linux-next: Tree for May 17

2016-05-16 Thread Stephen Rothwell
Hi all, Please do not add any v4.8 destined material to your linux-next included branches until after v4.7-rc1 has been released. Changes since 20160516: The vfs tree gained a conflict against the ext4 tree. The net-next tree gained a conflict against the arm64 tree. The spi tree lost its

[mm] 23047a96d7: vm-scalability.throughput -23.8% regression

2016-05-16 Thread kernel test robot
3047a96d7cfcfca1a6d026ecaec526ea4803e9e/linux-headers.cgz" repeat_to: 2 kernel: "/pkg/linux/x86_64-rhel/gcc-4.9/23047a96d7cfcfca1a6d026ecaec526ea4803e9e/vmlinuz-4.5.0-00570-g23047a9" dequeue_time: 2016-05-17 00:25:26.281743408 +08:00 job_state: finished loadavg: 39.10 58.24 29.31 1/548

[mm] 23047a96d7: vm-scalability.throughput -23.8% regression

2016-05-16 Thread kernel test robot
3047a96d7cfcfca1a6d026ecaec526ea4803e9e/linux-headers.cgz" repeat_to: 2 kernel: "/pkg/linux/x86_64-rhel/gcc-4.9/23047a96d7cfcfca1a6d026ecaec526ea4803e9e/vmlinuz-4.5.0-00570-g23047a9" dequeue_time: 2016-05-17 00:25:26.281743408 +08:00 job_state: finished loadavg: 39.10 58.24 29.31 1/548

Re: [PATCH v2] tpm: Factor out common startup code

2016-05-16 Thread Jarkko Sakkinen
On Mon, May 16, 2016 at 12:25:47PM -0600, Jason Gunthorpe wrote: > Provide some flags in tpm_class_ops to allow drivers to opt-in to the > common startup sequence. This is the sequence used by tpm_tis and > tpm_crb. > > All drivers should set this flag. The commit message should be a much much

Re: [PATCH v2] tpm: Factor out common startup code

2016-05-16 Thread Jarkko Sakkinen
On Mon, May 16, 2016 at 12:25:47PM -0600, Jason Gunthorpe wrote: > Provide some flags in tpm_class_ops to allow drivers to opt-in to the > common startup sequence. This is the sequence used by tpm_tis and > tpm_crb. > > All drivers should set this flag. The commit message should be a much much

Re: [PATCH 3.14 00/17] 3.14.70-stable review

2016-05-16 Thread Guenter Roeck
On 05/16/2016 06:14 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.14.70 release. There are 17 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 3.14 00/17] 3.14.70-stable review

2016-05-16 Thread Guenter Roeck
On 05/16/2016 06:14 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.14.70 release. There are 17 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH] Staging: comedi: quatech_daqp_cs.c: fixed a warning issue

2016-05-16 Thread Amit Ghadge
Hello Greg KH, I make patch same like other, I'm new and I nerver see changelog in other patches. Where to add changelog? I followed you are tutorial. Thanks, Amit Ghadge On Mon, May 16, 2016 at 08:34:55PM -0700, Greg KH wrote: > > A: No. > Q: Should I include quotations after my reply? > >

Re: [PATCH] Staging: comedi: quatech_daqp_cs.c: fixed a warning issue

2016-05-16 Thread Amit Ghadge
Hello Greg KH, I make patch same like other, I'm new and I nerver see changelog in other patches. Where to add changelog? I followed you are tutorial. Thanks, Amit Ghadge On Mon, May 16, 2016 at 08:34:55PM -0700, Greg KH wrote: > > A: No. > Q: Should I include quotations after my reply? > >

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
commit d1a792f3b407 ("Update imx-sdma cyclic handling to report residue") moves updating of BD to isr routine, to avoid stop of cyclic dma, but there is chance 'new' isr comes before the 'old' tasklet can be fired, thus cause data loss due to missing of one tasklet. So move updating of BD back to

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
commit d1a792f3b407 ("Update imx-sdma cyclic handling to report residue") moves updating of BD to isr routine, to avoid stop of cyclic dma, but there is chance 'new' isr comes before the 'old' tasklet can be fired, thus cause data loss due to missing of one tasklet. So move updating of BD back to

[PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-05-16 Thread Jiada Wang
this patch set contains the following changes 1. fix issues in cyclic dma 2. add support to SYNC DMA termination 3. avoid system hang, when SDMA channel 0 timeouts 4. add lock to prevent race condition Jiada Wang (10): dma: imx-sdma: use chn_real_count to report residue for UART dma:

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

2016-05-16 Thread Jiada Wang
Previously for cyclic dma mode, once sdma fails sdma channel status will be set to DMA_ERROR, unless the transfer is prepared again, sdmac status will always be kept to DMA_ERROR, even the transfer for following buffers is successful. This patch updates sdmac status to the status of current

[PATCH 03/10] dma: imx-sdma: clear BD_RROR flag before pass it to sdma script

2016-05-16 Thread Jiada Wang
Previously in cyclic dma mode when sdma transfer fails for one buffer, it will mask BD_RROR flag for that buffer descriptor (BD). This flag won't be cleared unless a new cyclic dma transfer is prepared, so if sdma script next time iterates to the same BD, even this time the transfer is successful,

Re: [RFC][PATCH 5/5] sched/core: Add debug code to catch missing update_rq_clock()

2016-05-16 Thread Yuyang Du
On Mon, May 16, 2016 at 10:46:38AM +0100, Matt Fleming wrote: > > > > > > - rq->clock_skip_update = 0; > > > + /* Clear ACT, preserve everything else */ > > > + rq->clock_update_flags ^= RQCF_ACT_SKIP; > > > > The comment says "Clear ACT", but this is really xor, and I am not sure > > this is

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

2016-05-16 Thread Jiada Wang
Previously for cyclic dma mode, once sdma fails sdma channel status will be set to DMA_ERROR, unless the transfer is prepared again, sdmac status will always be kept to DMA_ERROR, even the transfer for following buffers is successful. This patch updates sdmac status to the status of current

[PATCH 03/10] dma: imx-sdma: clear BD_RROR flag before pass it to sdma script

2016-05-16 Thread Jiada Wang
Previously in cyclic dma mode when sdma transfer fails for one buffer, it will mask BD_RROR flag for that buffer descriptor (BD). This flag won't be cleared unless a new cyclic dma transfer is prepared, so if sdma script next time iterates to the same BD, even this time the transfer is successful,

Re: [RFC][PATCH 5/5] sched/core: Add debug code to catch missing update_rq_clock()

2016-05-16 Thread Yuyang Du
On Mon, May 16, 2016 at 10:46:38AM +0100, Matt Fleming wrote: > > > > > > - rq->clock_skip_update = 0; > > > + /* Clear ACT, preserve everything else */ > > > + rq->clock_update_flags ^= RQCF_ACT_SKIP; > > > > The comment says "Clear ACT", but this is really xor, and I am not sure > > this is

[PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-05-16 Thread Jiada Wang
this patch set contains the following changes 1. fix issues in cyclic dma 2. add support to SYNC DMA termination 3. avoid system hang, when SDMA channel 0 timeouts 4. add lock to prevent race condition Jiada Wang (10): dma: imx-sdma: use chn_real_count to report residue for UART dma:

[PATCH 09/10] dma: imx-sdma: disable channel 0 when it timeouts

2016-05-16 Thread Jiada Wang
Previously when channel0 timeouts to finish its task, sdma_run_channel0() just returns without disable channel0, this will cause continuous interrupt later when channel0 finishs its task and set channel0 interrupt bit. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c

[PATCH 06/10] dma: imx-sdma: add terminate_all support

2016-05-16 Thread Jiada Wang
Implement device_terminate_all(), so that dmaengine_terminate_async() can work. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ef5d37c..040cbf2 100644

[PATCH 09/10] dma: imx-sdma: disable channel 0 when it timeouts

2016-05-16 Thread Jiada Wang
Previously when channel0 timeouts to finish its task, sdma_run_channel0() just returns without disable channel0, this will cause continuous interrupt later when channel0 finishs its task and set channel0 interrupt bit. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 43

[PATCH 06/10] dma: imx-sdma: add terminate_all support

2016-05-16 Thread Jiada Wang
Implement device_terminate_all(), so that dmaengine_terminate_async() can work. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ef5d37c..040cbf2 100644 ---

[PATCH 01/10] dma: imx-sdma: use chn_real_count to report residue for UART

2016-05-16 Thread Jiada Wang
For uart rx dma data may not receive fully, so the number of data read by sdma script once isn't always equal to period_len, thus residue returned from sdma_tx_status() isn't valid for uart rx dma. The old way to use chn_real_count to report residue should be used for uart rx dma. Signed-off-by:

[PATCH 01/10] dma: imx-sdma: use chn_real_count to report residue for UART

2016-05-16 Thread Jiada Wang
For uart rx dma data may not receive fully, so the number of data read by sdma script once isn't always equal to period_len, thus residue returned from sdma_tx_status() isn't valid for uart rx dma. The old way to use chn_real_count to report residue should be used for uart rx dma. Signed-off-by:

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

2016-05-16 Thread Jiada Wang
Previously for cyclic dma mode, once sdma fails sdma channel status will be set to DMA_ERROR, unless the transfer is prepared again, sdmac status will always be kept to DMA_ERROR, even the transfer for following buffers is successful. This patch updates sdmac status to the status of current

[PATCH 05/10] dma: imx-sdma: add flag to indicate SDMA channel state

2016-05-16 Thread Jiada Wang
There is race between STOP of SDMA channel and finish of SDMA transfer, so some times, even after sdma_disable_channel() is called, the bit of 'terminated channel' in INTR may still get asserted, thus cause an extra sdma tasklet be called. Add flag 'enabled' to each sdma channel to indicate its

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

2016-05-16 Thread Jiada Wang
Previously for cyclic dma mode, once sdma fails sdma channel status will be set to DMA_ERROR, unless the transfer is prepared again, sdmac status will always be kept to DMA_ERROR, even the transfer for following buffers is successful. This patch updates sdmac status to the status of current

[PATCH 05/10] dma: imx-sdma: add flag to indicate SDMA channel state

2016-05-16 Thread Jiada Wang
There is race between STOP of SDMA channel and finish of SDMA transfer, so some times, even after sdma_disable_channel() is called, the bit of 'terminated channel' in INTR may still get asserted, thus cause an extra sdma tasklet be called. Add flag 'enabled' to each sdma channel to indicate its

[PATCH 03/10] dma: imx-sdma: clear BD_RROR flag before pass it to sdma script

2016-05-16 Thread Jiada Wang
Previously in cyclic dma mode when sdma transfer fails for one buffer, it will mask BD_RROR flag for that buffer descriptor (BD). This flag won't be cleared unless a new cyclic dma transfer is prepared, so if sdma script next time iterates to the same BD, even this time the transfer is successful,

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
commit d1a792f3b407 ("Update imx-sdma cyclic handling to report residue") moves updating of BD to isr routine, to avoid stop of cyclic dma, but there is chance 'new' isr comes before the 'old' tasklet can be fired, thus cause data loss due to missing of one tasklet. So move updating of BD back to

[PATCH 03/10] dma: imx-sdma: clear BD_RROR flag before pass it to sdma script

2016-05-16 Thread Jiada Wang
Previously in cyclic dma mode when sdma transfer fails for one buffer, it will mask BD_RROR flag for that buffer descriptor (BD). This flag won't be cleared unless a new cyclic dma transfer is prepared, so if sdma script next time iterates to the same BD, even this time the transfer is successful,

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
commit d1a792f3b407 ("Update imx-sdma cyclic handling to report residue") moves updating of BD to isr routine, to avoid stop of cyclic dma, but there is chance 'new' isr comes before the 'old' tasklet can be fired, thus cause data loss due to missing of one tasklet. So move updating of BD back to

[PATCH 08/10] dma: imx-sdma: abort updating channel when it has been terminated

2016-05-16 Thread Jiada Wang
In case the corresponding channel has already been terminated, then instead of go on updating channel status, driver should abort from sdma_handle_channel_loop(), otherwise channel status will be updated incorrecly. This patch also adds lock to avoid race between terminate of channel, and updaing

[PATCH 09/10] dma: imx-sdma: disable channel 0 when it timeouts

2016-05-16 Thread Jiada Wang
Previously when channel0 timeouts to finish its task, sdma_run_channel0() just returns without disable channel0, this will cause continuous interrupt later when channel0 finishs its task and set channel0 interrupt bit. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c

[PATCH 08/10] dma: imx-sdma: abort updating channel when it has been terminated

2016-05-16 Thread Jiada Wang
In case the corresponding channel has already been terminated, then instead of go on updating channel status, driver should abort from sdma_handle_channel_loop(), otherwise channel status will be updated incorrecly. This patch also adds lock to avoid race between terminate of channel, and updaing

[PATCH 09/10] dma: imx-sdma: disable channel 0 when it timeouts

2016-05-16 Thread Jiada Wang
Previously when channel0 timeouts to finish its task, sdma_run_channel0() just returns without disable channel0, this will cause continuous interrupt later when channel0 finishs its task and set channel0 interrupt bit. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 43

[PATCH 10/10] dma: imx-sdma: clear channel0 interrupt bit in irq routine

2016-05-16 Thread Jiada Wang
When SDMA channel0 timeouts, even it's disabled in error path, but sometimes we still see its interrupt bit be asserted, which causes irq routine be triggered continuously because no one else clears this bit. This commit clears channel0 interrupt as well in irq routine, so that even channel0

[PATCH 10/10] dma: imx-sdma: clear channel0 interrupt bit in irq routine

2016-05-16 Thread Jiada Wang
When SDMA channel0 timeouts, even it's disabled in error path, but sometimes we still see its interrupt bit be asserted, which causes irq routine be triggered continuously because no one else clears this bit. This commit clears channel0 interrupt as well in irq routine, so that even channel0

[PATCH 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
Implement the new device_synchronize() callback to allow proper synchronization when stopping a channel. Since the driver already makes sure that no new complete callbacks are scheduled after the device_terminate_all() has been called, all left to do in the device_synchronize() callback is to wait

[PATCH 06/10] dma: imx-sdma: add terminate_all support

2016-05-16 Thread Jiada Wang
Implement device_terminate_all(), so that dmaengine_terminate_async() can work. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ef5d37c..040cbf2 100644

[PATCH 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
Implement the new device_synchronize() callback to allow proper synchronization when stopping a channel. Since the driver already makes sure that no new complete callbacks are scheduled after the device_terminate_all() has been called, all left to do in the device_synchronize() callback is to wait

[PATCH 06/10] dma: imx-sdma: add terminate_all support

2016-05-16 Thread Jiada Wang
Implement device_terminate_all(), so that dmaengine_terminate_async() can work. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ef5d37c..040cbf2 100644 ---

[PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-05-16 Thread Jiada Wang
this patch set contains the following changes 1. fix issues in cyclic dma 2. add support to SYNC DMA termination 3. avoid system hang, when SDMA channel 0 timeouts 4. add lock to prevent race condition Jiada Wang (10): dma: imx-sdma: use chn_real_count to report residue for UART dma:

[PATCH 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
Implement the new device_synchronize() callback to allow proper synchronization when stopping a channel. Since the driver already makes sure that no new complete callbacks are scheduled after the device_terminate_all() has been called, all left to do in the device_synchronize() callback is to wait

  1   2   3   4   5   6   7   8   9   10   >