projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea4588
)
can: ti_hecc: fix invalid error codes
author
Olivier Sobrie
<
[email protected]
>
Fri, 18 Jan 2013 08:32:40 +0000
(09:32 +0100)
committer
Marc Kleine-Budde
<
[email protected]
>
Sat, 26 Jan 2013 16:13:32 +0000
(17:13 +0100)
Errors in CAN protocol (location) are reported in data[3] of the can
frame instead of data[2].
Cc: linux-stable <
[email protected]
>
Cc: Anant Gole <
[email protected]
>
Signed-off-by: Olivier Sobrie <
[email protected]
>
Signed-off-by: Marc Kleine-Budde <
[email protected]
>
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 f898c6363729b2a41be58c824f3f3bb145a95897..300581b24ff32860447e3646079024646e77a592 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;
}
}