From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Stephane Grosjean <s.grosjean@peak-system.com>,
Marc Kleine-Budde <mkl@pengutronix.de>,
linux-can@vger.kernel.org
Subject: Re: [PATCH 7/7 v9] can/peak_usb: add support for PEAK new CANFD USB adapters
Date: Tue, 27 Jan 2015 15:27:03 +0100 [thread overview]
Message-ID: <54C7A037.6080100@hartkopp.net> (raw)
In-Reply-To: <54C791DA.3060708@peak-system.com>
On 27.01.2015 14:25, Stephane Grosjean wrote:
>
> Le 27/01/2015 14:10, Oliver Hartkopp a écrit :
>> Hi Stephane, Marc,
>>
>> On 27.01.2015 14:02, Stephane Grosjean wrote:
>>
>>> But putting "const" here leads to several other changes in pcan_usb_core.h and
>>> pcan_usb_core.c (as well as in older pcan_usb.c and pcan_usb_pro.c files,
>>> where same struct peak_adapter static objects are used to define the
>>> corresponding USB adapter).
>>>
>>> Do you need another patch which does this, once for all?
>>
>> I would suggest the following:
>>
>> 1. Send a new patch set where the CAN_CTRLMODE_FD_NON_ISO is set as discussed
>
> ? AFAIU, the discussion has stopped with:
>
>> Yes, check the firmware version and set ctrlmode directly.
As there is no firmware version to check against right now:
In pcan_usb_fd_init() just set
pdev->dev.can.ctrlmode = CAN_CTRLMODE_FD_NON_ISO;
Right before the comment '/* tell the hardware ...'
Here:
http://git.kernel.org/cgit/linux/kernel/git/mkl/linux-can-next.git/tree/drivers/net/can/usb/peak_usb/pcan_usb_fd.c?h=peak-next#n861
That's all for the v10 patchset IMO.
>
> Then, what kind of patch do you want me to send, please?
>
>> 2. Marc: Please put these patches into peak-next branch as it was
>> 3. Plan the conversion to constify the struct for 3.21
>>
>> IMO it makes more sense to make this in the next next-net cycle.
>
> Not clear again, sorry: what do u mean with "this" ? The ISO/NO_ISO stuff or
> Adding the "const" specifier to all source files with "struct
> peak_usb_adapter" ???
Setting
pdev->dev.can.ctrlmode = CAN_CTRLMODE_FD_NON_ISO;
is mandatory.
But constify the struct peak_usb_adapter can be done later.
ok?
Regards,
Oliver
ps. I hope pdev->dev.can.ctrlmode is valid in pcan_usb_fd_init() ?!?
next prev parent reply other threads:[~2015-01-27 14:27 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 10:31 [PATCH 0/7 v9] can/peak_usb: upgrade to CANFD Stephane Grosjean
2015-01-23 10:31 ` [PATCH 1/7 v9] can/peak_usb: export ctrlmode_supported to adapter specific Stephane Grosjean
2015-01-23 10:31 ` [PATCH 2/7 v9] can/peak_usb: add adapter BEC callback definition Stephane Grosjean
2015-01-23 10:31 ` [PATCH 3/7 v9] can/peak_usb: upgrade core to data bittiming specs Stephane Grosjean
2015-01-23 10:31 ` [PATCH 4/7 v9] can/peak_usb: upgrade core to new struct canfd_frame Stephane Grosjean
2015-01-23 10:31 ` [PATCH 5/7 v9] can/peak_usb: export pcan_usb_pro functions Stephane Grosjean
2015-01-23 10:31 ` [PATCH 6/7 v9] can/peak_usb: add peak_usb_netif_rx() new function Stephane Grosjean
2015-01-23 10:31 ` [PATCH 7/7 v9] can/peak_usb: add support for PEAK new CANFD USB adapters Stephane Grosjean
2015-01-26 13:50 ` Marc Kleine-Budde
2015-01-26 15:11 ` Stephane Grosjean
2015-01-26 15:14 ` Marc Kleine-Budde
2015-01-26 15:42 ` Stephane Grosjean
2015-01-26 15:51 ` Marc Kleine-Budde
2015-01-26 21:04 ` Oliver Hartkopp
2015-01-26 21:08 ` Marc Kleine-Budde
2015-01-27 8:00 ` Oliver Hartkopp
2015-01-27 8:05 ` Marc Kleine-Budde
2015-01-27 13:02 ` Stephane Grosjean
2015-01-27 13:07 ` Marc Kleine-Budde
2015-01-27 13:16 ` Stephane Grosjean
2015-01-27 13:10 ` Oliver Hartkopp
2015-01-27 13:25 ` Stephane Grosjean
2015-01-27 14:27 ` Oliver Hartkopp [this message]
2015-01-28 13:17 ` Marc Kleine-Budde
[not found] ` <54C8E811.3050806@peak-system.com>
2015-01-28 13:59 ` 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=54C7A037.6080100@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=s.grosjean@peak-system.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.