From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Cc: Sebastian Haas <haas@ems-wuensche.com>,
Sebastian Haas <dev@sebastianhaas.info>
Subject: Re: ems_usb: endianess warning
Date: Wed, 25 Mar 2015 09:44:22 +0100 [thread overview]
Message-ID: <55127566.8050504@pengutronix.de> (raw)
In-Reply-To: <55127313.6090500@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
On 03/25/2015 09:34 AM, Marc Kleine-Budde wrote:
> On 03/24/2015 07:02 PM, Gerhard Uttenthaler wrote:
>> this took some time, sorry.
>
> Thanks, applied to can.
I missed the fact, that the ID is correct in the driver without the
patch, sparse just missed that. So this goes into can-next.
In the driver there's timestamp, which endianess is corret here?
> /* Main message type used between library and application */
> struct __packed ems_cpc_msg {
> u8 type; /* type of message */
> u8 length; /* length of data within union 'msg' */
> u8 msgid; /* confirmation handle */
> u32 ts_sec; /* timestamp in seconds */
> u32 ts_nsec; /* timestamp in nano seconds */
^^^^^^^^^^^
>
> union {
> u8 generic[64];
> struct cpc_can_msg can_msg;
> struct cpc_can_params can_params;
> struct cpc_confirm confirmation;
> struct cpc_overrun overrun;
> struct cpc_can_error error;
> struct cpc_can_err_counter err_counter;
> u8 can_state;
> } msg;
> };
I know, the timestamp is not used in the driver, 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: 819 bytes --]
next prev parent reply other threads:[~2015-03-25 8:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 14:30 ems_usb: endianess warning Marc Kleine-Budde
2015-03-24 18:02 ` Gerhard Uttenthaler
2015-03-25 8:34 ` Marc Kleine-Budde
2015-03-25 8:44 ` Marc Kleine-Budde [this message]
2015-03-25 9:32 ` Gerhard Uttenthaler
2015-03-25 9:38 ` Marc Kleine-Budde
2015-03-25 10:17 ` Gerhard Uttenthaler
2015-03-25 11:12 ` 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=55127566.8050504@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=dev@sebastianhaas.info \
--cc=haas@ems-wuensche.com \
--cc=linux-can@vger.kernel.org \
--cc=uttenthaler@ems-wuensche.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.