[PATCH v2] can: m_can: enable transmission of FD frame on latest version

2017-03-05 Thread Wenyou Yang
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

[PATCH] can: m_can: support transmit frame in CAN FD format

2017-03-02 Thread Wenyou Yang
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

[PATCH v2] net: phy: micrel: Add specific suspend

2016-08-04 Thread Wenyou Yang
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

[PATCH v1] net: phy: micrel: Add specific suspend

2016-08-03 Thread Wenyou Yang
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

[PATCH 0/2] can: m_can: Add CAN clock generated by UPLLCK support

2015-11-18 Thread Wenyou Yang
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

[PATCH 2/2] can: m_can: Add CAN clock generated by UPLLCK support

2015-11-18 Thread Wenyou Yang
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

[PATCH 1/2] can: m_can: Increase delay to ensure written INIT accepted

2015-11-18 Thread Wenyou Yang
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