You need to sign in or sign up before continuing.
- 27 Jan, 2014 1 commit
-
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 17 Jan, 2014 1 commit
-
-
Axel Lin authored
The implementation in spi_setup() already set spi->bits_per_word = 8 when spi->bits_per_word is 0 before calling spi->master->setup. So we don't need to do it again in setup() callback. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Barry Song <Baohua.Song@csr.com> Acked-by:
Guenter Roeck <linux@roeck-us.net> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 14 Jan, 2014 2 commits
-
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 13 Jan, 2014 3 commits
-
-
Geert Uytterhoeven authored
Add support for specifying the SPI clock phase and polarity, based on the SDK reference code. Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by:
Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by:
Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by:
Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 24 Dec, 2013 7 commits
-
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Make it more obvious that this value is dummy data. Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Remove useless casts, and do not cast away const. Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
The overrun flag should be cleared in the SPI Status Register, not in the SPI Control Register, based on the SDK sample code. Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by:
Simon Horman <horms+renesas@verge.net.au> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Geert Uytterhoeven authored
SH7757 doesn't pass platform data, in which case spi-rspi uses default parameters. However, commit 5ce0ba88 ("spi: rcar: add Renesas QSPI support on RSPI") added a new user of the platform data, but forgot to check for its validity first, causing a NULL pointer dereference on SH7757. Add the missing check to fix this. Signed-off-by:
Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by:
Simon Horman <horms+renesas@verge.net.au> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 09 Dec, 2013 1 commit
-
-
Jingoo Han authored
Use devm_spi_register_master() to make cleanup paths simpler. Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 27 Nov, 2013 3 commits
-
-
Laurent Pinchart authored
This simplies error and cleanup code paths. Signed-off-by:
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Laurent Pinchart authored
The platform driver data is set to point to the rspi_data structure at probe time. Calling spi_master_get() on the pointer is just plain wrong and only works by chance. Fix it by using the platform driver data directly. Signed-off-by:
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Laurent Pinchart authored
The transfer data length variable is set based on the desired access size, without a default case. This results in a compiler warning, even though the access size is always set to a supported value. Create a default case to silence the warning. Signed-off-by:
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 15 Nov, 2013 1 commit
-
-
Wei Yongjun authored
We had set the platform drvdata in rspi_probe() as a type of struct rspi_data, but use it as struct spi_master in rspi_remove() Fix by remove the unnecessary spi_master_[get|put]() since rspi->master is no longer used after spi_unregister_master(). Signed-off-by:
Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 10 Oct, 2013 1 commit
-
-
Hiep Cao Minh authored
The R8A7790 has QSPI module which added into RSPI together. The transmit or receive data should be read from or written to with the longword-, word-, or byte-access width. Modify word- access to byte-access. In 16-bit data register, QSPI send or receive datas access from high 8-bit while RSPI send or receive datas access from low 8-bit on single mode. Modify to reset transmit-receive buffer data and reading dummy after data are transmited. RSPI has a TXMD bit on control register(SPCR) to set transmit-only mode when transmit data or Full-duplex synchronous mode when receive data. In QSPI the TXMD bit is not supported, so after transmit data, dummy should be read and before transmit or receive data the bufer register should be reset. This driver is the implementation of send and receive pio only, DMA is not supported at this time. Without this patch, it will occur error when transmit and receive Signed-off-by:
Hiep Cao Minh <cm-hiep@jinso.co.jp> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 16 Sep, 2013 1 commit
-
-
Hiep Cao Minh authored
The R8A7790 has QSPI module which is very similar to RSPI. This patch adds into RSPI module together to supports QSPI module. Signed-off-by:
Hiep Cao Minh <cm-hiep@jinso.co.jp> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 31 Aug, 2013 1 commit
-
-
Axel Lin authored
In rspi_remove(), current code dereferences rspi after spi_unregister_master(), thus add an extra spi_master_get() call is necessary to prevent use after free. Current code already has an extra spi_master_put() call in rspi_remove(), so this patch just adds a spi_master_get() call rather than a spi_master_get() with spi_master_put() calls. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 29 Aug, 2013 1 commit
-
-
Jingoo Han authored
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 27 Aug, 2013 1 commit
-
-
Shimoda, Yoshihiro authored
This patch fixes the following Smatch warning: CHECK drivers/spi/spi-rspi.c drivers/spi/spi-rspi.c:606 rspi_work() warn: inconsistent returns spin_lock:&rspi->lock: locked (602) unlocked (606) drivers/spi/spi-rspi.c:606 rspi_work() warn: inconsistent returns irqsave:flags: locked (602) unlocked (606) Reported-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 02 Aug, 2013 1 commit
-
-
Guennadi Liakhovetski authored
Don't rely on shdma dhaengine driver getting DMA slave addresses from its slave configuration. Instead provide those addresses, using a dmaengine_slave_config() call. Signed-off-by:
Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- 23 May, 2013 1 commit
-
-
Jingoo Han authored
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by:
Jingoo Han <jg1.han@samsung.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 07 Dec, 2012 1 commit
-
-
Grant Likely authored
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Bill Pemberton has done most of the legwork on this series. I've used his script to purge the attributes from the drivers/gpio tree. Reported-by:
Bill Pemberton <wfp5p@virginia.edu> Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-
- 17 Oct, 2012 1 commit
-
-
Shimoda, Yoshihiro authored
Because the latest shdma driver changed, it caused build error in the spi-rspi driver. This patch fixed the build error. Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 20 May, 2012 1 commit
-
-
Shimoda, Yoshihiro authored
This patch adds dmaengine supporting using sh_dma driver. The module receives data by DMAC, it also needs TX DMAC to generate SPI's clocks. Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-
- 08 Mar, 2012 1 commit
-
-
Shimoda, Yoshihiro authored
The SH7757 has RSPI module. This patch supports it. Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-