Received: by 10.213.65.68 with SMTP id h4csp1184952imn; Wed, 14 Mar 2018 12:08:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELukFH3bLJZAU12uCuoT2BAZbWWEdsLJ3t9KXD3tpJWh8ZP6vQ1eCnls3SYeWcnCIw4DPr5E X-Received: by 10.99.119.9 with SMTP id s9mr3811639pgc.276.1521054539835; Wed, 14 Mar 2018 12:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521054539; cv=none; d=google.com; s=arc-20160816; b=Ii4xxc4HMjpKy0cO5mgrn6A3CQXJd5In6PQf0B9CDtp9/dycIdL3nm8W0ZUL4NR48y V0PSKjm3XXL6UmS/dw/p3Q1HlEppBEoDbcrn473OjtKRmBt9ILeQQXBuRxt3AXVhm6lL 0Ln24nD5xvGMxeJrfgMhJNNHMDmu7GtWzNIpRnj9VE5vzylARE2R3czR+GSxmT0bmqkU Jbvb1nivz0VYFw4i56sNq+T5jliT2Mb0HHfmvxtXjTr0jS8VXAy+6pLkBv3AS1Co7Kwi vnj/2mDs3+vXVtRmsdunCQyqUA/jV5DgvnBmhN11uu08Hw/hG+lRdwSJr5DxeQ7Rt90g gYTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=vGpu8MYidDBwNSJBvWqtn6lG0ZtwGHL4Juz9BTh4SEk=; b=z/CW8tf56pbl3AauQcuCLmwogKfrd5IuC8c7iH8PrL0glC+TcfEdhAYcoQyPuavNgQ UFLPuAeQZTfdOan4UiL+FU3MJi8irgfe6rPLWbkr3SjsKcqL9nj8E7cTKrfh6qlvJFVr XTcb/KrMrDBzauWPWGNlGwwitQ6zp35uEC3bUfvh3h2AuRUGy9qFPttjVNZhepb8OC3L +YmItxT7aayncpftjzv+U0YfszURyN+TroCYxD+s9tZ3HXhvlimxzDjfLIvdyeqMVym8 pjotT7ZK6r1zlFIvzda24Uagwm3dJ+q6DqBzDrT39zdgeWzW+ndjw94kPfUClviFt+jP zVzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si1383637pgn.564.2018.03.14.12.08.44; Wed, 14 Mar 2018 12:08:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753AbeCNTHv (ORCPT + 99 others); Wed, 14 Mar 2018 15:07:51 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:52820 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbeCNTHu (ORCPT ); Wed, 14 Mar 2018 15:07:50 -0400 Received: from [86.59.122.178] (port=57883 helo=ju27.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ewBkZ-000101-7D; Wed, 14 Mar 2018 20:07:47 +0100 Subject: Re: [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN devices To: Wolfgang Grandegger Cc: Martin Elshuber , Philipp Tomsich , Marc Kleine-Budde , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180313173520.21257-1-jakob.unterwurzacher@theobroma-systems.com> <20180313173520.21257-2-jakob.unterwurzacher@theobroma-systems.com> <03024ab7-5386-3bcf-76f2-ef2e0e9e7a78@theobroma-systems.com> <68564c40-396b-9081-8534-67fe96a6fb3f@grandegger.com> <92e559b1-d392-015e-1aa1-0497cbd4c071@grandegger.com> <5b3df9d5-3e65-1114-4b51-9dcc329cbc31@theobroma-systems.com> From: Jakob Unterwurzacher Message-ID: <1bd41545-facb-9314-005b-4e742c4c61da@theobroma-systems.com> Date: Wed, 14 Mar 2018 20:07:46 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.03.18 11:04, Wolfgang Grandegger wrote: >>> (000.000443) can0 20000034 [8] 00 0C 00 00 00 00 78 00 ERRORFRAME >>> controller-problem{rx-error-warning,tx-error-warning} >>> transceiver-status >>> no-acknowledgement-on-tx >>> error-counter-tx-rx{{120}{0}} >>> (000.000444) can0 20000034 [8] 00 3C 00 00 00 00 80 00 ERRORFRAME >>> controller-problem{rx-error-warning,tx-error-warning,rx-error-passive,tx-error-passive} > > Just, > > controller-problem{rx-error-passive,tx-error-passive} >[...] > > Back to error active is missing!? That was indeed missing. We have fixed the missing back-to-error-active in our firmware. Also, we no longer send the controller status in every error frame, but only on state changes (see below) which seems to be how other drivers are handling things. Thanks, Jakob *** test output *** Disconnect cable, send one frame > root@rk3399-q7:~# candump -td -e any,0:0,#FFFFFFFF | head -n 100 > (000.000000) can0 6E7 [2] 7A F9 > (000.000558) can0 20000030 [8] 00 00 00 00 00 00 08 00 ERRORFRAME > transceiver-status > no-acknowledgement-on-tx > error-counter-tx-rx{{8}{0}} [...] > (000.000567) can0 20000034 [8] 00 0C 00 00 00 00 60 00 ERRORFRAME > controller-problem{rx-error-warning,tx-error-warning} > transceiver-status > no-acknowledgement-on-tx > error-counter-tx-rx{{96}{0}} [...] > (000.000527) can0 20000034 [8] 00 30 00 00 00 00 80 00 ERRORFRAME > controller-problem{rx-error-passive,tx-error-passive} > transceiver-status > no-acknowledgement-on-tx > error-counter-tx-rx{{128}{0}} [...] Reconnect cable > (000.000687) can1 6E7 [2] 7A F9 > (000.000015) can0 20000004 [8] 00 0C 00 00 00 00 7F 00 ERRORFRAME > controller-problem{rx-error-warning,tx-error-warning} > error-counter-tx-rx{{127}{0}} Send more frames > (046.485245) can0 61B [2] E2 D8 > (000.000621) can1 61B [2] E2 D8 [...] > (000.199224) can0 3E6 [0] > (000.000477) can1 3E6 [0] > (000.000044) can0 20000004 [8] 00 40 00 00 00 00 5F 00 ERRORFRAME > controller-problem{back-to-error-active} > error-counter-tx-rx{{95}{0}}