All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Kurt Van Dijck <kurt.van.dijck@eia.be>
Cc: linux-can@vger.kernel.org
Subject: Re: [PATCH v4 7/7] can: add bittiming check at interface open for CAN FD
Date: Wed, 26 Feb 2014 21:35:57 +0100	[thread overview]
Message-ID: <530E502D.2060601@hartkopp.net> (raw)
In-Reply-To: <20140226195208.GA10876@vandijck-laurijssen.be>

On 26.02.2014 20:52, Kurt Van Dijck wrote:

>> +	/* For CAN FD the data bitrate has to be >= the arbitration bitrate */
>> +	if ((priv->ctrlmode_supported & CAN_CTRLMODE_FD) &&
>> +	    (!priv->data_bittiming.tq || !priv->data_bittiming.bitrate ||
>> +	     (priv->data_bittiming.bitrate < priv->bittiming.bitrate))) {
> 
> This prevents to configure a data bitrate slower than the arbitration bitrate.
> Such configuration is useless, but is it really "incorrect" or wrong?

Yes it is.

There was a definition that the data bitrate has to be greater or equal the
arbitration bitrate.

In the Bosch whitepaper about CAN FD Florian Hartwich always states about the
higher bitrate - but at least the data bitrate must not be lower than the
arbitration bitrate.

Regards,
Oliver


      reply	other threads:[~2014-02-26 20:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 18:56 [PATCH v4 0/7] Add CAN FD infrastructure for CAN driver Oliver Hartkopp
2014-02-21 18:56 ` [PATCH v4 1/7] can: preserve skbuff protocol in can_put_echo_skb Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 2/7] can: netlink send bittiming data only when a bitrate is available Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 3/7] can: provide a separate bittiming_const parameter to bittiming functions Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 4/7] can: introduce the data bitrate configuration for CAN FD Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 5/7] can: allow to change the device mtu for CAN FD capable devices Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 6/7] can: fix bitrate check semantics at interface open time Oliver Hartkopp
2014-02-21 18:57 ` [PATCH v4 7/7] can: add bittiming check at interface open for CAN FD Oliver Hartkopp
2014-02-22 18:25   ` Oliver Hartkopp
2014-02-26 19:52   ` Kurt Van Dijck
2014-02-26 20:35     ` Oliver Hartkopp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530E502D.2060601@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=kurt.van.dijck@eia.be \
    --cc=linux-can@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.