Received: by 10.223.164.202 with SMTP id h10csp93582wrb; Mon, 6 Nov 2017 03:14:39 -0800 (PST) X-Google-Smtp-Source: ABhQp+RfiLP/YGCXLAWnuVZUiexSRybJ9Es6D78r3sn6kfeJ3k5LWrLl43qIHHsfPaYegbr7fXrr X-Received: by 10.98.34.130 with SMTP id p2mr16454042pfj.108.1509966879105; Mon, 06 Nov 2017 03:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509966879; cv=none; d=google.com; s=arc-20160816; b=V9XYKMiUPQVu/QAE+LYGyJNQ+uXgMI7Yhutq08iyIXqIVG0tWs6JU2P6q2qTIfqJ4P /r5dEJa2eNEX2xjkUkhzBHLFrt2/dNyXqCGqU5fD5EU71OFvtICgOeTSGKEFjvBy3f35 k+Q2jjwuBOsIi1aDvxTk8uFpDqYs0vYbJeWLEXHhIHPMOaDgZLFgMjUJMU+nAbvYZQxY bkv8/Ey4Y4RLQpBx9RAGtHoDjkBAxsTKrgzPdTJ1hqr8UHxAJCxeQLMorRr7OHqKqCQz XWD9PKrpiHzSsizDV7tPqGbR89XTms4NAn1gaWEVYkFXXP5EhNYinBX3epgeCiq44XVq QCFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=5GrUdJiO9HZurM7xcpV8NiZqiFSqMjrc8Q8lfw/T8CQ=; b=UuQO1aiN55Andfnhq1Yqe8G+R0PC8wEjlwRF4c/D0odG5kIid+hr8WR7ugUx4HaCF8 +tB+LCO7cowpZ0MrxGpTJdGMbk9ze6/CPAoSzz31EG8i7+sG+kBy9tf7Y2dRX5Wr7V3C UsMqdQPn8yLqesjp81QcB6IC5vqh0eaaETBanau7eYf/5qj2lbLGYwRheQqLWuH6njJe 2fYibuJaOMgfAbRWyNv7zJ976IG/9SpCwyzG+PCTZcIOMHGd8xoHDbS0YAnOJnmCJksr MUnOSKgoI8+KSjuuSoH4YaZIJvilZp9CjGKe17bPhWfJDJYe36nw0+nJ0DSk7axq9uB7 /VsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66si11270725pgc.106.2017.11.06.03.14.24; Mon, 06 Nov 2017 03:14:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbdKFLN1 (ORCPT + 99 others); Mon, 6 Nov 2017 06:13:27 -0500 Received: from osg.samsung.com ([64.30.133.232]:46305 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdKFLNZ (ORCPT ); Mon, 6 Nov 2017 06:13:25 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id AC12D2148C; Mon, 6 Nov 2017 03:13:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q4GDahRxZsWp; Mon, 6 Nov 2017 03:13:23 -0800 (PST) Received: from [192.168.2.112] (pD9F788BF.dip0.t-ipconnect.de [217.247.136.191]) by osg.samsung.com (Postfix) with ESMTPSA id B5DCF21483; Mon, 6 Nov 2017 03:13:21 -0800 (PST) Subject: Re: [PATCH] ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop To: "Gustavo A. R. Silva" , Alan Ott , Alexander Aring Cc: linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall References: <20171031063127.GA6032@embeddedor.com> From: Stefan Schmidt Message-ID: <2d784b55-8447-7581-43a3-d42f152e045b@osg.samsung.com> Date: Mon, 6 Nov 2017 12:13:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171031063127.GA6032@embeddedor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Alan. On 10/31/2017 07:31 AM, Gustavo A. R. Silva wrote: > 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") > --- > drivers/net/ieee802154/mrf24j40.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c > index ee7084b..cf4788d 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) > Could you review this and give me your ack when you are happy so I can apply it to my tree? regards Stefan Schmidt From 1582754383739437497@xxx Tue Oct 31 06:43:24 +0000 2017 X-GM-THRID: 1582754383739437497 X-Gmail-Labels: Inbox,Category Forums