summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bitbang-txrx.h
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2011-12-12 08:16:20 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-02-03 00:25:22 +0100
commit44b0052c5cb4e75389ed3eb9e98c29295a7dadfb (patch)
tree6ad88cbbf1b75e65f98220e449b62ac1acb387d1 /drivers/spi/spi-bitbang-txrx.h
parentcan: ti_hecc: use netif_rx in the interrupt (diff)
downloadlinux-44b0052c5cb4e75389ed3eb9e98c29295a7dadfb.tar.xz
linux-44b0052c5cb4e75389ed3eb9e98c29295a7dadfb.zip
can: pch_can: fix error passive level test
The test (((errc & PCH_REC) >> 8) > 127) would always be false because the receive error counter ((errc & PCH_REC) >> 8) is at most 127, where PCH_REC is defined as 0x7f00. To test whether the receive error counter has reached the error passive level, the RP bit (15) should be used. Signed-off-by: Xi Wang <xi.wang@gmail.com> Acked-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/spi/spi-bitbang-txrx.h')
0 files changed, 0 insertions, 0 deletions