Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-25 Thread Linus Walleij
On Mon, Apr 22, 2013 at 12:18 PM, Lee Jones wrote: >> > + if ((cfg->dir == STEDMA40_PERIPH_TO_MEM) || >> > + (cfg->dir == STEDMA40_PERIPH_TO_PERIPH)) { >> >> Why would you need your own direction defines, I see that there is not much >> diff between these and what dmaengine defines, so

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-25 Thread Linus Walleij
On Thu, Apr 18, 2013 at 12:11 PM, Lee Jones wrote: > d40_phy_cfg is now only ever called to configure physical channels, so > there's no requirement to pass though an argument describing the type > of channel and to subsequently test for it. > > Cc: Vinod Koul > Cc: Dan Williams > Cc: Per

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-25 Thread Linus Walleij
On Thu, Apr 18, 2013 at 12:11 PM, Lee Jones lee.jo...@linaro.org wrote: d40_phy_cfg is now only ever called to configure physical channels, so there's no requirement to pass though an argument describing the type of channel and to subsequently test for it. Cc: Vinod Koul vinod.k...@intel.com

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-25 Thread Linus Walleij
On Mon, Apr 22, 2013 at 12:18 PM, Lee Jones lee.jo...@linaro.org wrote: + if ((cfg-dir == STEDMA40_PERIPH_TO_MEM) || + (cfg-dir == STEDMA40_PERIPH_TO_PERIPH)) { Why would you need your own direction defines, I see that there is not much diff between these and what dmaengine

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-24 Thread Lee Jones
> > + if ((cfg->dir == STEDMA40_PERIPH_TO_MEM) || > > + (cfg->dir == STEDMA40_PERIPH_TO_PERIPH)) { > Why would you need your own direction defines, I see that there is not much > diff between these and what dmaengine defines, so perhpas you could use > those? Same with these ones,

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-24 Thread Lee Jones
+ if ((cfg-dir == STEDMA40_PERIPH_TO_MEM) || + (cfg-dir == STEDMA40_PERIPH_TO_PERIPH)) { Why would you need your own direction defines, I see that there is not much diff between these and what dmaengine defines, so perhpas you could use those? Same with these ones, subsequent

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-22 Thread Lee Jones
> > + if ((cfg->dir == STEDMA40_PERIPH_TO_MEM) || > > + (cfg->dir == STEDMA40_PERIPH_TO_PERIPH)) { > Why would you need your own direction defines, I see that there is not much > diff between these and what dmaengine defines, so perhpas you could use > those? I agree. I'll speak to the

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-22 Thread Vinod Koul
On Thu, Apr 18, 2013 at 11:11:59AM +0100, Lee Jones wrote: > d40_phy_cfg is now only ever called to configure physical channels, so > there's no requirement to pass though an argument describing the type > of channel and to subsequently test for it. > > Cc: Vinod Koul > Cc: Dan Williams > Cc:

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-22 Thread Vinod Koul
On Thu, Apr 18, 2013 at 11:11:59AM +0100, Lee Jones wrote: d40_phy_cfg is now only ever called to configure physical channels, so there's no requirement to pass though an argument describing the type of channel and to subsequently test for it. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan

Re: [PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-22 Thread Lee Jones
+ if ((cfg-dir == STEDMA40_PERIPH_TO_MEM) || + (cfg-dir == STEDMA40_PERIPH_TO_PERIPH)) { Why would you need your own direction defines, I see that there is not much diff between these and what dmaengine defines, so perhpas you could use those? I agree. I'll speak to the STE folk.

[PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-18 Thread Lee Jones
d40_phy_cfg is now only ever called to configure physical channels, so there's no requirement to pass though an argument describing the type of channel and to subsequently test for it. Cc: Vinod Koul Cc: Dan Williams Cc: Per Forlin Cc: Rabin Vincent Signed-off-by: Lee Jones ---

[PATCH 17/32] dmaengine: ste_dma40: Remove redundant argument from d40_phy_cfg()

2013-04-18 Thread Lee Jones
d40_phy_cfg is now only ever called to configure physical channels, so there's no requirement to pass though an argument describing the type of channel and to subsequently test for it. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Per Forlin per.for...@stericsson.com Cc: