<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/spi/spi-ti-qspi.c, branch v5.3</title>
<subtitle>Linux Kernel (branches are rebased on master from time to time)</subtitle>
<id>https://sre.ring0.de/linux/atom?h=v5.3</id>
<link rel='self' href='https://sre.ring0.de/linux/atom?h=v5.3'/>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/'/>
<updated>2019-06-05T15:36:38Z</updated>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 296</title>
<updated>2019-06-05T15:36:38Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-29T14:18:10Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=41a1c9ecc38ce63f261f34a26cce05e1df5628b7'/>
<id>urn:sha1:41a1c9ecc38ce63f261f34a26cce05e1df5628b7</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gplv2 this program is distributed in the
  hope that it will be useful but without any warranty without even
  the implied warranty of merchantability or fitness for a particular
  purpose see the gnu general public license for more details

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 1 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190529141901.986607096@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>spi: ti-qspi: Fix mmap read when more than one CS in use</title>
<updated>2019-01-29T12:08:03Z</updated>
<author>
<name>Vignesh R</name>
<email>vigneshr@ti.com</email>
</author>
<published>2019-01-29T07:44:22Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=673c865efbdc5fec3cc525c46d71844d42c60072'/>
<id>urn:sha1:673c865efbdc5fec3cc525c46d71844d42c60072</id>
<content type='text'>
Commit 4dea6c9b0b64 ("spi: spi-ti-qspi: add mmap mode read support") has
has got order of parameter wrong when calling regmap_update_bits() to
select CS for mmap access. Mask and value arguments are interchanged.
Code will work on a system with single slave, but fails when more than
one CS is in use. Fix this by correcting the order of parameters when
calling regmap_update_bits().

Fixes: 4dea6c9b0b64 ("spi: spi-ti-qspi: add mmap mode read support")
Cc: stable@vger.kernel.org
Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: ti-qspi: Make sure res_mmap != NULL before dereferencing it</title>
<updated>2018-05-17T04:36:00Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-05-14T09:11:29Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=6282f122913e632c2415c236a2b5faa8ef368b10'/>
<id>urn:sha1:6282f122913e632c2415c236a2b5faa8ef368b10</id>
<content type='text'>
resource_size() is dereferencing the res without checking that it is
not NULL, so we need to do the check before calling resource_size().

Fixes: b95cb394ab59 ("spi: ti-qspi: Implement the spi_mem interface")
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: Get rid of the spi_flash_read() API</title>
<updated>2018-05-11T02:34:41Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-04-26T16:18:20Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=c1f5ba70decfc2f35edcc10505e3e78fb528d212'/>
<id>urn:sha1:c1f5ba70decfc2f35edcc10505e3e78fb528d212</id>
<content type='text'>
This API has been replaced by the spi_mem_xx() one, its only user
(spi-nor) has been converted to spi_mem_xx() and all SPI controller
drivers that were implementing the -&gt;spi_flash_xxx() hooks are also
implementing the spi_mem ones. So we can safely get rid of this API.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Frieder Schrempf &lt;frieder.schrempf@exceet.de&gt;
Tested-by: Frieder Schrempf &lt;frieder.schrempf@exceet.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: ti-qspi: Implement the spi_mem interface</title>
<updated>2018-05-11T02:33:42Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-04-26T16:18:18Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=b95cb394ab591d1d6dcc7281b415fde0a3de2ae1'/>
<id>urn:sha1:b95cb394ab591d1d6dcc7281b415fde0a3de2ae1</id>
<content type='text'>
The spi_mem interface is meant to replace the spi_flash_read() one.
Implement the -&gt;exec_op() method so that we can smoothly get rid of the
old interface.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Vignesh R &lt;vigneshr@ti.com&gt;
Tested-by: Vignesh R &lt;vigneshr@ti.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/ti-qspi' and 'spi/topic/xlp' into spi-next</title>
<updated>2017-04-26T14:58:22Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2017-04-26T14:58:22Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=282ec0ea65dab88fda51b5b9b649958ae42f4ac0'/>
<id>urn:sha1:282ec0ea65dab88fda51b5b9b649958ae42f4ac0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: spi-ti-qspi: Use bounce buffer if read buffer is not DMA'ble</title>
<updated>2017-04-21T17:03:53Z</updated>
<author>
<name>Vignesh R</name>
<email>vigneshr@ti.com</email>
</author>
<published>2017-04-11T11:52:25Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83'/>
<id>urn:sha1:c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83</id>
<content type='text'>
Flash filesystems like JFFS2, UBIFS and MTD block layer can provide
vmalloc'd or kmap'd buffers that cannot be mapped using dma_map_sg() and
can potentially be in memory region above 32bit addressable region(ie
buffers belonging to memory region backed by LPAE) of DMA, implement
spi_flash_can_dma() interface to inform SPI core not to map such
buffers.
When buffers are not mapped for DMA, then use a pre allocated bounce
buffer(64K = typical flash erase sector size) to read from flash and
then do a copy to actual destination buffer. This is approach is much
faster than using memcpy using CPU and also reduces CPU load.

With this patch, UBIFS read speed is ~18MB/s and CPU utilization &lt;20% on
DRA74 Rev H EVM. Performance degradation is negligible when compared
with non bounce buffer case while using UBIFS.

Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: spi-ti-qspi: Remove unused dma_dev variable</title>
<updated>2017-03-27T09:56:15Z</updated>
<author>
<name>Vignesh R</name>
<email>vigneshr@ti.com</email>
</author>
<published>2017-03-27T05:29:28Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=cb3c8e5ade3f01839ce0a9388ddc9729de4e2d6d'/>
<id>urn:sha1:cb3c8e5ade3f01839ce0a9388ddc9729de4e2d6d</id>
<content type='text'>
commit 1351aaeb50b2 ("spi: spi-ti-qspi: Use dma_engine wrapper for dma
memcpy call") introduced this warning:

drivers/spi/spi-ti-qspi.c: In function 'ti_qspi_dma_xfer':
drivers/spi/spi-ti-qspi.c:398:21: warning: unused variable 'dma_dev' [-Wunused-variable]
  struct dma_device *dma_dev = chan-&gt;device;

Fix it by removing the unused variable.

Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: spi-ti-qspi: Use dma_engine wrapper for dma memcpy call</title>
<updated>2017-03-24T18:39:53Z</updated>
<author>
<name>Vignesh R</name>
<email>vigneshr@ti.com</email>
</author>
<published>2017-03-24T06:42:15Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=1351aaeb50b2ae5eb5469b3d3d0a84073a127a39'/>
<id>urn:sha1:1351aaeb50b2ae5eb5469b3d3d0a84073a127a39</id>
<content type='text'>
Instead of calling device_prep_dma_memcpy() directly with dma_device
pointer, use the newly introduced dmaengine_prep_dma_memcpy() wrapper
API.

Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: spi-ti-qspi: Fix error handling</title>
<updated>2017-02-19T16:27:35Z</updated>
<author>
<name>Christophe JAILLET</name>
<email>christophe.jaillet@wanadoo.fr</email>
</author>
<published>2017-02-18T09:42:02Z</published>
<link rel='alternate' type='text/html' href='https://sre.ring0.de/linux/commit/?id=7abfe04c47d97243a7aeeb8fe211a15687bff67f'/>
<id>urn:sha1:7abfe04c47d97243a7aeeb8fe211a15687bff67f</id>
<content type='text'>
'dma_request_chan_by_mask()' can not return NULL.
Try to keep the logic in 'no_dma:' by resetting 'qspi-&gt;rx_chan' in case
of error.

Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
