Re: [PATCH v2 4/6] ASoC: Intel: use dw_dmac autoconfiguration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-10-02 at 18:00 +0100, Mark Brown wrote:
> On Wed, Sep 30, 2015 at 01:40:49PM +0530, Vinod Koul wrote:
> > On Mon, Sep 28, 2015 at 06:57:06PM +0300, Andy Shevchenko wrote:
> > > Instead of hardconding a platform data for dw_dmac let's use it's 
> > > own
> > > autoconfiguration feature. Thus, remove hardcoded values.
> 
> > This need ack from Mark if we carry thru dmaengine tree. You should 
> > have
> > cced him and ALSA
> 
> Is this part of completely removing the platform data or is it just 
> an
> incremental change?  What are the dependencies here - I've not seen 
> the
> cover letter or the rest of the series?

Since platform data is a partial here and driver relies on DMA
autoconfiguration mode, therefore it's redundant. But it will not work
until we properly do autoconfiguration in DMA driver (see [1]).

The cover letter is [2].

I'm going to resend an updated series soon.

[1] http://www.spinics.net/lists/dmaengine/msg06284.html
[2] http://www.spinics.net/lists/dmaengine/msg06288.html

> 

> > > Acked-by: Liam Girdwood <liam.r.girdwood@xxxxxxxxxxxxxxx>
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx
> > > >
> > > ---
> > >  sound/soc/intel/common/sst-firmware.c | 10 ++--------
> > >  1 file changed, 2 insertions(+), 8 deletions(-)
> > > 
> > > diff --git a/sound/soc/intel/common/sst-firmware.c 
> > > b/sound/soc/intel/common/sst-firmware.c
> > > index ebcca6d..1636a1e 100644
> > > --- a/sound/soc/intel/common/sst-firmware.c
> > > +++ b/sound/soc/intel/common/sst-firmware.c
> > > @@ -26,7 +26,6 @@
> > >  #include <linux/acpi.h>
> > >  
> > >  /* supported DMA engine drivers */
> > > -#include <linux/platform_data/dma-dw.h>
> > >  #include <linux/dma/dw.h>
> > >  
> > >  #include <asm/page.h>
> > > @@ -169,12 +168,6 @@ err:
> > >  	return ret;
> > >  }
> > >  
> > > -static struct dw_dma_platform_data dw_pdata = {
> > > -	.is_private = 1,
> > > -	.chan_allocation_order = CHAN_ALLOCATION_ASCENDING,
> > > -	.chan_priority = CHAN_PRIORITY_ASCENDING,
> > > -};
> > > -
> > >  static struct dw_dma_chip *dw_probe(struct device *dev, struct 
> > > resource *mem,
> > >  	int irq)
> > >  {
> > > @@ -195,7 +188,8 @@ static struct dw_dma_chip *dw_probe(struct 
> > > device *dev, struct resource *mem,
> > >  		return ERR_PTR(err);
> > >  
> > >  	chip->dev = dev;
> > > -	err = dw_dma_probe(chip, &dw_pdata);
> > > +
> > > +	err = dw_dma_probe(chip, NULL);
> > >  	if (err)
> > >  		return ERR_PTR(err);
> > >  
> > > -- 
> > > 2.5.1
> > > 
> > 

-- 
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux