From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mirza Krak Subject: Re: [PATCH v2 2/2] can: flexcan: adding platform specific details for LS1021A Date: Fri, 1 Dec 2017 11:12:56 +0100 Message-ID: References: <1510307990-15418-1-git-send-email-pankaj.bansal@nxp.com> <343d8c69-a01a-5ff7-75a2-99523391f97c@grandegger.com> <3e201945af364c5a8a92dd6a931f4448@SGPMBX1017.APAC.bosch.com> <54c6924f-1aac-342e-d1f8-af175a33268e@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-qk0-f196.google.com ([209.85.220.196]:42042 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666AbdLAKM6 (ORCPT ); Fri, 1 Dec 2017 05:12:58 -0500 Received: by mail-qk0-f196.google.com with SMTP id a71so12440311qkc.9 for ; Fri, 01 Dec 2017 02:12:57 -0800 (PST) In-Reply-To: Sender: linux-can-owner@vger.kernel.org List-ID: To: Marc Kleine-Budde Cc: Wolfgang Grandegger , "ZHU Yi (ST-FIR/ENG1-Zhu)" , Pankaj Bansal , "linux-can@vger.kernel.org" , Varun Sethi , Poonam Aggrwal , Stefan Agner 2017-11-28 23:11 GMT+01:00 Mirza Krak : > 2017-11-28 23:09 GMT+01:00 Mirza Krak : >> 2017-11-27 15:00 GMT+01:00 Marc Kleine-Budde : >>> >>> On 11/26/2017 10:11 PM, Mirza Krak wrote: >>> >>> Will try again next week when I am back at the office. >>> >>> >>> >>> I ran my tests on 4.14 kernel. >>> >> >>> >> This Flexcan core needs the FLEXCAN_QUIRK_BROKEN_PERR_STATE as well, >>> >> like >>> >> all other cores. Adding that quirk for the vf610 will cure the >>> >> problems. >>> > >>> > I will probably get some time during the coming week to test adding >>> > FLEXCAN_QUIRK_BROKEN_PERR_STATE and I can send a patch if it all look= s >>> > good. >>> >>> I've created a patch, waiting for your Tested-by. >>> >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can.git/log/?= h=3Dtesting Tested-by: Mirza Krak Test results: 1. Not connected and then connected root@colibri-vf:~# ./candump -td -e any,0:0,#FFFFFFFF (000.000000) can0 20000004 [8] 00 04 00 00 00 00 00 00 ERRORFRAM= E controller-problem{rx-error-warning} (000.000120) can0 20000004 [8] 00 10 00 00 00 00 00 00 ERRORFRAM= E controller-problem{rx-error-passive} And I also get the following: (000.000011) can0 20000004 [8] 00 04 00 00 00 00 00 00 ERRORFRAM= E controller-problem{rx-error-warning} and (000.000008) can0 20000004 [8] 00 40 00 00 00 00 00 00 ERRORFRAME controller-problem{back-to-error-active} When I re-connect to the network. 2. Short on CAN_H and CAN_L root@colibri-vf:~# ./candump -td -e any,0:0,#FFFFFFFF (000.000000) can0 20000004 [8] 00 08 00 00 00 00 00 00 ERRORFRAM= E controller-problem{tx-error-warning} (000.000043) can0 20000004 [8] 00 20 00 00 00 00 00 00 ERRORFRAM= E controller-problem{tx-error-passive} (000.000745) can0 20000040 [8] 00 00 00 00 00 00 00 00 ERRORFRAM= E bus-off (000.100306) can0 20000100 [8] 00 00 00 00 00 00 00 00 ERRORFRAM= E restarted-after-bus-off (000.111280) can0 20000004 [8] 00 08 00 00 00 00 00 00 ERRORFRAM= E controller-problem{tx-error-warning} (000.000034) can0 20000004 [8] 00 20 00 00 00 00 00 00 ERRORFRAM= E controller-problem{tx-error-passive} (000.000759) can0 20000040 [8] 00 00 00 00 00 00 00 00 ERRORFRAM= E bus-off --=20 Med V=C3=A4nliga H=C3=A4lsningar / Best Regards Mirza Krak