Received: by 10.213.65.68 with SMTP id h4csp861265imn; Wed, 14 Mar 2018 02:15:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELvkiyuxUgqmbByfwugWJuysnlQoLvNJoqm5GWThwN8khqaBJSu0+0lEId4fqdw/dpun0mS8 X-Received: by 2002:a17:902:8697:: with SMTP id g23-v6mr3451912plo.393.1521018934965; Wed, 14 Mar 2018 02:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521018934; cv=none; d=google.com; s=arc-20160816; b=LR7LbjPbaQIS2u51/gILUCt22wguhKNEkeAJ+CesaYc0QiKPtlqZgM0MfHSRbsau+o M/AIhFq4d8LshunYNdb3+PufAHD41g7S0L9Sjhqy/1DBIQy87Xv/u7Tz2FUjGQfMXKZp ODgwiCyjK6slamjKntR0vW4atUFr0iYivrCPPqjEIB837jQEiKI0s1TAY/T4/2qBz0Il ACUUVIPt4zl/tUAPob+NyHQCamfx+pzt5HbwVorLuv0Ky+WVDCte7fArV3MWrocbtPa/ M5O6uYHBSAU3SlR8ydT2j4q94mBJy4ewTzH3mCvQ4DG83gkpuiK3JSU71yOIcT/C43Th MHUQ== 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=uKPskZ9Ef92SQbE1YVoL9I+rSuHvOJBhNd1yKKjnlGA=; b=TSpCCHvpXCInp9w1udR1tBTX/YgMEOrR3/V1LZX5opEn5kkuywIeUK6z4nYp75KBAG YCIu85Wanehx8o+TYUpRdLOqVs+lyymWFFwUnuVjwCdIGJGjjyFZqPvXgAtKYAonhNdt OgSJW7qb0VdPdabLj7dzBi6yOKFrUteTwzNsvSsIwdxZBTfd95G2bmdF7d2LjuG6s8Qt RMYInb0VP/tvtDlQtsIUjwOGebeMP5wNM2CCIa7EEgx4N7PzO9Aa0RUj2+Imu90yo7sK dsyzx6ZW9eMXno59tQcNLKCRCalOIyjLncAWhSLUVaTBXRKQyQwP2IEyV4SEfT5OZeH6 Zoxg== 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 b10-v6si1652491plx.355.2018.03.14.02.15.20; Wed, 14 Mar 2018 02:15:34 -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 S1751527AbeCNJO3 (ORCPT + 99 others); Wed, 14 Mar 2018 05:14:29 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:53789 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbeCNJO2 (ORCPT ); Wed, 14 Mar 2018 05:14:28 -0400 Received: from [86.59.122.178] (port=55827 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 1ew2UM-0000Fq-7s; Wed, 14 Mar 2018 10:14:26 +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> From: Jakob Unterwurzacher Message-ID: <03024ab7-5386-3bcf-76f2-ef2e0e9e7a78@theobroma-systems.com> Date: Wed, 14 Mar 2018 10:14:25 +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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.03.18 10:11, Wolfgang Grandegger wrote: >> +    /* handle error frames */ >> +    canid = le32_to_cpu(m->msg.can_msg.id); >> +    if (canid & CAN_ERR_FLAG) { >> +        ucan_handle_error_frame(up, m, canid); >> +        /* drop frame if berr-reporting is off */ >> +        if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) >> +            return; >> +    } > > You still do not generate error messages for state changes, IIUC. The hardware generates error frames on state changes - is that what you mean? In our testing, the state shows up (and updates) correctly in ip -details -statistics link show can0 Best regards, Jakob