]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: activate individual RX masking and initialize reg_rximr
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 31 Aug 2015 19:03:29 +0000 (21:03 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2017 14:13:41 +0000 (15:13 +0100)
commit64c6f044a61e2a505d74b98b98dc94c5769febe8
tree088e2fbfb38f81a35399fc8e5b1226c56cc4db90
parent32415bd71329084bf325d942cff91942d9307b23
can: flexcan: activate individual RX masking and initialize reg_rximr

Modern flexcan IP cores support two RX modes. One is using the 6 fames deep
hardware FIFO, the other is using up to 64 mailboxes (in non FIFO mode). For
now only the HW FIFO mode is activated.

In order to make use of the RX mailboxes the individual RX masking feature has
to be activated, otherwise matching mailboxes are overwritten during the
reception process. This however switches on the individual RX masking, which
uses reg_rximr registers for masking.

This patch activates the individual RX masking feature unconditionally and
initializes the mask registers (reg_rximr) with 0x0 == "don't care", which
switches off any filtering.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c