Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315714
b: refs/heads/master
c: 3b5c6b9
h: refs/heads/master
v: v3
  • Loading branch information
Ira W. Snyder authored and Marc Kleine-Budde committed Jul 20, 2012
1 parent 734ae76 commit bf98f46
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 30df5888e4a244093c1b403b55ef889c97824f7b
refs/heads/master: 3b5c6b9e49f78f07ebcd34b38c1185e57a0fd9eb
8 changes: 7 additions & 1 deletion trunk/drivers/net/can/janz-ican3.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
#define ICAN3_BUSERR_QUOTA_MAX 255

/* Janz ICAN3 CAN Frame Conversion */
#define ICAN3_SNGL 0x02
#define ICAN3_ECHO 0x10
#define ICAN3_EFF_RTR 0x40
#define ICAN3_SFF_RTR 0x10
Expand Down Expand Up @@ -848,6 +849,10 @@ static void can_frame_to_ican3(struct ican3_dev *mod,
desc->data[0] |= cf->can_dlc;
desc->data[1] |= ICAN3_ECHO;

/* support single transmission (no retries) mode */
if (mod->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
desc->data[1] |= ICAN3_SNGL;

if (cf->can_id & CAN_RTR_FLAG)
desc->data[0] |= ICAN3_EFF_RTR;

Expand Down Expand Up @@ -1810,7 +1815,8 @@ static int __devinit ican3_probe(struct platform_device *pdev)
mod->can.do_set_mode = ican3_set_mode;
mod->can.do_get_berr_counter = ican3_get_berr_counter;
mod->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES
| CAN_CTRLMODE_BERR_REPORTING;
| CAN_CTRLMODE_BERR_REPORTING
| CAN_CTRLMODE_ONE_SHOT;

/* find our IRQ number */
mod->irq = platform_get_irq(pdev, 0);
Expand Down

0 comments on commit bf98f46

Please sign in to comment.