An error occurred fetching the project authors.
- 08 Jan, 2013 2 commits
-
-
Heikki Krogerus authored
The driver will be used as a core part for various implementations of the DesignWare DMA device. The patch adjusts description on the top and corrects paragraph indentation in few places across the code. Signed-off-by:
Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
dw_dmac driver already supports device tree but it used to have its platform data passed the non-DT way. This patch does following changes: - pass platform data via DT, non-DT way still takes precedence if both are used. - create generic filter routine - Earlier slave information was made available by slave specific filter routines in chan->private field. Now, this information would be passed from within dmac DT node. Slave drivers would now be required to pass bus_id (a string) as parameter to this generic filter(), which would be compared against the slave data passed from DT, by the generic filter routine. - Update binding document Signed-off-by:
Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> [Fixed __devinit usage] Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 28 Nov, 2012 2 commits
-
-
Bill Pemberton authored
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by:
Bill Pemberton <wfp5p@virginia.edu> Cc: Li Yang <leoli@freescale.com> Cc: Zhang Wei <zw@zh-kernel.org> Cc: Barry Song <baohua.song@csr.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
Bill Pemberton authored
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by:
Bill Pemberton <wfp5p@virginia.edu> Acked-by:
Barry Song <baohua.song@csr.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Acked-by:
Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 02 Oct, 2012 1 commit
-
-
Andy Shevchenko authored
Sometimes memory-to-memory test is failed, that's why we need to choose minimum data portion between source and destination limits together. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 27 Sep, 2012 5 commits
-
-
Andy Shevchenko authored
Some controllers have the reduced functionality where the LLP multi block transfers are not supported. This patch introduces a support of such controllers. In case of memory copy or scatter-gather lists it emulates LLP transfers via bunch of the regular single block ones. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
Not all of the controllers support the 64 bit data width. Make it configurable via platform data. The driver will try to get a value from the component parameters, otherwise it will use the platform data. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
The maximum block size is a configurable parameter for the chip. So, driver will try to get it from the encoded component parameters. Otherwise it will come from the platform data. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
In case the controller has the encoded parameters feature enabled the driver will use it to get the number of channels. In the future it will be used for the other important parameters as well. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 14 Sep, 2012 1 commit
-
-
Andy Shevchenko authored
There is slave_id field in the generic slave config structure that is dedicated for the uniq slave number. In our case we have the request lines wired to the certain hardware. Therefore the number of the request line is uniq and could be used as slave_id. It allows us in some cases to drop out the usage of the custom slave config structure. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 26 Jul, 2012 1 commit
-
-
Andy Shevchenko authored
Use devm_kzalloc, devm_clk_get, devm_request_irq, and devm_request_and_ioremap to reduce the code and to simplify the error path. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Viresh Kumar <viresh.linux@gmail.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 16 Jul, 2012 2 commits
-
-
Andy Shevchenko authored
Use 'u32' for the LLI structure members, which are defined by hardware to be 32-bit. dma_addr_t is much more vague about its actual size. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 21 Jun, 2012 9 commits
-
-
Andy Shevchenko authored
This piece of code is used often. Make it as a separate function. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
We usually have more than one DMA device. Thus, the probe function should serve for all of them in case when the driver is built as a module. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
There were three places where such function is used. We still avoid to use native fls() because in one case it requires to use 64bit version which is suboptimal in our case. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
Just to be sure we are in known state we disable the BLOCK interupts. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
The dw_dma_off call needs to have the all_chan_mask calculated. So, done this calculations before the call. Moreover, remove duplicate code that masks the DMA interrupts. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
In case the first descriptor we found is available, the counter still remains 0 value which is wrong. This patch fixes the counter behaviour. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
There is three places where values of the most significant registers were printed. Make such piece of code as separate function. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Andy Shevchenko authored
dma_addr_t is sometimes 32 bit and sometimes 64. We normally cast them to unsigned long long for printk(). Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 20 Jun, 2012 1 commit
-
-
Viresh Kumar authored
viresh.kumar@st.com email-id doesn't exist anymore as I have left the company. Replace ST's id with viresh.linux@gmail.com. It also updates .mailmap file to fix address for 'git shortlog' Signed-off-by:
Viresh Kumar <viresh.linux@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 11 May, 2012 3 commits
-
-
Lars-Peter Clausen authored
dmaengine drivers should always use sg_dma_address instead of sg_phys to get the addresses for the transfer from a sg element. To quote Russel King: sg_phys(sg) of course has nothing to do with DMA addresses. It's the physical address _to the CPU_ of the memory associated with the scatterlist entry. That may, or may not have the same value for the DMA engine, particularly if IOMMUs are involved. And if these drivers are used on ARM, they must be fixed, sooner rather than later. There's patches in the works which will mean we will end up with IOMMU support in the DMA mapping later, which means everything I've said above will become reality. The patch has been generated using the following coccinelle patch: <smpl> @@ struct scatterlist *sg; @@ -sg_phys(sg) +sg_dma_address(sg) </smpl> Signed-off-by:
Lars-Peter Clausen <lars@metafoo.de> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
SPEAr platforms now support DT and so must convert all drivers to support DT. This patch adds DT probing support for Synopsys DMA controller and updates its documentation too. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
clk_{un}prepare is mandatory for platforms using common clock framework. Since this driver is used by SPEAr platform, which supports common clock framework, add clk_{un}prepare() support for it. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 21 Mar, 2012 1 commit
-
-
Alexandre Bounine authored
Add context parameter to device_prep_slave_sg() and device_prep_dma_cyclic() interfaces to allow passing client/target specific information associated with the data transfer. Modify all affected DMA engine drivers. Signed-off-by:
Alexandre Bounine <alexandre.bounine@idt.com> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 13 Mar, 2012 6 commits
-
-
Russell King - ARM Linux authored
Provide a common function to initialize a channels cookie values. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Russell King - ARM Linux authored
Now that we have the completed cookie in the dma_chan structure, we can consolidate the tx_status functions by providing a function to set the txstate structure and returning the DMA status. We also provide a separate helper to set the residue for cookies which are still in progress. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Russell King - ARM Linux authored
Provide a common function to do the cookie mechanics for completing a DMA descriptor. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Russell King - ARM Linux authored
Everyone deals with assigning DMA cookies in the same way (it's part of the API so they should be), so lets consolidate the common code into a helper function to avoid this duplication. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Russell King - ARM Linux authored
Add a local private header file to contain definitions and declarations which should only be used by DMA engine drivers. We also fix linux/dmaengine.h to use LINUX_DMAENGINE_H to guard against multiple inclusion. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Russell King - ARM Linux authored
Every DMA engine implementation declares a last completed dma cookie in their private dma channel structures. This is pointless, and forces driver specific code. Move this out into the common dma_chan structure. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Tested-by:
Linus Walleij <linus.walleij@linaro.org> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
Jassi Brar <jassisinghbrar@gmail.com> [imx-sdma.c & mxs-dma.c] Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
- 22 Feb, 2012 6 commits
-
-
Viresh Kumar authored
This patch adds support for DMA_SLAVE_CONFIG in dwc DMAC controller. Fields in struct dw_dma_slave for passing similar data are preserved in this patch untill all existing users are fixed. That will be handled later in this patchset. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
64 bit transfers are possible on both sides in slave transfers (memory as well as peripherals). This patch adds support for it memory side 64 bit transfers. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
Block interrupts give interrupt on completion of every LLI, which is actually too much interrupts. This is just not required for current functioning of dw_dmac. So, just don't handle them at all. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
Use already defined function dev_get_platdata() instead of accessing pdev->dev.data. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Viresh Kumar authored
Total number of channels is passed in pdata->nr_channels variable, thus we must not use magic number '7' for total number of channels. Signed-off-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-
Rajeev KUMAR authored
The suspend and resume implementation is through dev_pm_ops in dmac. So in order to support hibernation, freeze, thaw, restore and poweroff features are required. Signed-off-by:
Rajeev Kumar <rajeev-dlh.kumar@st.com> Acked-by:
Viresh Kumar <viresh.kumar@st.com> Signed-off-by:
Vinod Koul <vinod.koul@linux.intel.com>
-