All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Emil Fors <emil@koenigsegg.se>, linux-can <linux-can@vger.kernel.org>
Subject: Re: Setting up flexcan mailboxes in Linux
Date: Tue, 7 Jul 2015 12:04:20 +0200	[thread overview]
Message-ID: <559BA424.5010106@pengutronix.de> (raw)
In-Reply-To: <81C1BF6140F61847A49020308B539A57128B21@MBX01.hosting.local>

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

Hey Emil,

please use the linux-can mailinglst for CAN related questions.

On 07/07/2015 11:59 AM, Emil Fors wrote:
> my name is Emil and I am trying to configure a Toradex Apalis iMX6q
> module. I need to set up the flexcan mailboxes in order to filter out
> messages I'm not interested in. I have CAN communication working using
> the libsocketcan library written by one Luotao Fu, who seems to be a
> colleague of yours? However, that library doesn't seem to provide me
> with control over mailbox configuration. Could you please advise as to
> how I'd best proceed? I noted that the library is (C) 2009, perhaps it
> is outdated? Do you know of a more recent and perhaps better solution?

Hardware filtering is not supported on an driver so far. But we have an
idea how to implement this.

However you can make use of the software filtering via CAN_RAW_FILTER.
See
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L433
for more information.

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: 455 bytes --]

       reply	other threads:[~2015-07-07 10:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <81C1BF6140F61847A49020308B539A57128B21@MBX01.hosting.local>
2015-07-07 10:04 ` Marc Kleine-Budde [this message]
     [not found]   ` <81C1BF6140F61847A49020308B539A57128EFA@MBX01.hosting.local>
2015-07-09  8:38     ` SV: Setting up flexcan mailboxes in Linux Marc Kleine-Budde
2015-07-09  9:10       ` Emil Fors

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=559BA424.5010106@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=emil@koenigsegg.se \
    --cc=linux-can@vger.kernel.org \
    /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.