[PATCH v2 1/2] watchdog: add WDIOC_SETPRETIMEOUT and WDIOC_GETPRETIMEOUT

2015-11-02 Thread Robin Gong
Since the watchdog common framework centrialize the IOCTL interfaces of device driver now, the SETPRETIMEOUT and GETPRETIMEOUT need to be added in the common code. Signed-off-by: Robin Gong <b38...@freescale.com> --- drivers/watchdog/watchdog_dev.

Re: [PATCH v1 1/2] watchdog: add WDIOC_SETPRETIMEOUT and WDIOC_GETPRETIMEOUT

2015-11-02 Thread Robin Gong
On Mon, Nov 02, 2015 at 08:04:20PM -0800, Guenter Roeck wrote: > On 11/02/2015 07:29 PM, Robin Gong wrote: > >Since the watchdog common framework centrialize the IOCTL interfaces of > >device driver now, the SETPRETIMEOUT and GETPRETIMEOUT need to be added > >in the common co

Re: [PATCH v1 2/2] watchdog: imx2_wdt: add set_pretimeout interface

2015-11-02 Thread Robin Gong
On Mon, Nov 02, 2015 at 08:19:12PM -0800, Guenter Roeck wrote: > On 11/02/2015 07:29 PM, Robin Gong wrote: > >Enable set_pretimeout interface and trigger the pretimeout interrupt before > >watchdog timeout event happen. > > > >Signed-off-by: Robin Gong <b38...@free

[PATCH v1 2/2] watchdog: imx2_wdt: add set_pretimeout interface

2015-11-02 Thread Robin Gong
Enable set_pretimeout interface and trigger the pretimeout interrupt before watchdog timeout event happen. Signed-off-by: Robin Gong <b38...@freescale.com> --- drivers/watchdog/imx2_wdt.c | 67 - 1 file changed, 66 insertions(+), 1 deletion(-)

[PATCH v1 1/2] watchdog: add WDIOC_SETPRETIMEOUT and WDIOC_GETPRETIMEOUT

2015-11-02 Thread Robin Gong
Since the watchdog common framework centrialize the IOCTL interfaces of device driver now, the SETPRETIMEOUT and GETPRETIMEOUT need to be added in the common code. Signed-off-by: Robin Gong <b38...@freescale.com> --- drivers/watchdog/watchdog_dev.

Re: [PATCH v2 3/8] spi: imx: add support for all SPI word width for DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:34:54AM +, Bondarenko, Anton wrote: > On 30.09.2015 10:35, Robin Gong wrote: > > On Fri, Sep 25, 2015 at 07:57:10PM +0200, Anton Bondarenko wrote: > >> @@ -91,11 +91,15 @@ struct spi_imx_data { > >> > >>struct completion x

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: > >> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, > >> struct spi_device *spi, > >> { > >>struct spi_imx_data *spi_imx = spi_master_get_devdata(master); > >> > >> - if (spi_imx->dma_is_inited

Re: [PATCH v2 5/8] spi: imx: Add support for loopback for ECSPI controllers

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:16:49AM +, Bondarenko, Anton wrote: > On 30.09.2015 10:42, Robin Gong wrote: > > On Fri, Sep 25, 2015 at 07:57:12PM +0200, Anton Bondarenko wrote: > >> @@ -370,8 +374,12 @@ static int __maybe_unused mx51_ecspi_config(struct > >

Re: [PATCH v2 5/8] spi: imx: Add support for loopback for ECSPI controllers

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:16:49AM +, Bondarenko, Anton wrote: > On 30.09.2015 10:42, Robin Gong wrote: > > On Fri, Sep 25, 2015 at 07:57:12PM +0200, Anton Bondarenko wrote: > >> @@ -370,8 +374,12 @@ static int __maybe_unused mx51_ecspi_config(struct > >

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:02:41AM +, Bondarenko, Anton wrote: > >> @@ -201,9 +202,8 @@ static bool spi_imx_can_dma(struct spi_master *master, > >> struct spi_device *spi, > >> { > >>struct spi_imx_data *spi_imx = spi_master_get_devdata(master); > >> > >> - if (spi_imx->dma_is_inited

Re: [PATCH v2 3/8] spi: imx: add support for all SPI word width for DMA transfer

2015-10-08 Thread Robin Gong
On Thu, Oct 01, 2015 at 12:34:54AM +, Bondarenko, Anton wrote: > On 30.09.2015 10:35, Robin Gong wrote: > > On Fri, Sep 25, 2015 at 07:57:10PM +0200, Anton Bondarenko wrote: > >> @@ -91,11 +91,15 @@ struct spi_imx_data { > >> > >>struct completion x

Re: [PATCH v2 7/8] spi: imx: defer spi initialization, if DMA engine is pending

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:14PM +0200, Anton Bondarenko wrote: > If SPI device supports DMA mode, but DMA controller is not yet > available due to e.g. a delay in the corresponding kernel module > initialization, retry to initialize SPI driver later on instead of > falling back into PIO only

Re: [PATCH v2 5/8] spi: imx: Add support for loopback for ECSPI controllers

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:12PM +0200, Anton Bondarenko wrote: > Support for ECSPI loopback for IMX51,IMX53 and IMX6Q using TEST register. > > Signed-off-by: Mohsin Kazmi > Signed-off-by: Anton Bondarenko > --- > drivers/spi/spi-imx.c | 20 > 1 file changed, 16

Re: [PATCH v2 6/8] spi: imx: return error from dma channel request

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:13PM +0200, Anton Bondarenko wrote: > On SDMA initialization return exactly the same error, which is > reported by dma_request_slave_channel_reason(), it is a preceding > change to defer SPI DMA initialization, if SDMA module is not yet > available. > >

Re: [PATCH v2 2/8] spi: imx: replace fixed timeout with calculated one

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:09PM +0200, Anton Bondarenko wrote: > Fixed timeout value can fire while transaction is ongoing. This may happen > because there are no strict requirements on SPI transaction duration. > Dynamic timeout value is generated based on SCLK and transaction size. > > There

Re: [PATCH v2 3/8] spi: imx: add support for all SPI word width for DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:10PM +0200, Anton Bondarenko wrote: > DMA transfer for SPI was limited to up to 8 bits word size until now. > Sync in SPI burst size and DMA bus width is necessary to correctly > support other BPW supported by HW. > > Signed-off-by: Anton Bondarenko > --- >

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:08PM +0200, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incorrectly. SPI transfer

Re: [PATCH v2 2/8] spi: imx: replace fixed timeout with calculated one

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:09PM +0200, Anton Bondarenko wrote: > Fixed timeout value can fire while transaction is ongoing. This may happen > because there are no strict requirements on SPI transaction duration. > Dynamic timeout value is generated based on SCLK and transaction size. > > There

Re: [PATCH v2 3/8] spi: imx: add support for all SPI word width for DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:10PM +0200, Anton Bondarenko wrote: > DMA transfer for SPI was limited to up to 8 bits word size until now. > Sync in SPI burst size and DMA bus width is necessary to correctly > support other BPW supported by HW. > > Signed-off-by: Anton Bondarenko

Re: [PATCH v2 6/8] spi: imx: return error from dma channel request

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:13PM +0200, Anton Bondarenko wrote: > On SDMA initialization return exactly the same error, which is > reported by dma_request_slave_channel_reason(), it is a preceding > change to defer SPI DMA initialization, if SDMA module is not yet > available. > >

Re: [PATCH v2 1/8] spi: imx: Fix DMA transfer

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:08PM +0200, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incorrectly. SPI transfer

Re: [PATCH v2 5/8] spi: imx: Add support for loopback for ECSPI controllers

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:12PM +0200, Anton Bondarenko wrote: > Support for ECSPI loopback for IMX51,IMX53 and IMX6Q using TEST register. > > Signed-off-by: Mohsin Kazmi > Signed-off-by: Anton Bondarenko > --- > drivers/spi/spi-imx.c |

Re: [PATCH v2 7/8] spi: imx: defer spi initialization, if DMA engine is pending

2015-09-30 Thread Robin Gong
On Fri, Sep 25, 2015 at 07:57:14PM +0200, Anton Bondarenko wrote: > If SPI device supports DMA mode, but DMA controller is not yet > available due to e.g. a delay in the corresponding kernel module > initialization, retry to initialize SPI driver later on instead of > falling back into PIO only

[PATCH v1] spi: check tx_buf and rx_buf in spi_unmap_msg

2015-04-15 Thread Robin Gong
by dummy_tx/dummy_rx and the data which produced by the last tx or rx may be wrongly sent to the device or handled by the upper level protocol. This patch just keep the orignal value of tx_buf/rx_buf if they are NULL after this transfer processed. Signed-off-by: Robin Gong --- drivers/spi/spi.c | 9

[PATCH v1] spi: check tx_buf and rx_buf in spi_unmap_msg

2015-04-15 Thread Robin Gong
by dummy_tx/dummy_rx and the data which produced by the last tx or rx may be wrongly sent to the device or handled by the upper level protocol. This patch just keep the orignal value of tx_buf/rx_buf if they are NULL after this transfer processed. Signed-off-by: Robin Gong b38...@freescale.com --- drivers

[PATCH v4] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-02-14 Thread Robin Gong
oaded during the context restore if the channel is re-started later" Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions(+), 3

[PATCH v4] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-02-14 Thread Robin Gong
the context restore if the channel is re-started later Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions

[PATCH v1] spi: imx: use pio mode for i.mx6dl

2015-02-02 Thread Robin Gong
For TKT238285 hardware issue which may cause txfifo store data twice can only be caught on i.mx6dl, we use pio mode instead of DMA mode on i.mx6dl. Signed-off-by: Robin Gong --- drivers/spi/spi-imx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi

[PATCH v1] spi: imx: use pio mode for i.mx6dl

2015-02-02 Thread Robin Gong
For TKT238285 hardware issue which may cause txfifo store data twice can only be caught on i.mx6dl, we use pio mode instead of DMA mode on i.mx6dl. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/spi/spi-imx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi

[PATCH v3] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-22 Thread Robin Gong
oaded during the context restore if the channel is re-started later" Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions(+), 3

[PATCH v3] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-22 Thread Robin Gong
the context restore if the channel is re-started later Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions

[PATCH v2] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-21 Thread Robin Gong
oaded during the context restore if the channel is re-started later" Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 11 --- 1 file changed, 8 insertions(+), 3

Re: [PATCH v1] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-21 Thread Robin Gong
On Tue, Jan 20, 2015 at 08:16:14AM +0100, Sascha Hauer wrote: > On Tue, Jan 13, 2015 at 01:09:17PM +0800, Robin Gong wrote: > > Below comments got from Page4724 of Reference Manual of i.mx6q: > > http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf > > >

[PATCH v2] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-21 Thread Robin Gong
the context restore if the channel is re-started later Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 11 --- 1 file changed, 8 insertions

Re: [PATCH v1] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-21 Thread Robin Gong
On Tue, Jan 20, 2015 at 08:16:14AM +0100, Sascha Hauer wrote: On Tue, Jan 13, 2015 at 01:09:17PM +0800, Robin Gong wrote: Below comments got from Page4724 of Reference Manual of i.mx6q: http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf --Static context mode should

[PATCH v1] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-12 Thread Robin Gong
oaded during the context restore if the channel is re-started later" Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions(+), 3

Re: [PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:11:44PM +0530, Vinod Koul wrote: > On Thu, Oct 23, 2014 at 10:22:20AM +0800, Robin Gong wrote: > > Code reorg for transfer prepare and bus width check to make code > > cleaner. > This should have been 1st patch :( > > -- > ~Vinod > Got it.

Re: [PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:09:18PM +0530, Vinod Koul wrote: > On Thu, Oct 23, 2014 at 10:22:18AM +0800, Robin Gong wrote: > > > -static struct dma_async_tx_descriptor *sdma_prep_slave_sg( > > - struct dma_chan *chan, struct scatterlist *sgl, > > - u

Re: [PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:09:18PM +0530, Vinod Koul wrote: On Thu, Oct 23, 2014 at 10:22:18AM +0800, Robin Gong wrote: -static struct dma_async_tx_descriptor *sdma_prep_slave_sg( - struct dma_chan *chan, struct scatterlist *sgl, - unsigned int sg_len, enum

Re: [PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:11:44PM +0530, Vinod Koul wrote: On Thu, Oct 23, 2014 at 10:22:20AM +0800, Robin Gong wrote: Code reorg for transfer prepare and bus width check to make code cleaner. This should have been 1st patch :( -- ~Vinod Got it.Thanks. -- To unsubscribe from this list

[PATCH v1] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-12 Thread Robin Gong
the context restore if the channel is re-started later Unfortunately, the rule was broken by commit(5b28aa319bba96987316425a1131813d87cbab35) .This patch just take them back. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 4 insertions

[PATCH v1] regulator: pfuze100-regulator: add pfuze3000 support

2015-01-08 Thread Robin Gong
Add pfuze3000 chip support. Signed-off-by: Robin Gong --- .../devicetree/bindings/regulator/pfuze100.txt | 94 ++- drivers/regulator/pfuze100-regulator.c | 134 +++-- include/linux/regulator/pfuze100.h | 14 +++ 3 files changed, 232

[PATCH v1] regulator: pfuze100-regulator: add pfuze3000 support

2015-01-08 Thread Robin Gong
Add pfuze3000 chip support. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 94 ++- drivers/regulator/pfuze100-regulator.c | 134 +++-- include/linux/regulator/pfuze100.h | 14 +++ 3

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-21 Thread Robin Gong
Thanks Shawn and Soeren. :) On Wed, Nov 19, 2014 at 02:04:43PM +0800, Shawn Guo wrote: > On Wed, Nov 19, 2014 at 01:50:07PM +0800, Robin Gong wrote: > > Sorry, the patch resent wrongly... > > Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it > > again

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-21 Thread Robin Gong
Thanks Shawn and Soeren. :) On Wed, Nov 19, 2014 at 02:04:43PM +0800, Shawn Guo wrote: On Wed, Nov 19, 2014 at 01:50:07PM +0800, Robin Gong wrote: Sorry, the patch resent wrongly... Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it again? I fixed it up and tested

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-18 Thread Robin Gong
Sorry, the patch resent wrongly... Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it again? On Wed, Nov 19, 2014 at 06:26:43AM +0100, Soeren Moch wrote: > > On 19.11.2014 04:18, Shawn Guo wrote: > > On Wed, Nov 12, 2014 at 04:20:37PM +0800, Robin Gong wrote: &g

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-18 Thread Robin Gong
Sorry, the patch resent wrongly... Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it again? On Wed, Nov 19, 2014 at 06:26:43AM +0100, Soeren Moch wrote: On 19.11.2014 04:18, Shawn Guo wrote: On Wed, Nov 12, 2014 at 04:20:37PM +0800, Robin Gong wrote: All chips of i.mx6

Re: [PATCH v4 0/3] add power off driver for i.mx6

2014-11-12 Thread Robin Gong
Thanks, Shawn. On Wed, Nov 12, 2014 at 06:56:22PM +0800, Shawn Guo wrote: > On Wed, Nov 12, 2014 at 04:20:36PM +0800, Robin Gong wrote: > > Resend the patchset with the latest MAINTAINERS > > Add simple power off driver for i.mx6, including: > > - add basic imx-snvs-power

[PATCH v4 0/3] add power off driver for i.mx6

2014-11-12 Thread Robin Gong
it in board level dts - replace 'EIO' with 'ENODEV' while of_iomap fail. Change from v2: - remove useless included head files - split device binding doc from dts patch - add description for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add

[PATCH 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-11-12 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong --- .../bindings

[PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-12 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH 3/3] ARM: configs: imx_v6_v7_defconfig: add power off driver

2014-11-12 Thread Robin Gong
Add power off driver in config file. Signed-off-by: Robin Gong --- arch/arm/configs/imx_v6_v7_defconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4..a310e61 100644 --- a/arch/arm/configs

[PATCH 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-11-12 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong b38...@freescale.com

[PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-12 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH 3/3] ARM: configs: imx_v6_v7_defconfig: add power off driver

2014-11-12 Thread Robin Gong
Add power off driver in config file. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/configs/imx_v6_v7_defconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4..a310e61 100644

[PATCH v4 0/3] add power off driver for i.mx6

2014-11-12 Thread Robin Gong
it in board level dts - replace 'EIO' with 'ENODEV' while of_iomap fail. Change from v2: - remove useless included head files - split device binding doc from dts patch - add description for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add

Re: [PATCH v4 0/3] add power off driver for i.mx6

2014-11-12 Thread Robin Gong
Thanks, Shawn. On Wed, Nov 12, 2014 at 06:56:22PM +0800, Shawn Guo wrote: On Wed, Nov 12, 2014 at 04:20:36PM +0800, Robin Gong wrote: Resend the patchset with the latest MAINTAINERS Add simple power off driver for i.mx6, including: - add basic imx-snvs-poweroff driver in drivers/power

[PATCH v5 2/3] dma: imx-sdma: correct the printk format

2014-10-22 Thread Robin Gong
Correct the printk format for 'size_t', 'dma_address_t', etc. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 5424d9a..377bb18 100644 --- a/drivers

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 188 ++--- 1 file changed

[PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-22 Thread Robin Gong
Code reorg for transfer prepare and bus width check to make code cleaner. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 188 ++--- 1 file changed

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-22 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644 --- a/drivers/dma/imx

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-22 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-22 Thread Robin Gong
Code reorg for transfer prepare and bus width check to make code cleaner. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188

[PATCH v5 2/3] dma: imx-sdma: correct the printk format

2014-10-22 Thread Robin Gong
Correct the printk format for 'size_t', 'dma_address_t', etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 5424d9a..377bb18

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188

Re: [PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-21 Thread Robin Gong
Thanks for your comments, I'll send the next verison. On Tue, Oct 21, 2014 at 12:39:35PM +0300, Andy Shevchenko wrote: > On Tue, 2014-10-21 at 09:09 +0800, Robin Gong wrote: > > code reorg for transfer prepare and bus width check. > > Fix style of commit message. > > >

Re: [PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-21 Thread Robin Gong
Thanks for your comments, I'll send the next verison. On Tue, Oct 21, 2014 at 12:39:35PM +0300, Andy Shevchenko wrote: On Tue, 2014-10-21 at 09:09 +0800, Robin Gong wrote: code reorg for transfer prepare and bus width check. Fix style of commit message. Signed-off-by: Robin Gong b38

[PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-20 Thread Robin Gong
code reorg for transfer prepare and bus width check. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 7e8aa2d

[PATCH v4 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 188 ++--- 1 file changed, 164 insertions(+), 24 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index f7626e3..fc4a0df 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-20 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644 --- a/drivers/dma/imx

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-10-20 Thread Robin Gong
There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable it once the root cause found. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6q.dtsi | 20

[PATCH v6] spi: spi-imx: add DMA support

2014-10-20 Thread Robin Gong
.mx5 since they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li Signed-off-by: Robin Gong --- Change from v5: 1. Update binding doc fsl-imx-cspi.txt. 2. remove u

[PATCH v1] ARM: imx6: add pm_power_off support for i.mx6 chips

2014-10-20 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH v1] ARM: imx6: add pm_power_off support for i.mx6 chips

2014-10-20 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH v6] spi: spi-imx: add DMA support

2014-10-20 Thread Robin Gong
they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- Change from v5: 1. Update binding doc

[PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-10-20 Thread Robin Gong
There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable it once the root cause found. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/boot/dts/imx6q.dtsi

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-20 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644

[PATCH v4 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188 ++--- 1 file changed, 164 insertions(+), 24 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index f7626e3..fc4a0df 100644 --- a/drivers/dma/imx

[PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-20 Thread Robin Gong
code reorg for transfer prepare and bus width check. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c

Re: [PATCH v4 0/3] add power off driver for i.mx6

2014-10-17 Thread Robin Gong
Ping! On Fri, Sep 26, 2014 at 11:59:04AM +0800, Robin Gong wrote: > Add simple power off driver for i.mx6, including: > - add basic imx-snvs-poweroff driver in drivers/power/reset > - add device node in all dts files of i.mx6. > - enable in config file > > Change from v3: &g

Re: [PATCH v4 0/3] add power off driver for i.mx6

2014-10-17 Thread Robin Gong
Ping! On Fri, Sep 26, 2014 at 11:59:04AM +0800, Robin Gong wrote: Add simple power off driver for i.mx6, including: - add basic imx-snvs-poweroff driver in drivers/power/reset - add device node in all dts files of i.mx6. - enable in config file Change from v3: - disable poweroff driver

[PATCH v4 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-25 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong --- .../bindings

[PATCH v4 3/3] ARM: configs: imx_v6_v7_defconfig: add power off driver

2014-09-25 Thread Robin Gong
Add power off driver in config file. Signed-off-by: Robin Gong --- arch/arm/configs/imx_v6_v7_defconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8fca6e2..db886c2 100644 --- a/arch/arm/configs

[PATCH v4 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-25 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. ---

[PATCH v4 0/3] add power off driver for i.mx6

2014-09-25 Thread Robin Gong
' with 'ENODEV' while of_iomap fail. Change from v2: - remove useless included head files - split device binding doc from dts patch - add description for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add pm_power_off support for i.mx6 chips power: reset: imx

Re: [PATCH v1] rtc: snvs: add poweroff function

2014-09-25 Thread Robin Gong
On Fri, Sep 26, 2014 at 09:24:11AM +0800, Shawn Guo wrote: > On Thu, Sep 25, 2014 at 10:13:53AM +0800, Robin Gong wrote: > > On i.mx6 chips, PMIC_ON_REQ can be pulled by snvs LPCR. That can be > > used poweroff system if PMIC_ON_REQ connected with external PMIC or > > power

Re: [PATCH v1] rtc: snvs: add poweroff function

2014-09-25 Thread Robin Gong
On Fri, Sep 26, 2014 at 09:24:11AM +0800, Shawn Guo wrote: On Thu, Sep 25, 2014 at 10:13:53AM +0800, Robin Gong wrote: On i.mx6 chips, PMIC_ON_REQ can be pulled by snvs LPCR. That can be used poweroff system if PMIC_ON_REQ connected with external PMIC or power control circuit.Power up again

[PATCH v4 0/3] add power off driver for i.mx6

2014-09-25 Thread Robin Gong
' with 'ENODEV' while of_iomap fail. Change from v2: - remove useless included head files - split device binding doc from dts patch - add description for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add pm_power_off support for i.mx6 chips power: reset: imx

[PATCH v4 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-25 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. ---

[PATCH v4 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-25 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong b38...@freescale.com

<    2   3   4   5   6   7   8   9   >