Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1611112pxb; Sun, 18 Apr 2021 01:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkiHdRy0ugFdKLP4HAIfUeDC9iSsvhYmIh74QTjUlC9VseM42FR1QSHQkRomP37afWyo8K X-Received: by 2002:a17:906:cb1:: with SMTP id k17mr16324802ejh.307.1618733648187; Sun, 18 Apr 2021 01:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618733648; cv=none; d=google.com; s=arc-20160816; b=ky92EyvfLg3+9wnHpcy9n5NOIdoMls//rySGO1vA3psEUC5OLLlRExUe654v4rig80 FBw8MfNOenivDFfv0haWJGjTuS9AZx1UpbLDbVin5s1VGlxJrMvJKOKR5g4mZtEcIYat yQa/tNqFmaO553J7fytTZxenwoF/qXKVowjSDbHMrA2GrM12nJAZ/7MfpU2M4mlmjVyN hil6nYqPowuKJERz+/sdkjyzwfCZ9wcRPfkvYMwc1H5aDqrFawtsSD+XwPaPA3V56UFy 6cW/mm4ZnIg2HbZOmhWcpBiUttnmjX8+QBUB4/GW6NE7atOZNQ1Td24qPSMOxHUgrPcT MT3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=McSLaTsULaoPELFynlewoUtHJOwD+zhVxKPn5Rta08g=; b=MQo2W9K73oTGelu7OHBO2eiAAf/Sdyu3mo//Kfwuv71dADcmtcxKEmk5hBuqWncqvk kK7jy2D6RbuIAPYxiOgKVRDWBJAMDIbuWOSnZWs8v2QQ2Ex1chZlOgzr9UsMdd3NCiZ3 LXT90iCKQFZcqjtml34XRDATf5DXs2UGjiTCyG2DM5CK0Z7InU/Kmd7RbIc4uxySrj8n bCLHGKgAOchs73UxYJhlRQI/Caq6DA0iAN0ipX0VL1xkXO8F9BBGYlaaAsAWFzJObbJA g5i+Pnhx1iqyXe78ffHbZhxDoW5qBqrkt8ZmtrMt3fhoFGyCPFFdyMbhf0jqfZlSjln1 iHrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd5si9008272ejc.395.2021.04.18.01.13.32; Sun, 18 Apr 2021 01:14:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbhDRH7O (ORCPT + 99 others); Sun, 18 Apr 2021 03:59:14 -0400 Received: from smtprelay0095.hostedemail.com ([216.40.44.95]:56644 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229605AbhDRH7O (ORCPT ); Sun, 18 Apr 2021 03:59:14 -0400 Received: from omf15.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 625581801EC5B; Sun, 18 Apr 2021 07:58:45 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id 421D1C4171; Sun, 18 Apr 2021 07:58:42 +0000 (UTC) Message-ID: <78ad5b527aa1da06569fd5ae422ea2a403ef40a0.camel@perches.com> Subject: Re: [PATCH] brcmsmac: fix shift on 4 bit masked value From: Joe Perches To: Kalle Valo , Colin King Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , "David S . Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 18 Apr 2021 00:58:40 -0700 In-Reply-To: <20210418061021.AB25CC43217@smtp.codeaurora.org> References: <20210318164513.19600-1-colin.king@canonical.com> <20210418061021.AB25CC43217@smtp.codeaurora.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.10 X-Rspamd-Server: rspamout02 X-Stat-Signature: 8gh465wuimw17kau5gdipacob9prza1i X-Rspamd-Queue-Id: 421D1C4171 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/xWSqVlWo+70JHQhB8hBT2bN/Di8JdQ18= X-HE-Tag: 1618732722-454334 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, 2021-04-18 at 06:10 +0000, Kalle Valo wrote: > Colin King wrote: > > > From: Colin Ian King > > > > The calculation of offtune_val seems incorrect, the u16 value in > > pi->tx_rx_cal_radio_saveregs[2] is being masked with 0xf0 and then > > shifted 8 places right so that always ends up as a zero result. I > > believe the intended shift was 4 bits to the right. Fix this. > > > > [Note: not tested, I don't have the H/W] > > > > Addresses-Coverity: ("Operands don't affect result") > > Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") > > Signed-off-by: Colin Ian King > > I think this needs review from someone familiar with the hardware. > > Patch set to Changes Requested. What "change" are you requesting here? Likely there needs to be some other setting for the patch. Perhaps "deferred" as you seem to be requesting a review and there's no actual change necessary, just approval from someone with the hardware and that someone test the patch.