<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/net/can/m_can, branch master</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2017-05-18T08:32:48+00:00</updated>
<entry>
<title>can: m_can: add deep Suspend/Resume support</title>
<updated>2017-05-18T08:32:48+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@free-electrons.com</email>
</author>
<published>2017-05-05T13:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d14ccea0e71a55ad02bf4e1cb378bbece282d5cf'/>
<id>urn:sha1:d14ccea0e71a55ad02bf4e1cb378bbece282d5cf</id>
<content type='text'>
This adds Power Management deep Suspend/Resume support for Bosch M_CAN
chip.

When entering deep sleep, the clocks are gated, the interrupts are
disabled. When resuming from deep sleep, the chip needs to be
reinitialized, the clocks ungated and the interrupts enabled.

Signed-off-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: factorize clock gating and ungating</title>
<updated>2017-05-18T08:32:48+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@free-electrons.com</email>
</author>
<published>2017-05-05T13:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=ef7b8aa8ca4acdd0541c622230de93bb3389ef41'/>
<id>urn:sha1:ef7b8aa8ca4acdd0541c622230de93bb3389ef41</id>
<content type='text'>
This creates a function to ungate M_CAN clocks and another to gate the
same clocks, then swaps all gating/ungating code with their respective
function.

Signed-off-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: make m_can_start and m_can_stop symmetric</title>
<updated>2017-05-18T08:32:48+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@free-electrons.com</email>
</author>
<published>2017-05-05T13:50:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=8a3f3f24a829c80d8d451e75e887912c3905dfd0'/>
<id>urn:sha1:8a3f3f24a829c80d8d451e75e887912c3905dfd0</id>
<content type='text'>
This moves clocks gating outside of the m_can_stop function as the
m_can_start function does not (and cannot, at least in current
implementation) ungate clocks. This way, both functions can now be used
symmetrically.

Signed-off-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: move Message RAM initialization to function</title>
<updated>2017-05-18T08:32:48+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@free-electrons.com</email>
</author>
<published>2017-05-05T13:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=6a792e8158a2597418a0833c7e350328e209f318'/>
<id>urn:sha1:6a792e8158a2597418a0833c7e350328e209f318</id>
<content type='text'>
To avoid possible ECC/parity checksum errors when reading an
uninitialized buffer, the entire Message RAM is initialized when probing
the driver. This initialization is done in the same function reading the
Device Tree properties.

This patch moves the RAM initialization to a separate function so it can
be called separately from device initialization from Device Tree.

Signed-off-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Enable TX FIFO Handling for M_CAN IP version &gt;= v3.1.x</title>
<updated>2017-04-25T07:00:48+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=10c1c3975a6663375b38e67949722ba029201395'/>
<id>urn:sha1:10c1c3975a6663375b38e67949722ba029201395</id>
<content type='text'>
* Added defines for TX Event FIFO Element
* Adapted ndo_start_xmit function.
  For versions &gt;= v3.1.x it uses the TX FIFO to optimize the data
  throughput. It stores the echo skb at the same index as in the
  M_CAN's TX FIFO. The frame's message marker is set to this index.
  This message marker is received in the TX Event FIFO after
  the message was successfully transmitted. It is used to echo the
  correct echo skb back to the network stack.
* Added m_can_echo_tx_event function. It reads all received
  message markers in the TX Event FIFO and loops back the
  corresponding echo skbs.
* ISR checks for new TX Event Entry interrupt for version &gt;= 3.1.x.

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Reviewed-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Configuration for TX and TX event FIFOs</title>
<updated>2017-04-25T07:00:48+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=428479e4714ce786629a009c66b4340a3ba651ce'/>
<id>urn:sha1:428479e4714ce786629a009c66b4340a3ba651ce</id>
<content type='text'>
* TX/TX Event FIFO sizes are configured for version &gt;= v3.1.x

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Enable M_CAN version dependent initialization</title>
<updated>2017-04-25T07:00:47+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=b03cfc5bb0e11f88988e5da2805867e468d03ca1'/>
<id>urn:sha1:b03cfc5bb0e11f88988e5da2805867e468d03ca1</id>
<content type='text'>
This patch adapts the initialization of the M_CAN. So it can be used
with all versions &gt;= 3.0.x.

Changes:
* Added version element to m_can_priv structure to hold M_CAN version.
* Renamed bittiming structs for version 3.0.x
* Added new bittiming structs for version &gt;= 3.1.x
* Function alloc_m_can_dev takes 2 new arguments. The TX FIFO size and the
  base address of the module.
* Chip configuration for CAN_CTRLMODE_LOOPBACK is changed: Enabled
  CCCR_MON bit. In combination with TEST_LBCK it activates the internal
  loopback mode. Leaving CCCR_MON '0' results in external loopback mode.
* Clocks are temporarily enabled by platform_propbe function in order to
  allow read access to the Core Release register and the Control Register.
  Registers are used to detect M_CAN version and optional Non-ISO Feature.

Initialization of M_CAN for version &gt;= 3.1.x:
* TX FIFO of M_CAN is used to transmit frames. The driver does not need to
  stop the tx queue after each frame sent.
* Initialization of TX Event FIFO is added.
* NON-ISO is fixed for all M_CAN versions &lt; 3.2.x. Version 3.2.x _can_ have
  the NISO (Non-ISO) bit which can switch the mode of the M_CAN to Non-ISO
  mode. This bit does not have to be writeable. Therefore it is checked.
  If it is writable Non-ISO support is added to the controllers supported
  CAN modes.

New Functions:
* Function to check the Core Release version. The read value determines the
  behaviour of the driver.
* Function to check if the NISO bit for version &gt;= 3.2.x is implemented.

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Reviewed-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Updated register defines to newest version</title>
<updated>2017-04-25T07:00:47+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=5e1bd15a3767b2962595698e849ab59936ce6c33'/>
<id>urn:sha1:5e1bd15a3767b2962595698e849ab59936ce6c33</id>
<content type='text'>
* Updated register defines to newest M_CAN version (v3.2.1).
* Changed defines in the whole code.

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Reviewed-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Removed virtual address from print</title>
<updated>2017-04-25T07:00:46+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=ee8c3f6f75671c9172133636aebabf14dbc80066'/>
<id>urn:sha1:ee8c3f6f75671c9172133636aebabf14dbc80066</id>
<content type='text'>
The virtual address of the device was printed. I removed it because it
leaks internal information.

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>can: m_can: Removed initialization of FIFO water marks</title>
<updated>2017-04-25T07:00:46+00:00</updated>
<author>
<name>Mario Huettel</name>
<email>mario.huettel@gmx.net</email>
</author>
<published>2017-04-08T12:10:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=8f265895df44148135ee545f406de76d669dbfd9'/>
<id>urn:sha1:8f265895df44148135ee545f406de76d669dbfd9</id>
<content type='text'>
FIFO water marks disabled because the driver doesn't handle water mark
events.

Signed-off-by: Mario Huettel &lt;mario.huettel@gmx.net&gt;
Reviewed-by: Oliver Hartkopp &lt;socketcan@hartkopp.net&gt;
Tested-by: Quentin Schulz &lt;quentin.schulz@free-electrons.com&gt;
Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
</content>
</entry>
</feed>
