Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4150453ybh; Tue, 17 Mar 2020 13:13:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuNd8KYBys0pBF3e+3qItReJdboFP5AUHAhGbJlMGCwnojhqptwgki+ig5UR8ssonqxXs4s X-Received: by 2002:aca:c6d1:: with SMTP id w200mr497026oif.43.1584476022088; Tue, 17 Mar 2020 13:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584476022; cv=none; d=google.com; s=arc-20160816; b=scgD8zF7w+RExE2ZUuJoLtuuHAFUXUOf3aUMvJmjMWhGkAs0iIvEdVgztzEQcWqOkZ d3WlNY1tR13QoJFC/tL3kw0P5+BJEo257zYO0UeHvkB3M5i9QSsVjpkpeys9ObiCpirA lrvS+z+8iQDhsuTo2/WrOIcSK6gUK5O+jPFScNT9/in8XeXXOUVJeDB2fbfpEJeGNzQJ WJ0uxwGkyeVGY/umbegGB24TpHSoMtyaPYSYw85gayokPBk1wfj02A5AbhRxG28csZho VZOArome3G71rz+PQLPteL/ru1UMEhjC8x2db6exbKnjt5zP2teuVeSQGOEJvvocXGwz Lujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fPgMyW5Jt+c0+F6TUl02/0AGD5HdboCszQEqvt8UjFk=; b=gHSADfnaMfiVmrNrGKARTvi+1sPDLSWNOayUp0DjCTxhzAlpLg2LeDq1b7OfvsXw8S asr/4qttCdQ40B1AJY0fe4li61uUBCd30ha4MLrg2PxL5EbuG40fU9/YG6efEW9NPxXY +8Jg6GkJjejKlozcAANkLYBmlj3NDEyhdtMkFIHwRQWOzpDH+/FAr8pXm3fvVm6pNnFX dt3usV51v1F9rTqdP+XYetwlVfPIHFfPBn66ULMr90jvRknoliuVn6o/trJWtpJKGLq3 ZFzF0LKpX2qePjyTl55hrvPXh7Dtp6PPzBNkcZPY24wfZlLuZK7wEYJsHLXP5cJuFTxl ZlFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S9kwU1Ds; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si2276565oti.44.2020.03.17.13.12.36; Tue, 17 Mar 2020 13:13:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S9kwU1Ds; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726643AbgCQUM2 (ORCPT + 99 others); Tue, 17 Mar 2020 16:12:28 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:35888 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgCQUM2 (ORCPT ); Tue, 17 Mar 2020 16:12:28 -0400 Received: by mail-ot1-f67.google.com with SMTP id 39so7692404otu.3 for ; Tue, 17 Mar 2020 13:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=fPgMyW5Jt+c0+F6TUl02/0AGD5HdboCszQEqvt8UjFk=; b=S9kwU1DsLDsqZOlGSBxA9AIA0m4DmkJ2nBWButt1a+o6c5sFhyxj4E1UFunrZA2m40 nfr7dYbexprjMitRcvjGEh16WprDbQnfYjBUPi4tdDLcywMhZfaALphtpeeRgdYXidXk e2Tx/qGE8/jGVE/dnmN3Y6CWCCnBNnxucJZNn4D1aQNf4hpl8bGsrmUheRhE2vXW+NZq nNgHGeMOd2mU7J4z94CqF5tFhDeYwFKr+NRCugYadnfOFS3Zs293qBjfGbSTR/TnKBjF E71DNtg7hFbncrL/MKi9I03N8TQ8wYkuaK4WjcEU6oSvvG8Kjh49skbNvbuSsUltoJ7U GY9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=fPgMyW5Jt+c0+F6TUl02/0AGD5HdboCszQEqvt8UjFk=; b=q14gxvCXwxq/SO1GjOEnmiB5odBz3W9n5K12uOOCCkvaBA3dVXO8WvPX7bpiTyJrwF FQftpxaL9XGKZoYH7n5pNSx8GhnacNJF95X7p3lsxZQLTRL/i/BrSZXixdhxBztGsSKK u0UKXoL+vuK0ahevphtTmpzs+3WWvc+9+zKVkrnm1f5Tvt+nRnukrRN0kXq5Kog++Jhr Zok6bnjPxc+T4z2VHElchM7drHy6aQRa1UiaABAxAvszQEdR5nLfamvYSxlSkrIDuCA0 5/gyIO5UWtxFtqxg/yBKHgoWVtqmc7CbJLzNOj15WRNgvHb+fcSH7KVUf2key1QA37l2 Rq7A== X-Gm-Message-State: ANhLgQ1QrAVY7pzsLggknR97FFb9KpPrK8uWZTCDXACm56lkspwI+dD0 hJ8gyCnOufiQma3p3yz7dh9zt5cl4cTggXDaC54= X-Received: by 2002:a9d:4f0:: with SMTP id 103mr877830otm.336.1584475946921; Tue, 17 Mar 2020 13:12:26 -0700 (PDT) MIME-Version: 1.0 References: <20200313030545.9184-1-mark.asselstine@windriver.com> In-Reply-To: <20200313030545.9184-1-mark.asselstine@windriver.com> From: Mark Asselstine Date: Tue, 17 Mar 2020 16:12:15 -0400 Message-ID: Subject: Re: [PATCH] iwlwifi: set 'free_queue' to the loop variable, not a meaningless bool To: johannes.berg@intel.com, linux-wireless , luciano.coelho@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Luca, This is my first time sending a fix for iwlwifi and I haven't seen any feedback or seen the code merged. Should I have sent this somewhere else? Thanks, Mark On Thu, Mar 12, 2020 at 11:06 PM Mark Asselstine wrote: > > From: Mark Asselstine > > The loop variable 'i' is passed to iwl_mvm_remove_inactive_tids() as > the queue number to operate on. iwl_mvm_remove_inactive_tids() > operates on that queue number then returns true if the queue can be > reused, the returned bool is stored in 'ret'. We do not want to set > 'free_queue' to the returned bool stored in 'ret' but rather the loop > variable, so we are actually operating on the right queue through the > rest of iwl_mvm_inactivity_check() and have it return a proper queue > number. > > Signed-off-by: Mark Asselstine > --- > drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > index 9db2555518aa..2fcaf779649a 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c > @@ -1166,7 +1166,7 @@ static int iwl_mvm_inactivity_check(struct iwl_mvm *mvm, u8 alloc_for_sta) > &changetid_queues); > if (ret >= 0 && free_queue < 0) { > queue_owner = sta; > - free_queue = ret; > + free_queue = i; > } > /* only unlock sta lock - we still need the queue info lock */ > spin_unlock_bh(&mvmsta->lock); > -- > 2.20.1 >