Re: [PATCH 02/10] dma: ste_dma40: Parse flags property for new 'high priority channel' request

2013-11-19 Thread Linus Walleij
On Tue, Nov 19, 2013 at 12:07 PM, Lee Jones  wrote:

> This is used for MSP (audio) devices which is about to be fully DT:ed.
>
> Acked-by: Vinod Koul 
> Acked-by: Linus Walleij 
> Signed-off-by: Lee Jones 

Applied to the ux500-devicetree branch.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 02/10] dma: ste_dma40: Parse flags property for new 'high priority channel' request

2013-11-19 Thread Lee Jones
This is used for MSP (audio) devices which is about to be fully DT:ed.

Acked-by: Vinod Koul 
Acked-by: Linus Walleij 
Signed-off-by: Lee Jones 
---
 drivers/dma/ste_dma40.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index b8c031b..00a2de9 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2409,6 +2409,7 @@ static void d40_set_prio_realtime(struct d40_chan *d40c)
 #define D40_DT_FLAGS_DIR(flags)((flags >> 1) & 0x1)
 #define D40_DT_FLAGS_BIG_ENDIAN(flags) ((flags >> 2) & 0x1)
 #define D40_DT_FLAGS_FIXED_CHAN(flags) ((flags >> 3) & 0x1)
+#define D40_DT_FLAGS_HIGH_PRIO(flags)  ((flags >> 4) & 0x1)
 
 static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec,
  struct of_dma *ofdma)
@@ -2446,6 +2447,9 @@ static struct dma_chan *d40_xlate(struct of_phandle_args 
*dma_spec,
cfg.use_fixed_channel = true;
}
 
+   if (D40_DT_FLAGS_HIGH_PRIO(flags))
+   cfg.high_priority = true;
+
return dma_request_channel(cap, stedma40_filter, );
 }
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 02/10] dma: ste_dma40: Parse flags property for new 'high priority channel' request

2013-11-19 Thread Lee Jones
This is used for MSP (audio) devices which is about to be fully DT:ed.

Acked-by: Vinod Koul vinod.k...@intel.com
Acked-by: Linus Walleij linus.wall...@linaro.org
Signed-off-by: Lee Jones lee.jo...@linaro.org
---
 drivers/dma/ste_dma40.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index b8c031b..00a2de9 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2409,6 +2409,7 @@ static void d40_set_prio_realtime(struct d40_chan *d40c)
 #define D40_DT_FLAGS_DIR(flags)((flags  1)  0x1)
 #define D40_DT_FLAGS_BIG_ENDIAN(flags) ((flags  2)  0x1)
 #define D40_DT_FLAGS_FIXED_CHAN(flags) ((flags  3)  0x1)
+#define D40_DT_FLAGS_HIGH_PRIO(flags)  ((flags  4)  0x1)
 
 static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec,
  struct of_dma *ofdma)
@@ -2446,6 +2447,9 @@ static struct dma_chan *d40_xlate(struct of_phandle_args 
*dma_spec,
cfg.use_fixed_channel = true;
}
 
+   if (D40_DT_FLAGS_HIGH_PRIO(flags))
+   cfg.high_priority = true;
+
return dma_request_channel(cap, stedma40_filter, cfg);
 }
 
-- 
1.8.1.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 02/10] dma: ste_dma40: Parse flags property for new 'high priority channel' request

2013-11-19 Thread Linus Walleij
On Tue, Nov 19, 2013 at 12:07 PM, Lee Jones lee.jo...@linaro.org wrote:

 This is used for MSP (audio) devices which is about to be fully DT:ed.

 Acked-by: Vinod Koul vinod.k...@intel.com
 Acked-by: Linus Walleij linus.wall...@linaro.org
 Signed-off-by: Lee Jones lee.jo...@linaro.org

Applied to the ux500-devicetree branch.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/