<feed xmlns='http://www.w3.org/2005/Atom'>
<title>blackbird-op-linux/drivers/net/can/spi, branch master</title>
<subtitle>Blackbird™ Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/'/>
<updated>2019-11-11T20:57:28+00:00</updated>
<entry>
<title>can: mcp251x: only reset hardware as required</title>
<updated>2019-11-11T20:57:28+00:00</updated>
<author>
<name>Timo Schlüßler</name>
<email>schluessler@krause.de</email>
</author>
<published>2019-10-11T13:38:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=8ce8c0abcba314e1fe954a1840f6568bf5aef2ef'/>
<id>urn:sha1:8ce8c0abcba314e1fe954a1840f6568bf5aef2ef</id>
<content type='text'>
This prevents unwanted glitches on the outputs when changing the link
state of the can interface or when resuming from suspend. Only if the
device is powered off during suspend it needs to be resetted as required
by the specs.

Signed-off-by: Timo Schlüßler &lt;schluessler@krause.de&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: add mcp251x_write_2regs() and make use of it</title>
<updated>2019-11-11T20:57:28+00:00</updated>
<author>
<name>Timo Schlüßler</name>
<email>schluessler@krause.de</email>
</author>
<published>2019-10-11T13:38:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=877a902103fd3ed15872a5d740fca8aa3f5fa33f'/>
<id>urn:sha1:877a902103fd3ed15872a5d740fca8aa3f5fa33f</id>
<content type='text'>
This patch introduces the function mcp251x_write_2regs() to write two
registers with one SPI transfer and converts the disabling of pending
interrupts in mcp251x_stop() to it.

Signed-off-by: Timo Schlüßler &lt;schluessler@krause.de&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: get rid of legacy platform data</title>
<updated>2019-11-11T20:57:28+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-10-08T16:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=50ec88120ea16cf8b9aabf8422c364166ce3ee17'/>
<id>urn:sha1:50ec88120ea16cf8b9aabf8422c364166ce3ee17</id>
<content type='text'>
Instead of using legacy platform data, switch to use device properties.
For clock frequency we are using well established clock-frequency property.

Users, two for now, are also converted here.

Cc: Daniel Mack &lt;daniel@zonque.org&gt;
Cc: Haojian Zhuang &lt;haojian.zhuang@gmail.com&gt;
Cc: Robert Jarzmik &lt;robert.jarzmik@free.fr&gt;
Cc: Russell King &lt;linux@armlinux.org.uk&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition</title>
<updated>2019-11-05T11:44:22+00:00</updated>
<author>
<name>Timo Schlüßler</name>
<email>schluessler@krause.de</email>
</author>
<published>2019-10-11T13:38:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=27a0e54bae09d2dd023a01254db506d61cc50ba1'/>
<id>urn:sha1:27a0e54bae09d2dd023a01254db506d61cc50ba1</id>
<content type='text'>
In mcp251x_restart_work_handler() the variable to stop the interrupt
handler (priv-&gt;force_quit) is reset after the chip is restarted and thus
a interrupt might occur.

This patch fixes the potential race condition by resetting force_quit
before enabling interrupts.

Signed-off-by: Timo Schlüßler &lt;schluessler@krause.de&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: Call wrapper instead of regulator_disable()</title>
<updated>2019-09-03T08:23:57+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-08-26T17:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=761a61591705bffb46641dfe4df4c8bb5d011ef6'/>
<id>urn:sha1:761a61591705bffb46641dfe4df4c8bb5d011ef6</id>
<content type='text'>
There is no need to check for regulator presence in the -&gt;suspend()
since a wrapper does it for us. Due to this we may unconditionally set
AFTER_SUSPEND_POWER flag.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: Make use of device property API</title>
<updated>2019-09-03T08:23:57+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-08-26T17:26:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=8de29a5c34a5ff166dc0968f409a1381266d19c9'/>
<id>urn:sha1:8de29a5c34a5ff166dc0968f409a1381266d19c9</id>
<content type='text'>
Make use of device property API in this driver so that both OF based
system and ACPI based system can use this driver.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: Use devm_clk_get_optional() to get the input clock</title>
<updated>2019-09-03T08:23:57+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2019-08-26T17:26:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=b4cb76961c953cde1c60f52d2b6d434672da82f8'/>
<id>urn:sha1:b4cb76961c953cde1c60f52d2b6d434672da82f8</id>
<content type='text'>
Simplify the code which fetches the input clock by using
devm_clk_get_optional(). This comes with a small functional change: previously
all errors were ignored when platform data is present. Now all errors are
treated as errors. If no input clock is present devm_clk_get_optional() will
return NULL instead of an error which matches the behavior of the old code.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: remove deprecated board file setup example</title>
<updated>2019-09-03T08:23:57+00:00</updated>
<author>
<name>Marc Kleine-Budde</name>
<email>mkl@pengutronix.de</email>
</author>
<published>2019-08-26T12:34:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=f6cae800bfdb6711f0d45af98643a944998be6f2'/>
<id>urn:sha1:f6cae800bfdb6711f0d45af98643a944998be6f2</id>
<content type='text'>
In the pre device-tree ARM aera there were board files that configured
the system (instead of a device tree). A "struct spi_board_info" was
used to describe the SPI bus.

As new systems should be described via device trees, this patch removes
the board setup example from the driver. The "struct
mcp251x_platform_data" cannot be removed completely, as there are still
some in-tree users of this file.

Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: Delete unnecessary checks before the macro call “dev_kfree_skb”</title>
<updated>2019-08-22T23:22:03+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2019-08-21T19:16:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=038dab7efc38254e151adbbade13b8860055d44a'/>
<id>urn:sha1:038dab7efc38254e151adbbade13b8860055d44a</id>
<content type='text'>
The dev_kfree_skb() function performs also input parameter validation.
Thus the test around the shown calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Acked-by: Sean Nyekjaer &lt;sean@geanix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>can: mcp251x: remove custom DMA mapped buffer</title>
<updated>2019-08-20T11:41:26+00:00</updated>
<author>
<name>Marc Kleine-Budde</name>
<email>mkl@pengutronix.de</email>
</author>
<published>2019-08-19T15:08:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=df58525df395561551440392d92daa6416b4f8f3'/>
<id>urn:sha1:df58525df395561551440392d92daa6416b4f8f3</id>
<content type='text'>
There is no need to duplicate what SPI core already does, i.e. mapping buffers
for DMA capable transfers. This patch removes all related pices of code.

Tested-by: Sean Nyekjaer &lt;sean@geanix.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
</feed>
