projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b308a
)
can: ti_hecc: fix invalid error codes
author
Olivier Sobrie
<olivier@sobrie.be>
Fri, 18 Jan 2013 08:32:40 +0000
(09:32 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:24:40 +0000
(18:24 -0600)
commit
71088c4bd9b8f8cbffb0e66f2abc14297e4b2ca8
upstream.
Errors in CAN protocol (location) are reported in data[3] of the can
frame instead of data[2].
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Cc: Anant Gole <anantgole@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/ti_hecc.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/ti_hecc.c
b/drivers/net/can/ti_hecc.c
index 5ec27008ab4eec0058e54a961e55821a7593e677..19000aa8680598a1f5e8a0e4ec8dcd51681cee11 100644
(file)
--- a/
drivers/net/can/ti_hecc.c
+++ b/
drivers/net/can/ti_hecc.c
@@
-746,12
+746,12
@@
static int ti_hecc_error(struct net_device *ndev, int int_status,
}
if (err_status & HECC_CANES_CRCE) {
hecc_set_bit(priv, HECC_CANES, HECC_CANES_CRCE);
- cf->data[
2
] |= CAN_ERR_PROT_LOC_CRC_SEQ |
+ cf->data[
3
] |= CAN_ERR_PROT_LOC_CRC_SEQ |
CAN_ERR_PROT_LOC_CRC_DEL;
}
if (err_status & HECC_CANES_ACKE) {
hecc_set_bit(priv, HECC_CANES, HECC_CANES_ACKE);
- cf->data[
2
] |= CAN_ERR_PROT_LOC_ACK |
+ cf->data[
3
] |= CAN_ERR_PROT_LOC_ACK |
CAN_ERR_PROT_LOC_ACK_DEL;
}
}