From patchwork Wed Dec 7 17:07:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 9464919 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6815B6022E for ; Wed, 7 Dec 2016 17:09:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 505772853F for ; Wed, 7 Dec 2016 17:09:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4504F28541; Wed, 7 Dec 2016 17:09:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D59CE2853F for ; Wed, 7 Dec 2016 17:09:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEfil-0002LU-Iv; Wed, 07 Dec 2016 17:09:31 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEfhq-0001ML-F8 for ath10k@lists.infradead.org; Wed, 07 Dec 2016 17:09:04 +0000 Received: by mail-wm0-x22d.google.com with SMTP id g23so177905813wme.1 for ; Wed, 07 Dec 2016 09:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4X94myYZwqvvgpbQj+EejbiwKuyVg668+rVNKoWVLNM=; b=mhvb6hz7NQu4/0AQKUcS8GsJ2B9yyOXZTgPOBIQcwayl0fIOQsNTkH0h2ZCnt7MNfW 7ddBPlm2FY3amLHw7aRak2Qr9Unm9y10cewGBEqz5tLqyZZLAayjUdze1R14yDB7dGc+ qiS9dYrob2fL+exDGhMjcLydjN/4B7u92nhtk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4X94myYZwqvvgpbQj+EejbiwKuyVg668+rVNKoWVLNM=; b=nOQ3fwRoDEieMmh02AQazbxK3yijnZ79/wNgDTRJppnVBSrMJbdYzhrXj3PWK3BKdm VfZMUG9iD9CvrfKSbAoq3up6QYSrljeCutHTn1PN5oC/oAcuzIc2Xr8x9731KrwvbF50 BKJxGuCWFaPejDiQVZDhT9Na1uh+NtiNKWgImLJMbO9HxDKrnTuQCUjKIeGiNf0Iznkm ZJFUtr8+/llYwtKj5eW+g8YKgixd3zIknxSoHHj4N5HtNbKUmkdWygnCYwlVU/BteDz7 SaeTKZ8qz31cAyqClpgNZbblKOCWoPxtO12GiRQ7adcsjfpXuTjKiUK0R1UNbPoXmEfp s84Q== X-Gm-Message-State: AKaTC02C66VP4UJFze7N5jevv9vNGqD73fjwXvlvF8rYoj6yVIwsJkDoL/lZxkDLm+JqW65T9LoVJKNc7Gl2t85ctQcSHOUFsNQGBZ3ySW+RJEFlQlEhZ13J1pKpei48x2sO7oL4CvQFtBk6S3piLTz25sp4fGa2NDlW9nKJZEc5XfqXnsFaLrgsy0O9Lm+RApIMvt0= X-Received: by 10.25.196.72 with SMTP id u69mr21259579lff.32.1481130491399; Wed, 07 Dec 2016 09:08:11 -0800 (PST) Received: from uw000975.eu.tieto.com ([91.198.246.10]) by smtp.gmail.com with ESMTPSA id x17sm1374247lja.6.2016.12.07.09.08.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 09:08:10 -0800 (PST) From: Bartosz Markowski To: ath10k@lists.infradead.org Subject: [PATCH 2/5] ath10k: override CE5 config for QCA9377 Date: Wed, 7 Dec 2016 18:07:31 +0100 Message-Id: <1481130454-27244-2-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1481130454-27244-1-git-send-email-bartosz.markowski@tieto.com> References: <1481130454-27244-1-git-send-email-bartosz.markowski@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161207_090835_126195_C5A851A4 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, Bartosz Markowski MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Similarly to QCA6174, QCA9377 requires the CE5 configuration to be available for other feature. Use the ath10k_pci_override_ce_config() for it as well. This is required for TF2.0 firmware. Previous FW revisions were working fine without this patch. Fixes: a70587b3389a ("ath10k: configure copy engine 5 for HTT messages") Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 983f65bbb7fb..85367006a80a 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -3132,7 +3132,7 @@ int ath10k_pci_setup_resource(struct ath10k *ar) setup_timer(&ar_pci->rx_post_retry, ath10k_pci_rx_replenish_retry, (unsigned long)ar); - if (QCA_REV_6174(ar)) + if (QCA_REV_6174(ar) || QCA_REV_9377(ar)) ath10k_pci_override_ce_config(ar); ret = ath10k_pci_alloc_pipes(ar);