From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: [RFC] [PATCH v4] can: fix handling of unmodifiable configuration options
Date: Mon, 21 Mar 2016 16:25:01 +0100 [thread overview]
Message-ID: <56F0124D.9040008@hartkopp.net> (raw)
In-Reply-To: <SG2PR06MB10384D5560A346BFF451F61DC38F0@SG2PR06MB1038.apcprd06.prod.outlook.com>
On 03/21/2016 04:19 PM, Ramesh Shanmugasundaram wrote:
>> The only thing I was not sure about when forcing static ctrlmodes to be
>> set was the fact that you would need to set fd-non-iso for the MCAN
>> controller setup - even when you only configure it for CAN2.0 traffic:
>>
>> ip link set can0 type can bitrate 100000 -> ok
>>
>> ip link set can0 type can bitrate 100000 one-shot on -> fail
>
> Oh! I checked for M_CAN but only the config above this. Good that you spotted.
>
>>
>> ip link set can0 type can bitrate 100000 one-shot on fd-non-iso on -> ok
>>
>> To be consistent with 'static ctrlmodes have to be provided' it looks ok.
>> But from a CAN2.0 perspective it looks confusing.
>
> Definitely.
>
>>
>> I wonder if it makes sense to handle this *special* case not to force fd-
>> non-iso when the controller won't get into FD mode. What do you think?
>
> Yes, I agree. Non-ISO only mode will eventually phase out and having a "special" case for this sounds logical.
>
Ok. I'll put this special handling into can_changelink() and will post
an update (v5).
Thanks,
Oliver
prev parent reply other threads:[~2016-03-21 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-19 8:07 [RFC] [PATCH v4] can: fix handling of unmodifiable configuration options Oliver Hartkopp
2016-03-21 8:37 ` Ramesh Shanmugasundaram
2016-03-21 14:54 ` Oliver Hartkopp
2016-03-21 15:19 ` Ramesh Shanmugasundaram
2016-03-21 15:25 ` 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=56F0124D.9040008@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=ramesh.shanmugasundaram@bp.renesas.com \
/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.