Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3216534pxp; Tue, 22 Mar 2022 14:46:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJJeytV57C7xx3eM3YY7CxLsSorBiaCjY7TRnaCCqwpmBIdGrTvIEpFuuzsRLo4Pm/V8fr X-Received: by 2002:a05:6402:2811:b0:419:12:abd0 with SMTP id h17-20020a056402281100b004190012abd0mr28043602ede.143.1647985611066; Tue, 22 Mar 2022 14:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647985611; cv=none; d=google.com; s=arc-20160816; b=j/c8gVOlGowp8crko1s16zN5186v+6QfeVYN2BYpjFzzlzB6efRqrnFGz4abSCsXbI BD4tNHlbjEGm1f0Zs6OSpX9cNRqIJxeJVj+UhDLeWuyH5/L9yhsVgBefuDQEgq+hj1Lm QKW6Xarv5TvaSp5aCnjrN3kmsLq/fIh1NejJFUWFD9cfPXC3cHTMNwiUql4loavh98mN QOCMQNw9py/FIbNZLC2y1hSqLGUCgcFmx1g2pOLjUm8EdGLCWH7JlhXcvxlwN+n4e2ZX sv+rLF7qSveSgeHTpMH7CUE4H/ZGTP2kmKbRakkZM8Pjsn7vjevLILhh2Ckj2f/KGSkn tzFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :message-id; bh=O/EPS+5kkCoSfpQJllX8eNcxGRIZvkWrtTaisROqTj0=; b=O3/J75GFVKaziTYU0BRP+O/TvxRkn9Bg7JKgQYp6XTAL55d27GSBFdZTw4WNByE1TQ kgvrz/FXuJ9rSJvH0ZngmxqAtWZsVFEE+JORhSxpNpjeisDLHBYdj4LOxwyaFECDyaFz VxhVetVClKvVhjgm+glIATGz+rDKZW7umynlkzmP/Tag1cIIVmU/lu9fyEdN3waQqeo7 4of6ZkRR45dNumovGTY+oSM6T8YdNpBkyTnd0p+Edvp9j1hsmWO7Y7LD4aFVdSkPlwUc MSom5BelXyhoWeUmZySQ4O56PTNrVdgDKGPkEzYQGMKFXIRkLgFH5FcuzXfutIULxexV vV7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26-20020a17090628da00b006df76385e94si10217287ejd.820.2022.03.22.14.46.27; Tue, 22 Mar 2022 14:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231984AbiCVPpL convert rfc822-to-8bit (ORCPT + 70 others); Tue, 22 Mar 2022 11:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbiCVPpJ (ORCPT ); Tue, 22 Mar 2022 11:45:09 -0400 Received: from farmhouse.coelho.fi (paleale.coelho.fi [176.9.41.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94ABD1C911 for ; Tue, 22 Mar 2022 08:43:41 -0700 (PDT) Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] 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 1nWgfU-000d8O-8Q; Tue, 22 Mar 2022 17:43:34 +0200 Message-ID: <3166a024cd5bef43bf192418e95d3c75409a861f.camel@coelho.fi> From: Luca Coelho To: kvalo@kernel.org Cc: johannes@sipsolutions.net, socketcan@hartkopp.net, kuba@kernel.org, linux-wireless@vger.kernel.org Date: Tue, 22 Mar 2022 17:43:31 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.43.3-1+b1 MIME-Version: 1.0 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Subject: Re: [PATCH] iwlwifi: mvm: Don't fail if PPAG isn't supported Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2022-03-22 at 17:39 +0200, Luca Coelho wrote: > From: Miri Korenblit > > When we're copying the PPAG table into the cmd structure we're failing > if the table doesn't exist in ACPI or is invalid, or if the FW doesn't > support PPAG setting etc. > > This is wrong because those are valid scenarios. Fix this by not > failing in those cases. > > Fixes: e8e10a37c51c ("iwlwifi: acpi: move ppag code from mvm to fw/acpi") > Tested-by: Oliver Hartkopp > Signed-off-by: Miri Korenblit > Signed-off-by: Luca Coelho > --- > drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > index 4632d3ad1a2b..e842816134f1 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > @@ -1015,8 +1015,9 @@ int iwl_mvm_ppag_send_cmd(struct iwl_mvm *mvm) > int ret, cmd_size; > > ret = iwl_read_ppag_table(&mvm->fwrt, &cmd, &cmd_size); > + /* Not supporting PPAG table is a valid scenario */ > if(ret < 0) > - return ret; > + return 0; > > IWL_DEBUG_RADIO(mvm, "Sending PER_PLATFORM_ANT_GAIN_CMD\n"); > ret = iwl_mvm_send_cmd_pdu(mvm, WIDE_ID(PHY_OPS_GROUP, Hi, Jakub, this is the fix for the PPAG regression that we talked about earlier. If it's fine with Kalle, you can apply it directly to net- next to expedite it. Kalle can you ack? Thanks! -- Cheers, Luca.