All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
	Stephane Grosjean <s.grosjean@peak-system.com>
Subject: Re: [PATCH v2] can: remove CAN FD compatibility for CAN 2.0 sockets
Date: Mon, 03 Mar 2014 14:55:49 +0100	[thread overview]
Message-ID: <531489E5.203@pengutronix.de> (raw)
In-Reply-To: <5311EF59.6060200@hartkopp.net>

[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]

On 03/01/2014 03:31 PM, Oliver Hartkopp wrote:
> In commit e2d265d3b587 (canfd: add support for CAN FD in CAN_RAW sockets)
> CAN FD frames with a payload length up to 8 byte are passed to legacy
> sockets where the CAN FD support was not enabled by the application.
> 
> After some discussions with developers at a fair this well meant feature
> leads to confusion as no clean switch for CAN / CAN FD is provided to the
> application programmer. Additionally a compatibility like this for legacy
> CAN_RAW sockets requires some compatibility handling for the sending, e.g.
> make CAN2.0 frames a CAN FD frame with BRS at transmission time (?!?).
> 
> This will become a mess when people start to develop applications with
> real CAN FD hardware. This patch reverts the bad compatibility code
> together with the documentation describing the removed feature.
> 
> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
> Acked-by: Stephane Grosjean <s.grosjean@peak-system.com> 

Thx, applied to can and included in my latest pull request.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

  reply	other threads:[~2014-03-03 13:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-01 14:31 [PATCH v2] can: remove CAN FD compatibility for CAN 2.0 sockets Oliver Hartkopp
2014-03-03 13:55 ` Marc Kleine-Budde [this message]
2014-03-03 16:27   ` Oliver Hartkopp
2014-03-03 16:29     ` Marc Kleine-Budde

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=531489E5.203@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=s.grosjean@peak-system.com \
    --cc=socketcan@hartkopp.net \
    /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.