[PATCH v5 1/3] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-05-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave.

[PATCH v5 2/3] DMA: Freescale: add suspend resume functions for DMA driver

2014-05-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds suspend and resume functions for Freescale DMA driver. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/fsldma.c | 77 ++ drivers/dma/fsldma.h | 15 ++

[PATCH v5 3/3] DMA: Freescale: change descriptor release process for supporting async_tx

2014-05-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race

[PATCH v5 0/3] DMA: Freescale: driver cleanups and enhancements

2014-05-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Dan, Please have a look at this 3/3 as Vinod mentioned. Hi Vinod Koul, Please have a look at the v5 patch set. v4 - v5 changes: - since previous 5 of 8 patches have been merged by Vinod, this iteration oly inludes the last 3 patches of v4. -

[PATCH v4 0/8] DMA: Freescale: driver cleanups and enhancements

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod Koul, Please have a look at the v4 patch set. v3 - v4 changes: - Fixed a typo in [2/8] commit message. - There was a potential double call of list_del() when apply [4/8] only, although this defect is removed again in later [6/8]. This

[PATCH v4 1/8] DMA: Freescale: remove the unnecessary FSL_DMA_LD_DEBUG

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Some codes are calling chan_dbg with FSL_DMA_LD_DEBUG surrounded, it is really unnecessary to use such a macro because chan_dbg is a wrapper of dev_dbg, we do have corresponding DEBUG macro to switch on/off dev_dbg, and most of the other codes are

[PATCH v4 2/8] DMA: Freescale: unify register access methods

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Methods of accessing DMA controller registers are inconsistent, some registers are accessed by DMA_IN/OUT directly, while others are accessed by functions get/set_* which are wrappers of DMA_IN/OUT, and even for the BCR register, it is read by get_bcr

[PATCH v4 4/8] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com There are several places where descriptors are freed using identical code. This patch puts this code into a function to reduce code duplication. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu qiang@freescale.com

[PATCH v4 5/8] DMA: Freescale: move functions to avoid forward declarations

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v4 3/8] DMA: Freescale: remove attribute DMA_INTERRUPT of dmaengine

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Delete attribute DMA_INTERRUPT because fsldma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v4 6/8] DMA: Freescale: change descriptor release process for supporting async_tx

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race

[PATCH v4 7/8] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave.

[PATCH v4 8/8] DMA: Freescale: add suspend resume functions for DMA driver

2014-04-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds suspend resume functions for Freescale DMA driver. .prepare callback is used to stop further descriptors from being added into the pending queue, and also issue pending queues into execution if there is any. .suspend callback makes

[PATCH v3 0/8] DMA: Freescale: driver cleanups and enhancements

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@linaro.org Hi Vinod Koul, Please have a look at the v3 patch set. v2 - v3 change: Only add chan-pm_state = RUNNING for patch[8/8]. v1 - v2 change: The only one change is introducing a new patch[1/7] to remove the unnecessary macro FSL_DMA_LD_DEBUG, thus the total

[PATCH v3 1/8] DMA: Freescale: remove the unnecessary FSL_DMA_LD_DEBUG

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Some codes are calling chan_dbg with FSL_DMA_LD_DEBUG surrounded, it is really unnecessary to use such a macro because chan_dbg is a wrapper of dev_dbg, we do have corresponding DEBUG macro to switch on/off dev_dbg, and most of the other codes are

[PATCH v3 3/8] DMA: Freescale: remove attribute DMA_INTERRUPT of dmaengine

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Delete attribute DMA_INTERRUPT because fsldma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v3 2/8] DMA: Freescale: unify register access methods

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Methods of accessing DMA contorller registers are inconsistent, some registers are accessed by DMA_IN/OUT directly, while others are accessed by functions get/set_* which are wrappers of DMA_IN/OUT, and even for the BCR register, it is read by get_bcr

[PATCH v3 4/8] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com There are several places where descriptors are freed using identical code. This patch puts this code into a function to reduce code duplication. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu qiang@freescale.com

[PATCH v3 5/8] DMA: Freescale: move functions to avoid forward declarations

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v3 6/8] DMA: Freescale: change descriptor release process for supporting async_tx

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race

[PATCH v3 7/8] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave.

[PATCH v3 8/8] DMA: Freescale: add suspend resume functions for DMA driver

2014-04-10 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds suspend resume functions for Freescale DMA driver. .prepare callback is used to stop further descriptors from being added into the pending queue, and also issue pending queues into execution if there is any. .suspend callback makes

[PATCH v2 1/8] DMA: Freescale: remove the unnecessary FSL_DMA_LD_DEBUG

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Some codes are calling chan_dbg with FSL_DMA_LD_DEBUG surrounded, it is really unnecessary to use such a macro because chan_dbg is a wrapper of dev_dbg, we do have corresponding DEBUG macro to switch on/off dev_dbg, and most of the other codes are

[PATCH v2 2/8] DMA: Freescale: unify register access methods

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Methods of accessing DMA contorller registers are inconsistent, some registers are accessed by DMA_IN/OUT directly, while others are accessed by functions get/set_* which are wrappers of DMA_IN/OUT, and even for the BCR register, it is read by get_bcr

[PATCH v2 0/8] DMA: Freescale: driver cleanups and enhancements

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod Koul, Please have a look at the v2 patch set. v1 - v2 change: The only one change is introducing a new patch[1/7] to remove the unnecessary macro FSL_DMA_LD_DEBUG, thus the total patches number is 8 now (was 7) Hongbo Zhang (8): DMA:

[PATCH v2 3/8] DMA: Freescale: remove attribute DMA_INTERRUPT of dmaengine

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Delete attribute DMA_INTERRUPT because fsldma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v2 5/8] DMA: Freescale: move functions to avoid forward declarations

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH v2 4/8] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com There are several places where descriptors are freed using identical code. This patch puts this code into a function to reduce code duplication. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu qiang@freescale.com

[PATCH v2 6/8] DMA: Freescale: change descriptor release process for supporting async_tx

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race

[PATCH v2 7/8] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave.

[PATCH v2 8/8] DMA: Freescale: add suspend resume functions for DMA driver

2014-04-03 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds suspend resume functions for Freescale DMA driver. .prepare callback is used to stop further descriptors from being added into the pending queue, and also issue pending queues into execution if there is any. .suspend callback makes

[PATCH 0/7] DMA: Freescale: driver cleanups and enhancements

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod Koul and Dan Williams, Please have a look at these patches. Note that patch 2~6 had beed sent out for upstream before, but were together with other storage patches at that time, that was not easy for being reviewed and merged, so I send them

[PATCH 2/7] DMA: Freescale: remove attribute DMA_INTERRUPT of dmaengine

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Delete attribute DMA_INTERRUPT because fsldma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH 3/7] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com There are several places where descriptors are freed using identical code. This patch puts this code into a function to reduce code duplication. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu qiang@freescale.com

[PATCH 1/7] DMA: Freescale: unify register access methods

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Methods of accessing DMA contorller registers are inconsistent, some registers are accessed by DMA_IN/OUT directly, while others are accessed by functions get/set_* which are wrappers of DMA_IN/OUT, and even for the BCR register, it is read by get_bcr

[PATCH 6/7] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, it is unnecessary to use irqsave.

[PATCH 4/7] DMA: Freescale: move functions to avoid forward declarations

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Signed-off-by: Qiang Liu

[PATCH 5/7] DMA: Freescale: change descriptor release process for supporting async_tx

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race

[PATCH 7/7] DMA: Freescale: add suspend resume functions for DMA driver

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds suspend resume functions for Freescale DMA driver. .prepare callback is used to stop further descriptors from being added into the pending queue, and also issue pending queues into execution if there is any. .suspend callback makes

[PATCH] DMA: Freescale: change BWC from 256 bytes to 1024 bytes

2014-01-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale DMA has a feature of BandWidth Control (ab. BWC), which is currently 256 bytes and should be changed to 1024 bytes for best DMA throughput. Changing BWC from 256 to 1024 will improve DMA performance much, in cases whatever one channel is

[PATCH] DTS: DMA: Fix DMA3 interrupts

2013-11-29 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com MPIC registers for internal interrupts is non-continous in address, any internal interrupt number greater than 159 should be added (16+208) to work. 16 is due to external interrupts as usual, 208 is due to the non-continous MPIC register space. Tested

[PATCH resend 1/3] DMA: Freescale: revise device tree binding document

2013-11-11 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH resend 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-11-11 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Dan Williams and Vinod Koul, This time only resend all patches to the new dmaengine patchwork at dmaengine(at)vger.kernel.org as Dan Williams suggested. Patch 1/3 and 2/3 have been Acked-by: Mark Rutland mark.rutl...@arm.com after several

[PATCH resend 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-11-11 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com Acked-by: Mark Rutland mark.rutl...@arm.com ---

[PATCH resend 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-11-11 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v11 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-09-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi DMA and DT maintainers, please have a look at these V11 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V10-V11 changes: - add contains two entries for reg description in patch

[PATCH v11 1/3] DMA: Freescale: revise device tree binding document

2013-09-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v11 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-09-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v11 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 70 +

[PATCH v10 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-09-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi DMA and DT maintainers, please have a look at these V10 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V9-V10 changes: - update binding description text, mainly about the reg

[PATCH v10 1/3] DMA: Freescale: revise device tree binding document

2013-09-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-09-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 69

[PATCH v10 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-09-18 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v9 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-08-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi DMA and DT maintainers, please have a look at these V9 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V8-V9 changes: - add Acked-by: Mark Rutland mark.rutl...@arm.com into

[PATCH v9 1/3] DMA: Freescale: revise device tree binding document

2013-08-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v9 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-08-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v9 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-08-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 67

[PATCH v8 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi DMA and DT maintainers, please have a look at these V8 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V7-V8 changes: - change the word mapping to specifier for reg and

[PATCH v8 1/3] DMA: Freescale: revise device tree binding document

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v8 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66

[PATCH v8 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-08-27 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v7 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-29 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Scott and Leo, please have a look at these V7 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V6-V7 changes: - only remove unnecessary CHIP-dma explanations in [1/3]

[PATCH v7 1/3] DMA: Freescale: revise device tree binding document

2013-07-29 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v7 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-29 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66

[PATCH v7 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-29 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v6 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Scott and Leo, please have a look at these V6 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V5-V6 changes: - minor updates of descriptions in binding document and

[PATCH v6 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66

[PATCH v6 1/3] DMA: Freescale: revise device tree binding document

2013-07-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v6 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-26 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v5 0/4] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-24 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Scott and Leo, please have a look at these V2 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V4-V5 changes: - update description in the dt binding document, to make

[PATCH v5 1/4] DMA: Freescale: revise device tree binding document

2013-07-24 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, it also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v5 2/4] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-24 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66

[PATCH v5 3/4] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-24 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v5 4/4] DMA: Freescale: eliminate a compiling warning

2013-07-24 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com The variable cookie is initialized in a list_for_each_entry loop, if(unlikely) the list is empty, this variable will be used uninitialized, so we get a gcc compiling warning about this. This patch fixes this defect by setting an initial value to the

[PATCH v4 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Scott and Leo, please have a look at these V2 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V3-V4 changes: - introduce new patch [1/3] to revise the legacy dma

[PATCH v4 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt| 66

[PATCH v4 1/3] DMA: Freescale: revise device tree binding document

2013-07-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This updates the discription of each type of DMA controller and its channels, it is preparation for adding another new DMA controller binding, also fixes some defects of indent for text alignment at the same time. Signed-off-by: Hongbo Zhang

[PATCH v4 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-21 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v3 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

[PATCH v3 1/2] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt|8 +-

[PATCH v3 0/2] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Leo and Scott, please have a look at these V2 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V2-V3 changes: - edit

[PATCH V2 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-05 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/fsldma.c |5 -

[PATCH V2 1/2] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-05 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- arch/powerpc/boot/dts/fsl/elo3-dma-0.dtsi | 90 +++

[PATCH V2 0/2] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-05 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Leo and Scott, please have a look at these V2 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V1-v2 changes: - removed the codes handling the register dgsr1, since

[PATCH 1/2] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-06-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- arch/powerpc/boot/dts/fsl/qoriq-dma2-0.dtsi | 90 +++

[PATCH 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-06-30 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/fsldma.c | 48