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: 9464905 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 C9D5460459 for ; Wed, 7 Dec 2016 17:08:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4A91284F9 for ; Wed, 7 Dec 2016 17:08:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A954E2853E; Wed, 7 Dec 2016 17:08:17 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21ED728540 for ; Wed, 7 Dec 2016 17:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932514AbcLGRIQ (ORCPT ); Wed, 7 Dec 2016 12:08:16 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38163 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932215AbcLGRIM (ORCPT ); Wed, 7 Dec 2016 12:08:12 -0500 Received: by mail-wm0-f42.google.com with SMTP id f82so177089964wmf.1 for ; Wed, 07 Dec 2016 09:08:12 -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=QgG4NV7ZiW7W+5WwTVjnzGNZe64FnS9eFbFrSVa5/pov8ukksFTEs947mdtXLyONLm MZ9MTzKR6HUVSOGYxaMMdJllpbeBAn42bEo2M+vLQvp1wgHtmdQUxVapDsomdt2Ud8iX MZwMIDMGjngT85VD1GrVYU+X6GbztYJLPuuiwpaPncdmSEUJUXRVzIakcaKDG2tM0mIt vj9syJYG/0tDDtPLrmtiE8SHNG4zawl413yBkcdT0S8H/G2YSSSxLymPoSfN9pj8+AiZ WLd4Vn89TD4VP9cwRPXKOwDTwBSubIVSySfQ6FZmFWsyyZGqZ9FH+yggxhLFILdPmpa4 U8Iw== X-Gm-Message-State: AKaTC031zwFW5ysyPfqOCQPuB5kGiBHZfaMeAYFzXIh/gUrFP9ON1VDNzGyWB8lorxvgWVw3z42IsY4xzOfmLFm1+GjI+sFtQ/hSI3GC7Wow//r5SySln65ctli983hTXlckrTtPbjdngA== 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 Cc: linux-wireless@vger.kernel.org, Bartosz Markowski 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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);