Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315713
b: refs/heads/master
c: 30df588
h: refs/heads/master
i:
  315711: e78ad9f
v: v3
  • Loading branch information
Ira W. Snyder authored and Marc Kleine-Budde committed Jul 20, 2012
1 parent fe521e5 commit 734ae76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83702f69272e4591a91a27eb58eade1bcd361dae
refs/heads/master: 30df5888e4a244093c1b403b55ef889c97824f7b
12 changes: 11 additions & 1 deletion trunk/drivers/net/can/janz-ican3.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,16 @@ static int ican3_handle_cevtind(struct ican3_dev *mod, struct ican3_msg *msg)
stats->rx_errors++;
}

/*
* The controller automatically disables bus-error interrupts
* and therefore we must re-enable them.
*/
ret = ican3_set_buserror(mod, 1);
if (ret) {
dev_err(mod->dev, "unable to re-enable bus-error\n");
return ret;
}

/* bus error reporting is off, return immediately */
if (!(mod->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
return 0;
Expand Down Expand Up @@ -1451,7 +1461,7 @@ static int __devinit ican3_startup_module(struct ican3_dev *mod)
}

/* default to "bus errors enabled" */
ret = ican3_set_buserror(mod, ICAN3_BUSERR_QUOTA_MAX);
ret = ican3_set_buserror(mod, 1);
if (ret) {
dev_err(mod->dev, "unable to set bus-error\n");
return ret;
Expand Down

0 comments on commit 734ae76

Please sign in to comment.