Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp15157imu; Thu, 8 Nov 2018 13:58:21 -0800 (PST) X-Google-Smtp-Source: AJdET5c0NPHZlYGjdcl0AUdSRiItGb3EGTnn4Ai2q7MICgm2GRhWdPNf0qgX0HY9fbHRPjwZ4otp X-Received: by 2002:a63:50b:: with SMTP id 11mr5077410pgf.411.1541714301299; Thu, 08 Nov 2018 13:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714301; cv=none; d=google.com; s=arc-20160816; b=nR/UvcpxkpBNPBf/hPcnlImNP6Jd6gqOBd0Iucopvfu6DS7BrdqjQxFWNrKKznverN D9Wn82oTBAdqg57FNjm1lM/CqJm6B0k5w1xm5aUyG/+uGmm2gNBn79zvfy68Npk/8Al6 ke07tvBiyzloLVyAelVSXw9BNweWOOoD5o98hQdv0mMTCVG8xoJFfSEo7G4vgSeWjIEO CNHsxQp3f5VGX40M8QI2KNe+kGzKxTdUuzyBTW4kyUnCTlgwJoBq4ZNGzvCj+iTR2OUS MZMC3Lt7iZmzIKQtmBaWDy7YlqAOby41JEh4fTer9QfTdk8hDmrfg/Ba1ifxc8ZGGEhe PtfA== 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=WGBEk1ccfP12anw0G06j7KrVp0MhoDt4T5fq3vSnd/A=; b=yyqLXFc6tRMBDJkhlqmIIm7IIgpc+LdjpZnVT0ZOssNPFxbBNQ4rMZCjgJhVtW8jdh UH/FWwSNmqG4cHZNb0B7j42EEtGyHXGnxfzZBCBjriH9u4NZSa13VXxg2I2l+YYGGl0E n4gMBlNDC/eMEL/qoEauqRWumHNHBn+NjmuV0h7oj8QcQQIDU39Df5eA/dOCOMHWv1mf G1HmoIP+Yn8Lr/lbIqye5egVV77Ons+AHq8Y5EN2V7ZCharRGYMRm67JcwHkUQMzash8 c9S1H28yjCfHQJFwCoCTZEfN3gYGElsLZ30f/ppJCaS+eFx0ZpXBVnW711rBmpdQSDDA 4mlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AB/KWq1a"; 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 w16si5108208pga.328.2018.11.08.13.58.05; Thu, 08 Nov 2018 13:58:21 -0800 (PST) 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="AB/KWq1a"; 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 S1729301AbeKIHeU (ORCPT + 99 others); Fri, 9 Nov 2018 02:34:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:50814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727590AbeKIHeT (ORCPT ); Fri, 9 Nov 2018 02:34:19 -0500 Received: from localhost (unknown [208.72.13.198]) (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 EE8A420892; Thu, 8 Nov 2018 21:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714212; bh=gio5bY3jcVUwYv2xl6Bl8Pity5JJANLqTPvxJBekw9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AB/KWq1aOqDtj9MM7VJfr26h15ZEGgXJlsdgQUlksrC429Ek/5AWkU9rvkUkxBMvQ 5wZW0IXgK1TYQ7V/2PUPJ0JK3w50nysus4lZoJtbOz61Z9NTnicPVDLeU72cnln5+V r5YD5V1OUg10Ux4jlp8nxzAlX5t0Xzmw7L2gQK10= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arik Nemtsov , Emmanuel Grumbach , Sasha Levin Subject: [PATCH 3.18 119/144] iwlwifi: pcie: correctly define 7265-D cfg Date: Thu, 8 Nov 2018 13:51:30 -0800 Message-Id: <20181108215106.629958962@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 2b0e2b0f7bfe9a9098bda6109176adcf78f9b7ac ] The trans cfg was not replaced for 7265-D cards. This led to a check of the min-NVM version against a 7265-C card, causing very-old 7265-D cards to operate incorrectly with the driver. Fixes: 3fd0d3c170ad ("iwlwifi: pcie: support 7265-D devices") Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach Signed-off-by: Sasha Levin --- drivers/net/wireless/iwlwifi/pcie/drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/iwlwifi/pcie/drv.c b/drivers/net/wireless/iwlwifi/pcie/drv.c index 8407ce5f672f..4c7be34219d7 100644 --- a/drivers/net/wireless/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/iwlwifi/pcie/drv.c @@ -533,8 +533,10 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) else if (cfg == &iwl7265_n_cfg) cfg_7265d = &iwl7265d_n_cfg; if (cfg_7265d && - (iwl_trans->hw_rev & CSR_HW_REV_TYPE_MSK) == CSR_HW_REV_TYPE_7265D) + (iwl_trans->hw_rev & CSR_HW_REV_TYPE_MSK) == CSR_HW_REV_TYPE_7265D) { cfg = cfg_7265d; + iwl_trans->cfg = cfg_7265d; + } #endif pci_set_drvdata(pdev, iwl_trans); -- 2.17.1