Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8730108ybi; Tue, 9 Jul 2019 22:08:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0yeDCqD63e4kMdrC4+o6rrHU/g55/mf1c/aIFAx616ieVT2HBGUL5iQRjarGGlBJxZM1k X-Received: by 2002:a17:902:d917:: with SMTP id c23mr36537902plz.248.1562735337839; Tue, 09 Jul 2019 22:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562735337; cv=none; d=google.com; s=arc-20160816; b=M12MADVLzQ48Ssft/rmzgWNao1hvKgrq/cWeAGEoz65XkjDLjB7Uq0vTJWOvFpsZz/ gmKKqDqFelUM09SVJdwkBfsXIcwx2JdH0tPWsvYEPiCmtsDzNQ4Ugid5+m4jsNga4w0X DMZQxHT28DkpNuAuedKqvg7QqiHDY2F6dt/civwTz1oQbgyl4hrIBp2uPIx/baOttATe DgQWWSO++cANAWuHusi5wchh/NiYYzM5Oryt5Q4KI1U1gcZMfRTw4TW9prUtp81zeitI 2Dm7wsjGX6CvMyphQG3b8fbXL+03CstOez5IVTLYKtniYWoczGCULQWVqvmmOU4ORgel ai/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=sGkEZdU9JWOF0g0JmpHgsGHCHwfBz+ehVG4ooNC6BPY=; b=j6pojLWVa6FIhugw6X7XfhRmO1+6bM5dy0whnJ3wRuBsA0hKp/IbnpXxcvC3x94y4M ZrMsKaMdaXVRXFPf3DbbJz6OHMY/TFLFg6uDvqlJ5p5A2DziXF8mHkl5AGIwikG1yVQz g1vIAy5OKyXEKt+eKLlwHjygNqRMm/k6oJ2aAb04HQM70i9MK3L4rMT7yoax51LGvwLe QGEAi93RRbFDfhmFdrcuD/Zek0ep4YeJVJStCjiPBEl4hX1vmUBiVDVP/PtNhNw09d/t soAV2QKH9E3GOFNezLAM261Q7c+z3BCeopPXYbnijrbQWQTh9HSlFFSXaRcLWqhWsvZ6 p0iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si1292468pgq.459.2019.07.09.22.08.43; Tue, 09 Jul 2019 22:08:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726100AbfGJFHo convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Jul 2019 01:07:44 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:37513 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfGJFHo (ORCPT ); Wed, 10 Jul 2019 01:07:44 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x6A57QYq030900, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCAS11.realtek.com.tw[172.21.6.12]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x6A57QYq030900 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Jul 2019 13:07:27 +0800 Received: from RTITMBSVM04.realtek.com.tw ([fe80::e404:880:2ef1:1aa1]) by RTITCAS11.realtek.com.tw ([fe80::7c6d:ced5:c4ff:8297%15]) with mapi id 14.03.0439.000; Wed, 10 Jul 2019 13:07:26 +0800 From: Tony Chuang To: Joe Perches , Andrew Morton CC: Kalle Valo , "David S. Miller" , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andy Huang Subject: RE: [PATCH 09/12] rtw88: Fix misuse of GENMASK macro Thread-Topic: [PATCH 09/12] rtw88: Fix misuse of GENMASK macro Thread-Index: AQHVNt0EKBOEadT3XU2T7xXrxoiWeabDTLwA Date: Wed, 10 Jul 2019 05:07:26 +0000 Message-ID: References: <0de52d891d7925b02f4f0fe2c750d076e55434d9.1562734889.git.joe@perches.com> In-Reply-To: <0de52d891d7925b02f4f0fe2c750d076e55434d9.1562734889.git.joe@perches.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.68.183] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Subject: [PATCH 09/12] rtw88: Fix misuse of GENMASK macro > > Arguments are supposed to be ordered high then low. > > Signed-off-by: Joe Perches > --- > drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c > b/drivers/net/wireless/realtek/rtw88/rtw8822b.c > index 1172f6c0605b..d61d534396c7 100644 > --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c > +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c > @@ -997,7 +997,7 @@ static void rtw8822b_do_iqk(struct rtw_dev *rtwdev) > rtw_write_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK, 0x0); > > reload = !!rtw_read32_mask(rtwdev, REG_IQKFAILMSK, BIT(16)); > - iqk_fail_mask = rtw_read32_mask(rtwdev, REG_IQKFAILMSK, > GENMASK(0, 7)); > + iqk_fail_mask = rtw_read32_mask(rtwdev, REG_IQKFAILMSK, > GENMASK(7, 0)); > rtw_dbg(rtwdev, RTW_DBG_PHY, > "iqk counter=%d reload=%d do_iqk_cnt=%d > n_iqk_fail(mask)=0x%02x\n", > counter, reload, ++do_iqk_cnt, iqk_fail_mask); > -- That's correct. Thanks. Acked-by: Yan-Hsuan Chuang Yan-Hsuan