Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp666234pxb; Fri, 28 Jan 2022 07:34:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5B1WJ7lxRY4CQ53f4317Y3m1lxLWr+DfhuCgM4WVgEl2WcX3usRaUrmr5mFW+tu5Xu0/T X-Received: by 2002:a63:5d20:: with SMTP id r32mr6900388pgb.332.1643384057397; Fri, 28 Jan 2022 07:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643384057; cv=none; d=google.com; s=arc-20160816; b=J5mpvNdmP4ccPIFE20lGk+0OlRHkkFXL1dIL4ICyCFz20WgXh+jg5J1XRocPw423x5 CIAh0i0WMIfy6/aaqT98kQnR1lKbJKGZPFEjpkkiYXkcfQV2+TwYiLEz9xquB6BdOlV4 uSd7Y5j5k8PpT0rbc0WaX7l90skHmop5fBugqH0P7rlPhxsRqwc50TE2J7ULR4Z5rL6l VPuOlLoXVL9oJjbC15s/RGpe1hwugB49ArUfEv4AAOl0XRgbvqeWcTD0sKMPRQ7CMDVj bJHDpUklV6F7e2TgfHH/cZsLVj4P5AuWshTDNil0CZbGrBxMQ5Duk6SWHNGXWcYJdmne 1P7A== 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=g12sPOs0qVOjch3Zc8Q38Gd/NGxtpUYFp0FAPolInZ0=; b=YnXldv5pqj7JnxKCUwWg3ottO5bQdiUIy2E6sIGn2dUXdVK+OPm3ayn+qlDU2+6JWZ N1sSenCXgyx0jsfD6WYOnpVwNpNQeOGWKGyMiv4Pf+nHf6VaNdKx4v/dfP/QOdk8Wjzq Y6+qBlruCCD1W36Le05V4bn6f5r0ldP9RPhVfXXlGgGKsQ7vJbKuYrNlKrLtTmG5mP4o KgZVOJzOE/GuXct8eaiCXqZB0tFnaon15xO+99zU8rcYXg0TCB1EvbbBC+KYYg2L1oU4 4WFG5wTx9pobPB5V+lWh6psgLy86bkvtSWp5BrORBB8Te3ZQMDtP7RYsqrzuPPYitZD1 2zQg== 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 f66si5754879pgc.420.2022.01.28.07.34.08; Fri, 28 Jan 2022 07:34:17 -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 S234786AbiA0SaD (ORCPT + 72 others); Thu, 27 Jan 2022 13:30:03 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:37814 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234767AbiA0SaC (ORCPT ); Thu, 27 Jan 2022 13:30:02 -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.95) (envelope-from ) id 1nD9Wy-0001eb-03; Thu, 27 Jan 2022 20:30:01 +0200 Message-ID: <9e0bd67fb408a4a0262ff094314039b900d035a3.camel@coelho.fi> From: Luca Coelho To: Kalle Valo Cc: linux-wireless@vger.kernel.org, lenb@kernel.org, johannes@sipsolutions.net Date: Thu, 27 Jan 2022 20:29:59 +0200 In-Reply-To: <86458042c4dfcaa6aa971c9ec37f1cc77fd95cfe.camel@coelho.fi> References: <87bl0fud2z.fsf@kernel.org> <86458042c4dfcaa6aa971c9ec37f1cc77fd95cfe.camel@coelho.fi> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3-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 14:09 +0200, Luca Coelho wrote: > 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") As we discussed on IRC, this is not the right fix. I have now finally had the time to fix it properly, so let's drop this patch. I'll send a new one soon. -- Cheers, Luca.