From: Stephane Grosjean <s.grosjean@peak-system.com>
To: Oliver Hartkopp <socketcan@hartkopp.net>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: [PATCH RFC] can fd: Add separate bittiming infrastructure
Date: Fri, 17 Jan 2014 08:44:00 +0100 [thread overview]
Message-ID: <52D8DF40.7050405@peak-system.com> (raw)
In-Reply-To: <52D6CB48.9010206@hartkopp.net>
Hi,
Some questions:
Le 15/01/2014 18:54, Oliver Hartkopp a écrit :
> diff --git a/include/uapi/linux/can/netlink.h b/include/uapi/linux/can/netlink.h
> index df944ed..bd0493a2 100644
> --- a/include/uapi/linux/can/netlink.h
> +++ b/include/uapi/linux/can/netlink.h
> @@ -96,6 +96,7 @@ struct can_ctrlmode {
> #define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */
> #define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
> #define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
> +#define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */
- What is exactly the goal of this new CAN_CTRLMODE_FD please? Did you
define it to allow user to enable the CANFD function into the hardware,
for example? If yes, isn't it redundant with setting the MTU to 72 bytes?
- Moreover, how a CANFD -able driver has to handle a CANFD frame read
from the CANFD controller, when its network device MTU *ISNOT* == 72 ???
Should it discard the CANFD frame?
>
> /*
> * CAN device statistics
> @@ -122,6 +123,9 @@ enum {
> IFLA_CAN_RESTART_MS,
> IFLA_CAN_RESTART,
> IFLA_CAN_BERR_COUNTER,
> + IFLA_CAN_DATA_BITTIMING,
> + IFLA_CAN_DATA_BITTIMING_CONST,
> + IFLA_CAN_DATA_CLOCK,
> __IFLA_CAN_MAX
> };
- by defining another clock for the data bitrate, do you suppose that
some hardwares could use different clocks for both arbitration and data
bitrates?
Regards,
Stéphane
--
PEAK-System Technik GmbH, Otto-Roehm-Strasse 69, D-64293 Darmstadt
Geschaeftsleitung: A.Gach/U.Wilhelm,St.Nr.:007/241/13586 FA Darmstadt
HRB-9183 Darmstadt, Ust.IdNr.:DE 202220078, WEE-Reg.-Nr.: DE39305391
Tel.+49 (0)6151-817320 / Fax:+49 (0)6151-817329, info@peak-system.com
next prev parent reply other threads:[~2014-01-17 7:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 17:54 [PATCH RFC] can fd: Add separate bittiming infrastructure Oliver Hartkopp
2014-01-16 16:30 ` Marc Kleine-Budde
2014-01-17 7:44 ` Stephane Grosjean [this message]
2014-01-18 17:34 ` Oliver Hartkopp
2014-01-21 8:42 ` Stephane Grosjean
2014-01-21 9:56 ` Oliver Hartkopp
2014-01-21 10:22 ` [RFC] can fd: backward compatibility for CANFD8 Oliver Hartkopp
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=52D8DF40.7050405@peak-system.com \
--to=s.grosjean@peak-system.com \
--cc=linux-can@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).