Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277534
b: refs/heads/master
c: 452448f
h: refs/heads/master
v: v3
  • Loading branch information
Marc Kleine-Budde authored and David S. Miller committed Nov 14, 2011
1 parent b055975 commit 2d6e4a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 8b5c171bb3dc0686b2647a84e990199c5faa9ef8
refs/heads/master: 452448f9283e1939408b397e87974a418825b0a8
8 changes: 6 additions & 2 deletions trunk/drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ static int mscan_open(struct net_device *dev)

priv->open_time = jiffies;

clrbits8(&regs->canctl1, MSCAN_LISTEN);
if (ctrlmode.flags & CAN_CTRLMODE_LISTENONLY)
setbits8(&regs->canctl1, MSCAN_LISTEN);
else
clrbits8(&regs->canctl1, MSCAN_LISTEN);

ret = mscan_start(dev);
if (ret)
Expand Down Expand Up @@ -690,7 +693,8 @@ struct net_device *alloc_mscandev(void)
priv->can.bittiming_const = &mscan_bittiming_const;
priv->can.do_set_bittiming = mscan_do_set_bittiming;
priv->can.do_set_mode = mscan_do_set_mode;
priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES |
CAN_CTRLMODE_LISTENONLY;

for (i = 0; i < TX_QUEUE_SIZE; i++) {
priv->tx_queue[i].id = i;
Expand Down

0 comments on commit 2d6e4a7

Please sign in to comment.