From: "Chai, Chong Yi" <chong.yi.c...@intel.com>

These patches are to enable DMA features in Baytrail. 
The patches are targeted to merge into Yocto-kernel-cache on branch yocto-3.14.

01/10 [
Author: "Chew, Chiau Ee"
Email: chiau.ee.c...@intel.com
Date: Wed, 8 May 2013 16:03:20 +0800
Subject: [PATCH 003/164] dma: dw: Fix Intel MID DMA driver and Designware DMA
 driver loading sequence

There is channel resource contention between Intel MID DMA
driver and Designware DMA driver if Intel MID DMA driver is
enabled for LPE Audio usage. Since LPIO devices are tied to
fixed DMA channel numbers, so the Designware DMA controller
has to be first enumerated in order to occupy the required
channel number.

Signed-off-by: Chew, Chiau Ee <chiau.ee.c...@intel.com>
Signed-off-by: Maurice Petallo <mauricex.r.peta...@intel.com>
]

02/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Wed, 5 Mar 2014 15:48:12 +0200
Subject: [PATCH 032/164] dma: dw: allocate memory in two stages in probe

This makes the probe() function a little bit clearer.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit 000871ce0336572f5b126a4d7f1ec13fc9adfda2)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

03/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Thu, 8 May 2014 12:01:48 +0300
Subject: [PATCH 033/164] dmaengine: dw: enable clock before access

hclk signal is a bus clock. So, it means we have to have it enabled during
access to the DMA controller. This patch makes sure that we enable clock before
access to the device, though it currently works on Intel hardware.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit d2f78e95e42a9130002c76f1a1f76e657a4b4004)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

04/10 [
Author: Andy Shevchenko
Email:andriy.shevche...@linux.intel.com
Date: Thu, 8 May 2014 12:01:49 +0300
Subject: [PATCH 034/164] dmaengine: dw: fix regression in dw_probe() function

The commit dbde5c29 "dw_dmac: use devm_* functions to simplify code" turns
probe function to use devm_* helpers and simultaneously brings a regression.

We have to 1) call clk_disable_unprepare() on error path, and 2) check error
code of clk_enable_prepare(). First part was done in the original code, second
one is an update.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit 8be4f523b48087765defd18483c66b268b3286e5)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

05/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Tue, 19 Aug 2014 20:29:12 +0300
Subject: [PATCH 035/164] dmaengine: dw: move dw_dmac.h to where it belongs to

There is a common storage for platform data related structures and definitions
inside kernel source tree. The patch moves file from include/linux to
include/linux/platform_data and renames it acoordingly. The users are also
updated.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
[For the arch/avr32/.* and .*sound/atmel.*]
Acked-by: Hans-Christian Egtvedt <egtv...@samfundet.no>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>

(cherry picked from commit 3d598f47e804a77208c6bb0a454123018e2f2281)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

06/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Tue, 19 Aug 2014 20:29:14 +0300
Subject: [PATCH 036/164] dmaengine: dw: convert dw_dma_slave to use explicit
 HS interfaces

Instead of exposing the possibility to set DMA registers CFG_HI and CFG_LO
strict user to provide handshake interfaces explicitly.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Acked-by: Hans-Christian Egtvedt <egtv...@samfundet.no>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit 7e1e2f27c5508518e58e5cbb11e26cbb815f4c56)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>

Conflicts:
        arch/avr32/mach-at32ap/at32ap700x.c
]

07/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Tue, 19 Aug 2014 20:29:15 +0300
Subject: [PATCH 037/164] dmaengine: dw: apply both HS interfaces and remove
 slave_id usage

Instead of one request line member let's use both source and destination ones.
Usually we have no such hardware except Atmel MMC controller found on AVR32
platform (see arch/avr32/mach-at32ap/at32ap700x.c and
drivers/mmc/host/atmel-mci.c).

This patch removes slave_id usage since it'll be removed from the generic
structure in later. This breaks the non-ACPI / non-DT cases for the users of
the driver, i.e. SPI and HSUART. However, these cases mean only PCI enumerated
devices for now, which is anyway broken (considering more than one DMA
controller in the system) and this patch series is intended to fix that
eventually.

The ACPI and DT cases shall be aware of the channel direction when setting
request lines, but this is a minor problem that would be addressed in future.

Suggested-by: Arnd Bergmann <a...@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit 8950052029874a6738552debb45077c596e90e6b)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

08/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Tue, 19 Aug 2014 20:29:16 +0300
Subject: [PATCH 038/164] dmaengine: dw: introduce generic filter function

The introduced filter function would be reused in the ACPI and DT cases since
in those cases we have to apply mandatory data to the requested channel. Thus,
patch moves platform driver to use it in that case.

The function unlikely can't be used by users of the driver due to an implicit
dependency to the dw_dmac_core module.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit 4d130de20c3f39fc1a1aecd3969b50d49ff2e358)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>

Conflicts:
        drivers/dma/dw/platform.c
        Due to commit
        1be347b dmaengine: dw: append MODULE_ALIAS for platform driver
]

09/10 [
Author: Andy Shevchenko
Email: andriy.shevche...@linux.intel.com
Date: Tue, 19 Aug 2014 20:29:17 +0300
Subject: [PATCH 039/164] dmaengine: dw: move clock operations to platform.c

On BayTrail platform DMA is not functional in the PCI mode, whereby it always
failed and exit at the point when it tries to get a clock. It causes the PCI
mode probe to exit with the error message:
        dw_dmac_pci: probe of 0000:00:1e.0 failed with error -2

This patch moves clock operations to where it belongs to. Thus, the clock is
provided only in ACPI / non-PCI cases.

Reported-by: Chew, Chiau Ee <chiau.ee.c...@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.k...@intel.com>
(cherry picked from commit a15636e83eb0dedefcb1221be729023e4c281748)
Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

10/10 [
Author: Wan Ahmad Zainie
Email: wan.ahmad.zainie.wan.moha...@intel.com
Date: Fri, 21 Aug 2015 11:07:23 +0800
Subject: [PATCH 151/164] dmaengine: dw: fix checkpatch.pl warnings

This commit is to fix the result of running scripts/checkpatch.pl against
0035-dmaengine-dw-move-dw_dmac.h-to-where-it-belongs-to.patch

Signed-off-by: Wan Ahmad Zainie <wan.ahmad.zainie.wan.moha...@intel.com>
]

Chai, Chong Yi (1):
  dma: dw: Fix Intel MID DMA driver and Designware DMA

 features/soc/baytrail/baytrail.scc                 |  10 +
 ...Intel-MID-DMA-driver-and-Designware-DMA-d.patch |  39 ++
 ...dw-allocate-memory-in-two-stages-in-probe.patch |  88 +++++
 ...w-apply-both-HS-interfaces-and-remove-sla.patch | 155 ++++++++
 ...w-convert-dw_dma_slave-to-use-explicit-HS.patch | 114 ++++++
 .../dmaengine-dw-enable-clock-before-access.patch  |  48 +++
 .../dmaengine-dw-fix-checkpatch.pl-warnings.patch  |  40 ++
 ...ne-dw-fix-regression-in-dw_probe-function.patch | 114 ++++++
 ...gine-dw-introduce-generic-filter-function.patch | 195 ++++++++++
 ...ne-dw-move-clock-operations-to-platform.c.patch | 203 ++++++++++
 ...-dw-move-dw_dmac.h-to-where-it-belongs-to.patch | 412 +++++++++++++++++++++
 11 files changed, 1418 insertions(+)
 create mode 100644 
features/soc/baytrail/dma-dw-Fix-Intel-MID-DMA-driver-and-Designware-DMA-d.patch
 create mode 100644 
features/soc/baytrail/dma-dw-allocate-memory-in-two-stages-in-probe.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-apply-both-HS-interfaces-and-remove-sla.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-convert-dw_dma_slave-to-use-explicit-HS.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-enable-clock-before-access.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-fix-checkpatch.pl-warnings.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-fix-regression-in-dw_probe-function.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-introduce-generic-filter-function.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-move-clock-operations-to-platform.c.patch
 create mode 100644 
features/soc/baytrail/dmaengine-dw-move-dw_dmac.h-to-where-it-belongs-to.patch

-- 
1.9.1

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to