Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3040760pxp; Tue, 22 Mar 2022 10:49:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygJdJCYwSf0PUplurNAX7xO5cfa8hQ4MgLPZbfoOvWBhLL86YSaADywYohyVrj+l5nWXmy X-Received: by 2002:a63:ef03:0:b0:374:7286:14d0 with SMTP id u3-20020a63ef03000000b00374728614d0mr22740929pgh.552.1647971352957; Tue, 22 Mar 2022 10:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647971352; cv=none; d=google.com; s=arc-20160816; b=oJj69Je2oMNq5ClDCXMyQqfQC8V/uJbfJ1GyUE0X8q6hHegPULs45fo4hV0w8gh7UD BlYLCCbxYWpReRHl3A2oZ45cZy9m0SHzeUXmy5QFsPr0XmojTBgK+vLzfzM2dEnBd2u8 fLevh65gcw4K/13ZlQIidCdVt21I3zNVBi9A+gSvjKsh5p6aFaAGeAC6gKkgiCuF5kYk Aq5MvrXJpRTqQ21QhIERggK7JaZDE6RGC73IWeekzgrIv/nRjsfg1NiXCWyKFLcm6teR eV92RGfM/KYAgbUYBS7tYtr3c0TYDar+j9pLX5kpCTFNf5oqXxDN7pWHphaumI/dgzoO zmjQ== 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 :message-id:date:cc:to:from; bh=deGArbUQts/DLEz8MWaIbyCR/V0ENJjwdFVHa1g0hkw=; b=Mn+1E/noOEWfBo+vQGWc5MTjYK6bTbYBkV8ISybiBvxcPVVs/W4fmi2NFh5GHw0Qv1 AgOfnjMCgTJ4VSgx/3GrhdBzrFMv3xPWsPD9aEqlNj1IZybfS+pYbYj6UyKnrJCQ+NG3 RaDqi/61zDbAK3dEeVFPbeRMnu/7n/GAU+e0PSV3/BM6jTbpTmY3sOpkxH+hhdW+1lKW NmqYMasTKnPrUxEThVDSACa0MADFOmL5PwS8RqDsFLmE0FnHSq212/aa1hSh5mf+/MPx e3XOWplIyGobf2IknDfirpITeyvixKqCz7UiYBahP77x3ht2PNln6zPnvksI/4XS+7f5 x3EQ== 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 ch10-20020a056a00288a00b004fa3a8dff4esi5974826pfb.5.2022.03.22.10.48.52; Tue, 22 Mar 2022 10:49:11 -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 S235948AbiCVPlY (ORCPT + 70 others); Tue, 22 Mar 2022 11:41:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbiCVPlX (ORCPT ); Tue, 22 Mar 2022 11:41:23 -0400 Received: from farmhouse.coelho.fi (paleale.coelho.fi [176.9.41.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AB466CA3 for ; Tue, 22 Mar 2022 08:39:55 -0700 (PDT) Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] helo=kveik.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nWgbo-000d7v-AZ; Tue, 22 Mar 2022 17:39:45 +0200 From: Luca Coelho To: kvalo@kernel.org Cc: johannes@sipsolutions.net, socketcan@hartkopp.net, kuba@kernel.org, luca@coelho.fi, linux-wireless@vger.kernel.org Date: Tue, 22 Mar 2022 17:39:43 +0200 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: [PATCH] iwlwifi: mvm: Don't fail if PPAG isn't supported Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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, -- 2.35.1