Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp431864pxb; Thu, 13 Jan 2022 09:18:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqD8ORo3TRh6zGEhtzRhOpUwWk8HfOaXzDcW0/9jCh5YOX6vSGx9uL4MiUbJW98U0P5E7X X-Received: by 2002:a05:6a00:2356:b0:4c1:c351:a7d0 with SMTP id j22-20020a056a00235600b004c1c351a7d0mr5350510pfj.36.1642094290094; Thu, 13 Jan 2022 09:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642094290; cv=none; d=google.com; s=arc-20160816; b=qWa2YHzUh5GJOfasaZ6FlsXxqGDUBuJ9ETGP50IoFXqNvIYpcnN25pUcbpS4XSk2dV S7YAY6wzKqAn5d3N3eEhUAALBtCu5Hj16FDK7RtHM0KG2GVnt9IDrWHH4VYiZ6zpZcIF 29NPeJXw5mthM9AwY0fWcEPKBF4CxulvyrAYxcf2qRe5zrugCLpPX6YCdn9dzAfeRGXh zwr+hDX6a6QTkagvA6Pv+Gb26cLxlDj9cLfqgHe0CWwFD8UCboX+ndPjYbFtR12ZTaQF Yg60CHhV6l1QR7E4DDWlyxYC7NXhF6XraohBSsi1XO6+kIJt1SpLTO1MjDM0ZgJ9Dx4s is1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:message-id; bh=k1zd3gYalicA6o9F1aAsbYsyYNk20QSQTgVXclLdzQI=; b=yR4hPtNHkQt6AXWhX63Ns5z0CueLVF1aMVfE+KjVt3/rfRQVlwQKrbY92kLLlcpJkT TeOAKReY3VdwM+yrMpaXe9bUKIDf2DeXW0xGFPb4lsD+Arj/HEeXUBW+XtBSIAlg22WZ +foUi+P/gi1kpTde7lNeifZdG2PEapBQnkSqcXOzNKSCY4eJvIt0dXXi6CBuCLn8UiVB 3pG0FArXr+eSZMXJK30MQTxK/0Y+p+v3IkctX4qdMSkLm9gWFYL7UQ5r4lsSeQEKqkqy IqNLrkxgutovC7hx60aF/JkFO6wvLYqikUebUrh/f6jNksX3SCEBTEqwPeA/Pnd7IB5x y+vA== 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 r7si3270702pjp.108.2022.01.13.09.18.01; Thu, 13 Jan 2022 09:18:10 -0800 (PST) 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 S234395AbiAMMKE (ORCPT + 71 others); Thu, 13 Jan 2022 07:10:04 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:52450 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230310AbiAMMKD (ORCPT ); Thu, 13 Jan 2022 07:10:03 -0500 Received: from 91-155-254-253.elisa-laajakaista.fi ([91.155.254.253] helo=[192.168.100.150]) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n7yvY-001bY2-LP; Thu, 13 Jan 2022 14:10:01 +0200 Message-ID: <86458042c4dfcaa6aa971c9ec37f1cc77fd95cfe.camel@coelho.fi> From: Luca Coelho To: Kalle Valo Cc: linux-wireless@vger.kernel.org, lenb@kernel.org, johannes@sipsolutions.net Date: Thu, 13 Jan 2022 14:09:59 +0200 In-Reply-To: <87bl0fud2z.fsf@kernel.org> References: <87bl0fud2z.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH] iwlwifi: mvm: check if SAR GEO is supported before sending command Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2022-01-13 at 12:47 +0200, Kalle Valo wrote: > Luca Coelho writes: > > > From: Luca Coelho > > > > Older hardware, for instance 3160, do not support SAR GEO offsets. We > > used to check for support before sending the command, but when moving > > the command to the init phase, we lost the check. This causes a > > failure when initializing HW that do not support this command. > > > > Fix that by adding a check before sending the command. Additionally, > > fix the caller so that it checks for the return value of the > > iwl_mvm_sar_geo_init() function, which it was ignoring. > > > > Fixes: db700bc35703 ("iwlwifi: mvm: check if SAR GEO is supported before sending command") > > $ git show db700bc35703 > fatal: ambiguous argument 'db700bc35703': unknown revision or path not in the working tree. > > No need to resend because of this, if you can provide the commit id I > can fix the tag. Oops, sorry, I added the tag to my own commit... This is the correct one: Fixes: 78a19d5285d9 ("iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage") -- Luca.