From: Gustavo A. R. Silva Date: Tue, 31 Oct 2017 06:31:27 +0000 (-0500) Subject: ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0be7fc7e08e7c6a5ec3837960d420e377380d1a8;p=linux.git ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop It seems that this is a copy/paste error and the proper bit masking is: BIT_TXNIE | BIT_RXIE This issue was detected with the help of Coccinelle. Reported-by: Julia Lawall Signed-off-by: Gustavo A. R. Silva Fixes: 7d840545e5b9 ("mrf24j40: replace magic numbers") Acked-by: Alan Ott Signed-off-by: Stefan Schmidt --- diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index ee7084b2d52d3..cf4788d840bf1 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -635,7 +635,7 @@ static void mrf24j40_stop(struct ieee802154_hw *hw) /* Set TXNIE and RXIE. Disable Interrupts */ regmap_update_bits(devrec->regmap_short, REG_INTCON, - BIT_TXNIE | BIT_TXNIE, BIT_TXNIE | BIT_TXNIE); + BIT_TXNIE | BIT_RXIE, BIT_TXNIE | BIT_RXIE); } static int mrf24j40_set_channel(struct ieee802154_hw *hw, u8 page, u8 channel)