<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/spi/spi-loopback-test.c, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2017-07-26T12:08:56Z</updated>
<entry>
<title>spi: loopback-test: implement testing with no CS</title>
<updated>2017-07-26T12:08:56Z</updated>
<author>
<name>Oleksij Rempel</name>
<email>o.rempel@pengutronix.de</email>
</author>
<published>2017-07-25T07:57:08Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8bc85a871436525cc38f819bbc122d216730e905'/>
<id>urn:sha1:8bc85a871436525cc38f819bbc122d216730e905</id>
<content type='text'>
To run spi-loopback-tests on HW without modifications, we need to
disable Chip Select. This should avoid surprising side effects for
SPI devices by testing patterns.

Signed-off-by: Oleksij Rempel &lt;o.rempel@pengutronix.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: make several module parameters static</title>
<updated>2017-07-18T13:10:01Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2017-07-18T12:42:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=59a8831da31ebdabf82cac82bf01270d215bf149'/>
<id>urn:sha1:59a8831da31ebdabf82cac82bf01270d215bf149</id>
<content type='text'>
Several module parameters are local to the source, so make them
static. Cleans up several sparse warnings such as:

"symbol 'loop_req' was not declared. Should it be static?"

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: provide loop_req option.</title>
<updated>2017-07-17T14:27:26Z</updated>
<author>
<name>Oleksij Rempel</name>
<email>o.rempel@pengutronix.de</email>
</author>
<published>2017-07-14T09:42:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f12a616e0cdee71440b72f7602825db424d37879'/>
<id>urn:sha1:f12a616e0cdee71440b72f7602825db424d37879</id>
<content type='text'>
Provide a module parameter to request internal loop by the SPI master
controller.
This should make loop testing easier without extra HW modification.

For test automation a logic analyzer is recommended for host
controller-independent verification.
An example test rig configuration and procedure:
  i.MX6S RIoRBoard           Logic Analyzer
  -----------------------------------------
  (J13  4) GND ------------- GND
  (J13  6) CSPI3-CLK ------&gt; PIN 3
  (J13  8) CSPI3-MOSI &lt;----- PIN 2
     ^ - internal loop configured by SPI_LOOP
     |   or can be user external jamper.
  (J13 10) CSPI3-MISO -----&gt; PIN 1

grab some data and decode it:
sigrok-cli -d fx2lafw --time 160000 --config samplerate=10m  \
  --channels 0-2 -o dump.sr
sigrok-cli -i dump.sr -P spi:mosi=1:clk=2 &gt; result_for_regression_tests

Signed-off-by: Oleksij Rempel &lt;o.rempel@pengutronix.de&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: Fix kfree() NULL pointer error.</title>
<updated>2017-06-28T19:16:41Z</updated>
<author>
<name>Arvind Yadav</name>
<email>arvind.yadav.cs@gmail.com</email>
</author>
<published>2017-06-20T09:30:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=704c3098e4c55a409eaf5ec89cee1bccc8d44f4c'/>
<id>urn:sha1:704c3098e4c55a409eaf5ec89cee1bccc8d44f4c</id>
<content type='text'>
Here, rx/tx allocation can fail. So avoid kvfree call
with NULL pointer.

Signed-off-by: Arvind Yadav &lt;arvind.yadav.cs@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: fix spelling mistake: "reruning" -&gt; "rerunning"</title>
<updated>2017-06-28T19:03:09Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2017-06-26T13:42:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=478de2ba0d2dafcd460b17f032139e2b6b4eb1ac'/>
<id>urn:sha1:478de2ba0d2dafcd460b17f032139e2b6b4eb1ac</id>
<content type='text'>
trivial fix to spelling mistake in dev_info error message

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'spi/topic/spidev', 'spi/topic/spidev-test', 'spi/topic/sunxi', 'spi/topic/tegra' and 'spi/topic/test' into spi-next</title>
<updated>2017-04-26T14:58:16Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2017-04-26T14:58:16Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d8f520727f769164fa6ff0ad4a4d965336966999'/>
<id>urn:sha1:d8f520727f769164fa6ff0ad4a4d965336966999</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: loopback-test: fix spelling mistake: "minimam" -&gt; "minimum"</title>
<updated>2017-03-30T10:15:53Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2017-03-30T10:01:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=905e0b5ef9690c5433b642f46f1d756bb374da17'/>
<id>urn:sha1:905e0b5ef9690c5433b642f46f1d756bb374da17</id>
<content type='text'>
trivial fix to spelling mistake in dev_err error message

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: fix potential integer overflow on multiple</title>
<updated>2017-03-20T16:11:39Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2017-03-20T13:58:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d2c14c64d678713fced6f2261ce7d398b4351de5'/>
<id>urn:sha1:d2c14c64d678713fced6f2261ce7d398b4351de5</id>
<content type='text'>
A multiplication of 8U * xfer-len with the type of a 32 bit unsigned int
is evaluated using 32 bit arithmetic and then used in a context that
expects an expression of type unsigned long long (64 bits).  Avoid any
potential overflow by casting BITS_PER_BYTE to unsigned long long.

Detected by CoverityScan, CID#1419691 ("Unintentional integer overflow")

Fixes: ea9936f324356 ("spi: loopback-test: add elapsed time check")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: add test spi_message with delay after transfers</title>
<updated>2017-03-17T21:54:12Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2017-03-17T18:17:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8687113e1515f4c9104a6eaedc384ec762c6550f'/>
<id>urn:sha1:8687113e1515f4c9104a6eaedc384ec762c6550f</id>
<content type='text'>
This adds a new test to check whether the spi_transfer.delay_usecs
setting has properly taken effect.

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>spi: loopback-test: add elapsed time check</title>
<updated>2017-03-17T21:54:08Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2017-03-17T18:17:30Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ea9936f32435699907807aaac87f993482208578'/>
<id>urn:sha1:ea9936f32435699907807aaac87f993482208578</id>
<content type='text'>
This adds checks whether the elapsed time is longer than the minimam
estimated time.  The estimated time is calculated with the total
transfer length per clock rate and optional spi_transfer.delay_usecs.

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
