Re: [PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-26 Thread Richard Zhao
On Fri, Aug 23, 2013 at 09:57:43AM -0600, Stephen Warren wrote: > On 08/22/2013 07:29 PM, Richard Zhao wrote: > > On Fri, Aug 23, 2013 at 04:18:27AM +0800, Stephen Warren wrote: > >> On 08/21/2013 11:19 PM, Richard Zhao wrote: > >>> On Fri, Aug 02, 2013 at 10:00:

Re: [PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-26 Thread Richard Zhao
On Mon, Aug 26, 2013 at 02:17:43PM +0200, Laurent Pinchart wrote: > On Friday 23 August 2013 09:57:43 Stephen Warren wrote: > > On 08/22/2013 07:29 PM, Richard Zhao wrote: > > > On Fri, Aug 23, 2013 at 04:18:27AM +0800, Stephen Warren wrote: > > >> On 08/21/201

Re: [PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-22 Thread Richard Zhao
On Fri, Aug 23, 2013 at 04:18:27AM +0800, Stephen Warren wrote: > On 08/21/2013 11:19 PM, Richard Zhao wrote: > > On Fri, Aug 02, 2013 at 10:00:00AM +0800, Richard Zhao wrote: > >> pass of_phandle_args dma_spec to dma_request_channel in > >> of_dma_simple_xlate, > &

Re: [PATCH v2] DMA: add help function to check whether dma controller registered

2013-08-22 Thread Richard Zhao
On Fri, Aug 23, 2013 at 04:36:53AM +0800, Stephen Warren wrote: > On 08/22/2013 12:43 AM, Richard Zhao wrote: > > DMA client device driver usually needs to know at probe time whether > > dma controller has been registered to deffer probe. So add a help > > function of

[PATCH v2] DMA: add help function to check whether dma controller registered

2013-08-21 Thread Richard Zhao
DMA client device driver usually needs to know at probe time whether dma controller has been registered to deffer probe. So add a help function of_dma_check_controller. DMA request channel functions can also used to check it, but they are usually called at open() time. Signed-off-by: Richard

Re: [PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-21 Thread Richard Zhao
On Fri, Aug 02, 2013 at 10:00:00AM +0800, Richard Zhao wrote: > pass of_phandle_args dma_spec to dma_request_channel in of_dma_simple_xlate, > so the filter function could access of_node in of_phandle_args. > > It also remove restriction of #dma-cells has to be one. > > Sign

Re: [PATCH 0/6] Tegra: Use cpufreq-cpu0 driver

2013-08-08 Thread Richard Zhao
On Wed, Aug 7, 2013 at 10:46 PM, Viresh Kumar wrote: > Hi Stephen, > > This is the first attempt to get rid of tegra-cpufreq driver. This patchset > tries to add supporting infrastructure for tegra to use cpufreq-cpu0 driver. If tegra has only 4-core fast cpu, I would agree with the patch set. Bu

Re: [PATCH] DMA: add help function to check whether dma controller registered

2013-08-04 Thread Richard Zhao
On Sat, Aug 03, 2013 at 03:59:59AM +0800, Stephen Warren wrote: > On 08/02/2013 12:04 AM, Richard Zhao wrote: > > DMA client device driver usually needs to know at probe time whether > > dma controller has been registered to deffer probe. So add a help > > function of

[PATCH] DMA: add help function to check whether dma controller registered

2013-08-01 Thread Richard Zhao
DMA client device driver usually needs to know at probe time whether dma controller has been registered to deffer probe. So add a help function of_dma_check_controller. DMA request channel functions can also used to check it, but they are usually called at open() time. Signed-off-by: Richard

[PATCH] DMA: let filter functions of of_dma_simple_xlate possible check of_node

2013-08-01 Thread Richard Zhao
pass of_phandle_args dma_spec to dma_request_channel in of_dma_simple_xlate, so the filter function could access of_node in of_phandle_args. It also remove restriction of #dma-cells has to be one. Signed-off-by: Richard Zhao --- drivers/dma/edma.c | 7 +-- drivers/dma/of-dma.c | 10

[PATCH 3/9] spi: tegra114: move to generic dma DT binding

2013-07-23 Thread Richard Zhao
- driver: remove use of nvidia,dma-request-selector use dma_request_slave_channel to request channel - if dmas/dma-names are missing, it still supports cpu based transfer - update binding doc and specify dmas/dma-names properties as optional Signed-off-by: Richard Zhao

[PATCH 1/9] ARM: dts: add generic DMA DT binding for tegra apbdma

2013-07-23 Thread Richard Zhao
: - Add '#dma-cells' for apbdma nodes - And properties 'dmas' and 'dma-names' for apbdma client nodes - update apbdma DT binding doc Signed-off-by: Richard Zhao --- .../devicetree/bindings/dma/tegra20-apbdma.txt | 1 + arch/arm/boot/dts/tegra11

[PATCH 5/9] spi: tegra20-sflash: move to generic dma DT binding

2013-07-23 Thread Richard Zhao
update binding doc. Signed-off-by: Richard Zhao --- .../devicetree/bindings/spi/nvidia,tegra20-sflash.txt | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra20-sflash.txt b/Documentation/devicetree/bindings

[PATCH 4/9] spi: tegra20-slink: move to generic dma DT binding

2013-07-23 Thread Richard Zhao
- driver: remove use of nvidia,dma-request-selector use dma_request_slave_channel to request channel - if dmas/dma-names are missing, it still supports cpu based transfer - update binding doc and specify dmas/dma-names properties as optional Signed-off-by: Richard Zhao

[PATCH 2/9] dma: tegra20-apbdma: move to generic device tree bindings

2013-07-23 Thread Richard Zhao
there, and the support will be removed after all clients get converted to generic DMA device tree helper. Signed-off-by: Richard Zhao --- drivers/dma/tegra20-apb-dma.c | 46 +-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/drivers/dma

[PATCH 6/9] serial: tegra: move to generic dma DT binding

2013-07-23 Thread Richard Zhao
- driver: remove use of nvidia,dma-request-selector use dma_request_slave_channel to request channel - update binding doc Signed-off-by: Richard Zhao --- .../devicetree/bindings/serial/nvidia,tegra20-hsuart.txt | 8 +--- drivers/tty/serial/serial-tegra.c

[PATCH 7/9] ASoC: tegra: move to generic DMA DT binding

2013-07-23 Thread Richard Zhao
using filter data in snd_dmaengine_dai_dma_data. - change i2s/ac97 drivers to use generic DT binding - tegra30_i2s: alloc ahub tx/rx fifo at driver probe time Signed-off-by: Richard Zhao --- .../bindings/sound/nvidia,tegra20-ac97.txt | 8 ++-- .../bindings/sound/nvidia,tegra20-i2s.txt

[PATCH 8/9] ARM: dts: tegra: remove legacy nvidia,dma-request-selector properties

2013-07-23 Thread Richard Zhao
All tegra dma client drivers have moved to generic dma binding. Signed-off-by: Richard Zhao --- arch/arm/boot/dts/tegra114.dtsi | 14 -- arch/arm/boot/dts/tegra20.dtsi | 13 - arch/arm/boot/dts/tegra30.dtsi | 12 3 files changed, 39 deletions(-) diff

[PATCH 9/9] dma: tegra20-apbdma: remove legacy nvidia,dma-request-selector support

2013-07-23 Thread Richard Zhao
All tegra dma client drivers have moved to generic dma binding. Signed-off-by: Richard Zhao --- drivers/dma/tegra20-apb-dma.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 0e12f78..a67d159 100644 --- a/drivers/dma

[PATCH 0/9] ARM: tegra: move to generic DMA DT binding

2013-07-23 Thread Richard Zhao
nvidia,dma-request-selector Richard Zhao (9): ARM: dts: add generic DMA DT binding for tegra apbdma dma: tegra20-apbdma: move to generic device tree bindings spi: tegra114: move to generic dma DT binding spi: tegra20-slink: move to generic dma DT binding spi: tegra20-sflash: move to generic

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-03 Thread Richard Zhao
Hi Mike, On Sun, Mar 03, 2013 at 02:54:24AM -0800, Mike Turquette wrote: > Quoting Richard Zhao (2013-03-02 00:22:19) > > On Fri, Mar 01, 2013 at 06:55:54PM -0800, Bill Huang wrote: > > > On Sat, 2013-03-02 at 04:48 +0800, Mike Turquette wrote: > > > > Quoting Mike

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-02 Thread Richard Zhao
On Fri, Mar 01, 2013 at 06:55:54PM -0800, Bill Huang wrote: > On Sat, 2013-03-02 at 04:48 +0800, Mike Turquette wrote: > > Quoting Mike Turquette (2013-03-01 10:22:34) > > > Quoting Bill Huang (2013-03-01 01:41:31) > > > > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > > > > Dynamic v

[PATCH] pinctrl: imx: remove duplicated const

2012-09-17 Thread Richard Zhao
fix smatch warning: drivers/pinctrl/pinctrl-imx.c:435:21: warning: duplicate const Signed-off-by: Richard Zhao --- drivers/pinctrl/pinctrl-imx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c index a13b888

Re: [PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Richard Zhao
On Mon, Aug 27, 2012 at 03:24:43PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > > Using syscon to access anatop registers. > > Signed-off-by: Dong Aisheng > --- > ChangeLog v1->v2: > * update to use generic regmap api > --- > arch/arm/mach-imx/Kconfig |2 +- > arch/arm/mach-imx/

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:21:03PM -0600, Stephen Warren wrote: > On 08/22/2012 01:18 AM, Dong Aisheng wrote: > > Signed-off-by: Dong Aisheng > > > diff --git a/drivers/regulator/anatop-regulator.c > > b/drivers/regulator/anatop-regulator.c > > > @@ -109,7 +110,11 @@ static int __devinit anatop

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:16:33PM -0600, Stephen Warren wrote: > On 08/22/2012 04:57 AM, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: > >> On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > >>> Add regmap based imx syscon driver. > >>> T

Re: [PATCH 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 03:18:47PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > > Originally the anatop regulator devices are populated by mfd anatop driver. > Since mfd anatop driver will be deleted later, we change to populate the > regulator devices by devicetree automatically. > This wil

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > > Add regmap based imx syscon driver. > This is usually used for access misc bits in registers which does not belong > to a specific module, for example, IOMUXC GPR and ANATOP. > With this driver, we provide a st

how to vm_munmap memory range for other processes?

2012-08-08 Thread Richard Zhao
Hi Al, I saw two commits from you in git tree: 17d1587 unexport do_munmap() bfce281 kill mm argument of vm_munmap() They remove the mm arguments, so it look like impossible to unmap memory of other processes except current. I have a kernel module that needs to unmap memory for certain pid. Do yo

[PATCH] mfd: anatop: matches should be NULL when populate child devices

2012-07-16 Thread Richard Zhao
Signed-off-by: Richard Zhao --- drivers/mfd/anatop-mfd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/anatop-mfd.c b/drivers/mfd/anatop-mfd.c index 6da0634..5576e07 100644 --- a/drivers/mfd/anatop-mfd.c +++ b/drivers/mfd/anatop-mfd.c @@ -83,7 +83,7 @@ static