From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Oliver Hartkopp <socketcan@hartkopp.net>, linux-can@vger.kernel.org
Subject: Re: [PATCH v5 4/6] can: introduce the data bitrate configuration for CAN FD
Date: Fri, 28 Feb 2014 13:52:15 +0100 [thread overview]
Message-ID: <5310867F.8060503@pengutronix.de> (raw)
In-Reply-To: <53108210.6070700@hartkopp.net>
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
On 02/28/2014 01:33 PM, Oliver Hartkopp wrote:
>
>
> On 28.02.2014 13:30, Marc Kleine-Budde wrote:
>> On 02/28/2014 01:20 PM, Oliver Hartkopp wrote:
>>>
>>>
>>> On 28.02.2014 11:56, Marc Kleine-Budde wrote:
>>>> On 02/27/2014 07:05 PM, Oliver Hartkopp wrote:
>>>>> On 27.02.2014 09:43, Marc Kleine-Budde wrote:
>>>>>
>>>>>>> + if (priv->do_set_data_bittiming) {
>>>
>>>
>>>>
>>>>> The bitrate is always set via do_set[_data]_bittiming() when the interface is
>>>>> down - and *not* during the open process.
>>>>
>>>> No, not _always_. The flexcan and at91 drivers (maybe others, too) write
>>>> the values during open().
>>>
>>> flexcan does not assign priv->do_set_bittiming() and does the bitrate setting
>>> at open time.
>>>
>>> Thats ok too.
>>>
>>> This is up to the driver, whether do_set[_data]_bittiming() is assigned and
>>> when the stuff in the bitrate structures is set into the registers.
>>>
>>> I don't understand your problem.
>>
>> A new do_set_data_bittiming() callback is not needed, as it's better do
>> set the data and "normal" bit timing registers during open().
>
> With this argumentation do_set_bittiming() has to be removed too.
>
> Is this your intention?
Yes. But it's in many drivers so let's keep it, for now.
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 --]
next prev parent reply other threads:[~2014-02-28 12:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 22:10 [PATCH v5 0/6] Add CAN FD infrastructure for CAN driver Oliver Hartkopp
2014-02-26 22:10 ` [PATCH v5 1/6] can: preserve skbuff protocol in can_put_echo_skb Oliver Hartkopp
2014-02-26 22:10 ` [PATCH v5 2/6] can: only send bitrate data via netlink when available Oliver Hartkopp
2014-02-26 22:10 ` [PATCH v5 3/6] can: provide a separate bittiming_const parameter to bittiming functions Oliver Hartkopp
2014-02-26 22:11 ` [PATCH v5 4/6] can: introduce the data bitrate configuration for CAN FD Oliver Hartkopp
2014-02-27 8:43 ` Marc Kleine-Budde
2014-02-27 18:05 ` Oliver Hartkopp
2014-02-28 10:56 ` Marc Kleine-Budde
2014-02-28 12:20 ` Oliver Hartkopp
2014-02-28 12:30 ` Marc Kleine-Budde
2014-02-28 12:33 ` Oliver Hartkopp
2014-02-28 12:52 ` Marc Kleine-Budde [this message]
2014-02-28 12:58 ` Oliver Hartkopp
2014-02-28 13:05 ` Marc Kleine-Budde
2014-02-28 13:09 ` Oliver Hartkopp
2014-02-28 13:18 ` Marc Kleine-Budde
2014-03-04 20:44 ` Marc Kleine-Budde
2014-02-26 22:11 ` [PATCH v5 5/6] can: allow to change the device mtu for CAN FD capable devices Oliver Hartkopp
2014-02-26 22:11 ` [PATCH v5 6/6] can: add bittiming check at interface open for CAN FD 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=5310867F.8060503@pengutronix.de \
--to=mkl@pengutronix.de \
--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).