An error occurred fetching the project authors.
- 24 Nov, 2014 2 commits
-
-
Ludovic Desroches authored
Return probe defer if requesting a dma channel without a dma controller probed. Signed-off-by:
Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
Ludovic Desroches authored
All boards with a dma controller have DT support so using dma_request_slave_channel_compat is no more needed. Signed-off-by:
Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
- 21 Oct, 2014 1 commit
-
-
Wenyou Yang authored
To make it cleaner, the system suspend/resume directly call the runtime suspend/resume functions and remove the wapper of CONFIG_PM_RUNTIME, CONFIG_PM_SLEEP. Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Acked-by:
Kevin Hilman <khilman@linaro.org> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
- 20 Oct, 2014 3 commits
-
-
Fengguang Wu authored
drivers/spi/spi-atmel.c:1518:1-4: WARNING: end returns can be simpified and declaration on line 1514 can be dropped Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by:
Fengguang Wu <fengguang.wu@intel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
Wenyou Yang authored
Drivers should put the device into low power states proactively whenever the device is not in use. Thus implement support for runtime PM and use the autosuspend feature to make sure that we can still perform well in case we see lots of SPI traffic within short period of time. Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
Vinod Koul authored
The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon Signed-off-by:
Vinod Koul <vinod.koul@intel.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@kernel.org>
-
- 01 Aug, 2014 1 commit
-
-
Mark Brown authored
On 64 bit systems integers are generally still 32 bit but long values and pointers are usually 64 bit. GCC warns when casting a 64 bit pointer into a 32 bit integer so cast to a long instead in order to avoid warnings. Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 16 Jul, 2014 1 commit
-
-
Geert Uytterhoeven authored
Use the inline wrapper introduced by commit 16052827 ("dmaengine/dma_slave: introduce inline wrappers"). Signed-off-by:
Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 07 May, 2014 1 commit
-
-
Alexandre Belloni authored
Found using smatch: drivers/spi/spi-atmel.c:878 atmel_spi_pump_pio_data() warn: unsigned 'as->current_remaining_bytes' is never less than zero. Signed-off-by:
Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 18 Apr, 2014 1 commit
-
-
Alexander Stein authored
atmel_spi_lock does a spin_lock_irqsave, so we need to renable the interrupts when we want to schedule. Signed-off-by:
Alexander Stein <alexanders83@web.de> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 14 Apr, 2014 1 commit
-
-
Axel Lin authored
Don't use unsigned for current_remaining_bytes so we can check current_remaining_bytes < 0 case. Use int is enough for current_remaining_bytes. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 21 Mar, 2014 1 commit
-
-
Randy Dunlap authored
Fix printk format warning by using %p extension 'ad' for dma_addr_t. drivers/spi/spi-atmel.c:1228:3: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat] drivers/spi/spi-atmel.c:1228:3: warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'dma_addr_t' [-Wformat] Signed-off-by:
Randy Dunlap <rdunlap@infradead.org> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 05 Mar, 2014 2 commits
-
-
Wenyou Yang authored
The PM callbacks implemented by the spi-atmel driver don't call spi_master_{resume,suspend}, fix that. Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Wenyou Yang authored
Amend the spi atmel pin controller to optionally take a pin control handle and set the state of the pins to: - "default" on boot, resume and before performing an spitransfer - "sleep" on suspend() This should make it possible to optimize energy usage for the pins both for the suspend/resume cycle Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 03 Mar, 2014 2 commits
-
-
Axel Lin authored
spi core will handle validating transfer length since commit 4d94bd21 "spi: core: Validate length of the transfers in message". So remove the same checking in this driver. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Axel Lin authored
This checking is already done in __spi_validate(). Signed-off-by:
Axel Lin <axel.lin@ingics.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 12 Feb, 2014 1 commit
-
-
Axel Lin authored
In spi_add_device(), we have the code to validate spi->chip_select. So remove the duplicate code in various drivers. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Acked-by:
Stephen Warren <swarren@nvidia.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 03 Feb, 2014 1 commit
-
-
Paul Gortmaker authored
None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next. Signed-off-by:
Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 09 Jan, 2014 1 commit
-
-
Wenyou Yang authored
Replace the deprecated master->transfer with transfer_one_message() and allow the SPI subsystem handle all the queuing of messages. Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Tested-by:
Richard Genoud <richard.genoud@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 08 Jan, 2014 1 commit
-
-
Richard Genoud authored
The only speed available was max_speed (the maximum speed declared for a device). This patch adds the support for spi_tranfer->speed_hz parameter. We can now set a different speed for each spi message. Signed-off-by:
Richard Genoud <richard.genoud@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 04 Dec, 2013 1 commit
-
-
Jingoo Han authored
Use devm_*() functions to make cleanup paths simpler. Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 23 Oct, 2013 1 commit
-
-
Wei Yongjun authored
In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by:
Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 16 Oct, 2013 2 commits
-
-
Mark Brown authored
This simplifies error handling. Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Jarkko Nikula authored
User-visible strings are more difficult to grep from sources if they are separated to multiple source lines. This is worse than over 80 columns long line code style violation. Fix this by making those to single-line strings or by breaking them between variables. While at there, convert if (printk_ratelimit()) dev_warn() to use dev_warn_ratelimited in spi-pxa2xx.c. Signed-off-by:
Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 14 Oct, 2013 1 commit
-
-
Jingoo Han authored
Fix the following checkpatch warning. WARNING: quoted string split across lines Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 07 Oct, 2013 1 commit
-
-
Sachin Kamat authored
'irq' was not released when clk_prepare_enable failed. Fix it. Signed-off-by:
Sachin Kamat <sachin.kamat@linaro.org> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 16 Sep, 2013 2 commits
-
-
Sachin Kamat authored
Fixes the following types of checkpatch errors and warning: ERROR: space required after that ',' (ctx:VxV) WARNING: sizeof *as should be sizeof(*as) Signed-off-by:
Sachin Kamat <sachin.kamat@linaro.org> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Jingoo Han authored
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Also, duplicated 'return' is removed from atmel_spi_resume(). Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 10 Sep, 2013 1 commit
-
-
Sachin Kamat authored
'irq' was not released when clk_prepare_enable failed. Fix it. Signed-off-by:
Sachin Kamat <sachin.kamat@linaro.org> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 31 Jul, 2013 1 commit
-
-
Emil Goode authored
This patch fixes the following sparse warnings. dma_addr_t can be either u32 or u64 so we should cast to the largest type and use the format specifier %llx. drivers/spi/spi-atmel.c: In function ‘atmel_spi_next_xfer_dma_submit’: drivers/spi/spi-atmel.c:631:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat] drivers/spi/spi-atmel.c:631:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 9 has type ‘dma_addr_t’ [-Wformat] drivers/spi/spi-atmel.c: In function ‘atmel_spi_pdc_next_xfer’: drivers/spi/spi-atmel.c:734:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat] drivers/spi/spi-atmel.c:734:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 9 has type ‘dma_addr_t’ [-Wformat] drivers/spi/spi-atmel.c:773:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’ [-Wformat] drivers/spi/spi-atmel.c:773:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 9 has type ‘dma_addr_t’ [-Wformat] Signed-off-by:
Emil Goode <emilgoode@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 28 Jul, 2013 1 commit
-
-
Mark Brown authored
Let checkers like sparse know that the locking imbalances are intentional in these functions. Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 17 Jul, 2013 1 commit
-
-
Boris BREZILLON authored
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by:
Boris BREZILLON <b.brezillon@overkiz.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 03 Jun, 2013 1 commit
-
-
Richard Genoud authored
Use generic DMA DT helper. Platforms booting with or without DT populated are both supported. Based on Ludovic Desroches <ludovic.desroches@atmel.com> patchset "ARM: at91: move to generic DMA device tree binding" Signed-off-by:
Richard Genoud <richard.genoud@gmail.com> Acked-by:
Ludovic Desroches <ludovic.desroches@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 29 May, 2013 1 commit
-
-
Stephen Warren authored
Fill in the recently added spi_master.bits_per_word_mask field in as many drivers as possible. Make related cleanups, such as removing any redundant error-checking, or empty setup callbacks. Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org> Acked-by:
H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 02 May, 2013 1 commit
-
-
Richard Genoud authored
Fix using PIO transfer mode only support 8 bits transfer, doesn't support 16 bits. Signed-off-by:
Richard Genoud <richard.genoud@gmail.com> [wenyou.yang@atmel.com: submit the patch] Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 24 Apr, 2013 1 commit
-
-
Nicolas Ferre authored
Add dmaengine support. Using "has_dma_support" member of struct is used to select the transfer mode: dmaengine or pdc. For the dmaengine transfer mode, it supports both 8 bits and 16 bits transfer. For the dmaengine transfer mode, if it fails to config dmaengine, or if the message length is less than 16 bytes, it will use the PIO transfer mode. Signed-off-by:
Nicolas Ferre <nicolas.ferre@atmel.com> [wenyou.yang@atmel.com: using "has_dma_support" to select dmaengine as the spi xfer mode] [wenyou.yang@atmel.com: fix DMA: OOPS if buffer > 4096 bytes] [wenyou.yang@atmel.com: submit the patch] Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Richard Genoud <richard.genoud@gmail.com> [richard.genoud@gmail.com: update with dmaengine interface] [richard.genoud@gmail.com: fix __init/__devinit sections mismatch] [richard.genoud@gmail.com: adapt to slave_config changes] [richard.genoud@gmail.com: add support t0 16 bits transfer] Tested-by:
Richard Genoud <richard.genoud@gmail.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 23 Apr, 2013 2 commits
-
-
Nicolas Ferre authored
Will allow to drop the lock during DMA operations. Replacing non-irqsave versions with irqsave versions of the lock to make it correct in both pdc and dmaengine transfer mode Signed-off-by:
Nicolas Ferre <nicolas.ferre@atmel.com> [wenyou.yang@atmel.com: submit the patch] Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Tested-by:
Richard Genoud <richard.genoud@gmail.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Nicolas Ferre authored
Needed for future use with dmaengine enabled driver. Signed-off-by:
Nicolas Ferre <nicolas.ferre@atmel.com> [wenyou.yang@atmel.com: submit the patch] Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Tested-by:
Richard Genoud <richard.genoud@gmail.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 07 Apr, 2013 1 commit
-
-
Joachim Eastwood authored
atmel_spi_transfer() would check speed_hz and fail if the speed was changed in the transfer. After commit "spi: make sure all transfer has proper speed set" this would happen on all transfers. Change speed_hz check to only fail if a lower speed than max is requested. Signed-off-by:
Joachim Eastwood <manabian@gmail.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-
- 01 Apr, 2013 1 commit
-
-
Nicolas Ferre authored
The status of transfer is stored in controller data structure so that it can be used not only by atmel_spi_msg_done() function. This will be useful for upcoming dmaengine enabled driver. Signed-off-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-