]> git.baikalelectronics.ru Git - kernel.git/commit
flexcan: disable bus error interrupts for the i.MX28
authorWolfgang Grandegger <wg@grandegger.com>
Fri, 28 Sep 2012 03:17:15 +0000 (03:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Oct 2012 21:18:21 +0000 (17:18 -0400)
commitf594260d27da1d3a9b4fc0fd5b901b820384e67e
treed14d7292b719fb92de48e7e79590d650e0e092eb
parent3ef8c42d4918a91f2ec3bcc0bd6579f1b4dabd14
flexcan: disable bus error interrupts for the i.MX28

Due to a bug in most Flexcan cores, the bus error interrupt needs
to be enabled. Otherwise we don't get any error warning or passive
interrupts. This is _not_ necessary for the i.MX28 and this patch
disables bus error interrupts if "berr-reporting" is not requested.
This avoids bus error flooding, which might harm, especially on
low-end systems.

To handle such quirks of the Flexcan cores, a hardware feature flag
has been introduced, also replacing the "hw_ver" variable. So far
nobody could tell what Flexcan core version is available on what
Freescale SOC, apart from the i.MX6Q and P1010, and which bugs or
features are present on the various "hw_rev".

CC: Hui Wang <jason77.wang@gmail.com>
CC: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/flexcan.c