From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801AbbAUMDJ (ORCPT ); Wed, 21 Jan 2015 07:03:09 -0500 Received: from pluto.manitu.net ([217.11.48.9]:45589 "EHLO pluto.manitu.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751645AbbAUMC7 (ORCPT ); Wed, 21 Jan 2015 07:02:59 -0500 X-Greylist: delayed 539 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 Jan 2015 07:02:58 EST To: Andri Yngvason Subject: Re: [PATCH v5 2/5] can: =?UTF-8?Q?kvaser=5Fusb=3A=20Consolidate?= =?UTF-8?Q?=20and=20unify=20state=20change=20handling?= X-PHP-Originating-Script: 1000:func.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 21 Jan 2015 12:53:58 +0100 From: Wolfgang Grandegger Cc: "Ahmed S. Darwish" , Olivier Sobrie , Oliver Hartkopp , Marc Kleine-Budde , Linux-CAN , netdev , LKML In-Reply-To: <20150121103319.14511.57709@shannon> References: <20141223154654.GB6460@vivalin-002> <20150120214409.GA16828@linux> <20150120214537.GB16828@linux> <20150121103319.14511.57709@shannon> Message-ID: User-Agent: RoundCube Webmail/0.2-beta Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jan 2015 10:33:19 +0000, Andri Yngvason wrote: > Quoting Ahmed S. Darwish (2015-01-20 21:45:37) >> From: Ahmed S. Darwish >> >> Replace most of the can interface's state and error counters >> handling with the new can-dev can_change_state() mechanism. >> >> Suggested-by: Andri Yngvason >> Signed-off-by: Ahmed S. Darwish >> --- >> drivers/net/can/usb/kvaser_usb.c | 114 >> +++++++++++++++++++-------------------- >> 1 file changed, 55 insertions(+), 59 deletions(-) >> >> diff --git a/drivers/net/can/usb/kvaser_usb.c >> b/drivers/net/can/usb/kvaser_usb.c >> index 971c5f9..0386d3f 100644 >> --- a/drivers/net/can/usb/kvaser_usb.c >> +++ b/drivers/net/can/usb/kvaser_usb.c ... > > Looks good. Would be nice to see some "candump" traces as well. Ahmed, could you please generate such traces doing: 1. Execute in a session: # candump -t d -e any,0:0,#FFFFFFFF 2. Execute in another session: # cangen -g 10 -D i can0 3. Disconnect the CAN cable 4. After a while reconnect the CAN cable 5. Stop candump and save the trace. and to test bus-off: 1. Execute in a session: # candump -t d -e any,0:0,#FFFFFFFF 2. Execute in another session: # cangen -g 10 -D i can0 3. Short-circuit the CAN low and high wires of the CAN cable 4. After a while remove the short-circuit. 5. Stop candump and save the trace. Thanks, Wolfgang.