net/can/mscan: Fix buggy listen only mode setting
Subsystems (3)
This patch fixes an issue introduced recently with commit 452448f9283e1939408b397e87974a418825b0a8.
CC Marc Kleine-Budde <[email protected]>
Signed-off-by Wolfgang Grandegger <[email protected]>
--- drivers/net/can/mscan/mscan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/can/mscan/mscan.c +1 -1
@@ -581,7 +581,7 @@ static int mscan_open(struct net_device *dev) priv->open_time = jiffies; -if (ctrlmode.flags &CAN_CTRLMODE_LISTENONLY ) +if (priv->can.ctrlmode &CAN_CTRLMODE_LISTENONLY )setbits8 (®s->canctl1,MSCAN_LISTEN );else clrbits8 (®s->canctl1,MSCAN_LISTEN );
Signature · 1 line
1.7.6.4
A message that is not in the archive (sent off-list or not yet received): [email protected]
David Miller
AppliedFrom: Wolfgang Grandegger <[email protected]>
Date: Mon, 14 Nov 2011 14:34:56 +0100
Quoted 5 lines
This patch fixes an issue introduced recently with commit
452448f9283e1939408b397e87974a418825b0a8.CC Marc Kleine-Budde <[email protected]>Signed-off-by Wolfgang Grandegger <[email protected]>
Applied, thanks.