Enables the transmission of CAN FD frames on M_CAN IP core >= v3.1.x
and with the bit rate switching.
Tested on M_CAN IP 3.1.0 (CREL = 0x31040730) of SAMA5D2 SoC.
Signed-off-by: Wenyou Yang
---
The testing is based on
[RESEND PATCH 1/1] can: m_can: fix bitrate setup on latest silicon
h
Add support to transmit the frame in the CAN FD format and with
the bit rate switching.
Tested on SAMA5D2 Xplained board.
Signed-off-by: Wenyou Yang
---
The testing is based on
[RESEND PATCH 1/1] can: m_can: fix bitrate setup on latest silicon
http://lkml.iu.edu/hypermail/linux/kernel/1702.1
Disable all interrupts when suspend, they will be enabled
when resume. Otherwise, the suspend/resume process will be
blocked occasionally.
Signed-off-by: Wenyou Yang
Acked-by: Nicolas Ferre
---
Changes in v2:
- Use fairly generic phydrv->config_intr() with
PHY_INTERRUPT_DISABLED, then c
Disable all interrupts when suspend, they will be enabled
when resume. Otherwise, the suspend/resume process will be
blocked occasionally.
Signed-off-by: Wenyou Yang
Acked-by: Nicolas Ferre
---
drivers/net/phy/micrel.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion
x27;t affect the M_CAN without configuring additional CAN clock and
its generated clock.
Wenyou Yang (2):
can: m_can: Increase delay to ensure written INIT accepted
can: m_can: Add CAN clock generated by UPLLCK support
drivers/net/can/m_can/m_can.c | 18 --
1 file change
x27;t affect the M_CAN
without configuring CAN clock and its generated clock.
Signed-off-by: Wenyou Yang
---
drivers/net/can/m_can/m_can.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index fd
Increase the delay time until the value written to INIT can be
read back to ensure that the previous value written to INIT has
been accepted.
Signed-off-by: Wenyou Yang
---
drivers/net/can/m_can/m_can.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/can