07 Sep, 2017
1 commit
22 Aug, 2017
2 commits
-
There are no in kernel consumers for DMA_SG op. Removing operation,
dead code, and test code in dmatest.Signed-off-by: Dave Jiang
Reviewed-by: Linus Walleij
Cc: Gary Hook
Cc: Ludovic Desroches
Cc: Kedareswara rao Appana
Cc: Li Yang
Cc: Michal Simek
Signed-off-by: Vinod Koul -
Make these const as they are only used during a copy operation.
Done using Coccinelle.Signed-off-by: Bhumika Goyal
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul
02 Jun, 2017
1 commit
-
This dma engine driver directly accesses page_link assuming knowledge
that should be contained only in scatterlist.h.We replace this access with a call to sg_chain which is equivalent.
Signed-off-by: Logan Gunthorpe
Signed-off-by: Stephen Bates
Acked-by: Linus Walleij
Cc: Dan Williams
Cc: Vinod Koul
Cc: Per Förlin
Signed-off-by: Vinod Koul
14 Jan, 2017
2 commits
-
The ste_dma40 has burst level granularity on the residue
registers, which is necessary for some clients to know,
notably the UART. Before this patch we get this message:uart-pl011 80007000.uart: RX DMA disabled - no residue processing
This patch fixes it.
Signed-off-by: Linus Walleij
Signed-off-by: Vinod Koul -
Since the introduction of the .directions flags, ste_dma40 was
never patched to indicate which transfer directions it can manage.
This causes a problem when trying to use the dmaengine for generic
ALSA SoC DMA:ux500-msp-i2s.1: Failed to get DMA channel capabilities, falling
back to period counting: -6This patch fixes this issue by indicating the supported transfer
directions for slave and memcpy channels.Signed-off-by: Linus Walleij
Signed-off-by: Vinod Koul
03 Oct, 2016
2 commits
-
Signed-off-by: Vinod Koul
Conflicts:
drivers/dma/cppi41.c
27 Sep, 2016
24 commits
-
Adjust a jump label according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust a jump label according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust a jump label according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust a jump label according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust a jump label according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Move one assignment for the local variable "cfg" so that its setting
will only be performed after a call of the function "d40_desc_get"
succeeded by this function.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Move assignments for two local variables so that their setting
will only be performed after corresponding data processing succeeded
by this function.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
* Adjust jump targets according to the Linux coding style convention.
* Delete a repeated check which became unnecessary with this refactoring.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Add a space character before a single jump label in this function
according to the current Linux coding style convention.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Five local variables will be set to an appropriate value a bit later.
Thus omit the explicit initialisation which became unnecessary with
a previous update step.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Four checks could be repeated by the d40_hw_detect_init() function during
error handling even if the passed variables contained a null pointer.* Adjust jump targets according to the Linux coding style convention.
* Call the interface "iounmap" only once at the end.
* Delete the repeated checks which became unnecessary with
this refactoring.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".This issue was detected also by using the Coccinelle software.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
* The script "checkpatch.pl" can point information out like the following.
WARNING: Prefer kcalloc over kzalloc with multiply
Thus fix the affected source code places.
* Replace the specification of data types by pointer dereferences
to make the corresponding size determination a bit safer according to
the Linux coding style convention.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Move one assignment for the local variable "ret" so that its setting
will only be performed after corresponding data processing succeeded
by this function.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
Return directly after a memory allocation failed in this function
at the beginning.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul -
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".This issue was detected by using the Coccinelle software.
* Replace the specification of a data type by a pointer dereference
to make the corresponding size determination a bit safer according to
the Linux coding style convention.Signed-off-by: Markus Elfring
Reviewed-by: Linus Walleij
Signed-off-by: Vinod Koul
14 Sep, 2016
1 commit
-
The combo of list_empty() check and return list_first_entry()
can be replaced with list_first_entry_or_null().Signed-off-by: Masahiro Yamada
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul
08 Aug, 2016
1 commit
-
This is in preperation of moving to a callback that provides results to the
callback for the transaction. The conversion will maintain current behavior
and the driver must convert to new callback mechanism at a later time in
order to receive results.Signed-off-by: Dave Jiang
Reviewed-by: Lars-Peter Clausen
Cc: Linus Walleij
Signed-off-by: Vinod Koul
22 Jun, 2016
2 commits
-
If kzalloc() fails it will issue it's own error message including
a dump_stack(). So remove the site specific error messages.Signed-off-by: Peter Griffin
Acked-by: Jon Hunter
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul -
There is no point calculating the residue if there is
no txstate to store the value.Signed-off-by: Peter Griffin
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul
10 Dec, 2015
3 commits
-
The variable "res" will eventually be set to a resource pointer from
a call of the d40_hw_detect_init(() function.
Thus let us omit the explicit initialisation at the beginning.Signed-off-by: Markus Elfring
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul -
A single jump label was used by the d40_probe() function in several cases
for error handling which was a bit inefficient here.* This implementation detail could be improved by the introduction
of another jump label.* Remove an extra check for the variable "base".
* Omit its explicit initialisation at the beginning then.
Signed-off-by: Markus Elfring
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul -
The kmem_cache_destroy() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul
25 Oct, 2015
1 commit
-
s/regsiter/register/
Signed-off-by: Geliang Tang
Acked-by: Linus Walleij
Signed-off-by: Vinod Koul