Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9936363ybi; Wed, 24 Jul 2019 12:38:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNyC/VqiMCWz6jmeA7Pi4XNuFbIgH+OSsq7uXqbFgNq+NZLfrdB6X6MGrmN1Makd4ohEzU X-Received: by 2002:a17:90a:db42:: with SMTP id u2mr89556222pjx.48.1563997112243; Wed, 24 Jul 2019 12:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563997112; cv=none; d=google.com; s=arc-20160816; b=aHPBRpLrb10lPYwwhwzf8kBpPl4mfluWs8U9Nq15tfp4/Jh6ILMnIYRvkE65cQ3Edr Lyj19/OrLyfwVJe6Ze6Hy9KtpNrKAvICM7/hLigBQQJPDlY/3nrlu+3vhzQNLAGW0HSD 7G679nfODS1vsKE67N6xTjl75h9eVn3Xg82T7vhgBbnRsMvpkPKXw8J/1qh3jlUw9Ksm sKX0xz+J3cfk0yLblHZPySs32z/us7cbDE+JAZWcziEabj7rzn4xQGKUarUfx5KSBjIL F1RNHsJUVwPX94jSpL2EJl+DNrbn4WCpf1O22fo0AKkSeF5ZwLNG2Ia2u4k4wsxdaHIj 5sBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e9ZZClxQOlSyttWRIyP5sF/5WjphY5F93sTgJlDtRm0=; b=0xih7OcQB2A1OLEPYn+vV0IbX2pDxGjT+3BrpL8F4P/eW0/6KNCBn1bacla/rQ4tD3 sXAGc6MQJz9P6X+yNb2l4jcp1KaZLLAHPxsudhPDMkqClmWc2DAPLvdU7EyM8fi5B57f JY0kaYlsGciHImZ5mjXYhyOFIFCSgDR3a/rsXYTEDJ9Yz98KbE8MyGLcDhfSfmi3V7R9 nOrTAvOzHiGk6vRHMcaohsBz6oM5DNpDAkuk+XUoOKs8e7InyE3WzjUc9UY0QvYQ79UF qNtG9cYHbSnYIclaDXUSS6aGNPE1BODYbh0iHQgGEgTfEBHcEYOFJLZMi5g1CF1H3Zrm U34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oTrOTvxx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15si17047013pgn.178.2019.07.24.12.38.17; Wed, 24 Jul 2019 12:38:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=oTrOTvxx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389395AbfGXThG (ORCPT + 99 others); Wed, 24 Jul 2019 15:37:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:37060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfGXThG (ORCPT ); Wed, 24 Jul 2019 15:37:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8081B21873; Wed, 24 Jul 2019 19:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997025; bh=i4iMC2HiM7ZuKWoLUuWdkdM6DFGBX4uCqEqwHSAD19c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oTrOTvxxKjdQ7pYLI2LLe4LfDxbhyrv59PekjsUBF2+511Py5+W0w/AHdvxVx5mBH lNM4rM7AAR/QAOp+Lzahvk6TOGIBsKKuw9RzZuJqPVDeKS+05W1SQZ/LpsjGBt69vj 1zLVML9Ac2WN9pueDUANCn3xpK9VnkBNrDFuXFTg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oren Givon , Luciano Coelho , Kalle Valo Subject: [PATCH 5.2 294/413] iwlwifi: add support for hr1 RF ID Date: Wed, 24 Jul 2019 21:19:45 +0200 Message-Id: <20190724191757.170286760@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oren Givon commit 498d3eb5bfbb2e05e40005152976a7b9eadfb59c upstream. The 22000 series FW that was meant to be used with hr is also the FW that is used for hr1 and has a different RF ID. Add support to load the hr FW when hr1 RF ID is detected. Cc: stable@vger.kernel.org # 5.1+ Signed-off-by: Oren Givon Signed-off-by: Luciano Coelho Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/iwl-csr.h | 1 + drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/iwl-csr.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-csr.h @@ -336,6 +336,7 @@ enum { /* RF_ID value */ #define CSR_HW_RF_ID_TYPE_JF (0x00105100) #define CSR_HW_RF_ID_TYPE_HR (0x0010A000) +#define CSR_HW_RF_ID_TYPE_HR1 (0x0010c100) #define CSR_HW_RF_ID_TYPE_HRCDB (0x00109F00) #define CSR_HW_RF_ID_TYPE_GF (0x0010D000) #define CSR_HW_RF_ID_TYPE_GF4 (0x0010E000) --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -3575,9 +3575,11 @@ struct iwl_trans *iwl_trans_pcie_alloc(s trans->cfg = &iwlax210_2ax_cfg_so_gf4_a0; } } else if (cfg == &iwl_ax101_cfg_qu_hr) { - if (CSR_HW_RF_ID_TYPE_CHIP_ID(trans->hw_rf_id) == - CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_HR) && - trans->hw_rev == CSR_HW_REV_TYPE_QNJ_B0) { + if ((CSR_HW_RF_ID_TYPE_CHIP_ID(trans->hw_rf_id) == + CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_HR) && + trans->hw_rev == CSR_HW_REV_TYPE_QNJ_B0) || + (CSR_HW_RF_ID_TYPE_CHIP_ID(trans->hw_rf_id) == + CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_HR1))) { trans->cfg = &iwl22000_2ax_cfg_qnj_hr_b0; } else if (CSR_HW_RF_ID_TYPE_CHIP_ID(trans->hw_rf_id) == CSR_HW_RF_ID_TYPE_CHIP_ID(CSR_HW_RF_ID_TYPE_HR)) {