From patchwork Fri Jul 3 13:33:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 6715351 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8B910C05AC for ; Fri, 3 Jul 2015 13:34:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DA0B204C9 for ; Fri, 3 Jul 2015 13:34:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0720C204F6 for ; Fri, 3 Jul 2015 13:34:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755415AbbGCNeD (ORCPT ); Fri, 3 Jul 2015 09:34:03 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:35175 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755388AbbGCNeB (ORCPT ); Fri, 3 Jul 2015 09:34:01 -0400 Received: by lagh6 with SMTP id h6so85449156lag.2 for ; Fri, 03 Jul 2015 06:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=Fz8a4L4dw2xzWY+OaaIq5sLmQVOuL9AV/XbgOa9gn9c=; b=slRAgrlYIomF0/w7bvis36Cqn6pMz7YwU/mcLbhQRYxJ95ChySF90xoxfRHqX2jJ/t q1H5HlZXxa9YGrBm09FIyyGAz0HVCXGyvakwBGke7k/TqTnyJRSANkEs+RXFOQE1ZzkP 3ELSkrW+2Dz25m1pq442A3jftUnq8O/PVjQh0= 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; bh=Fz8a4L4dw2xzWY+OaaIq5sLmQVOuL9AV/XbgOa9gn9c=; b=ISjatP1hgvcm2HBZL920uN+SrX1TbSrBmqdo4ClFQIepL+njMALYDprxF8+DreZddF LD5nT3O6POp+jD0xoqtA8+PRwbpa3M9XK4+Ka/J0m4fIwa81HsRipPBbNbej+dRK5BTy dJ8Dvz63qYEmj3vGM5rA2R+sr1xg0MOPE6QJZRPuJRBeHDNl5E6LYrivZd9OmGuK+A5a jL4sPPlcPbj230tWq9yRPU3rj7eZxMhPAbp71k2knvkd6yn7i3Nl63VjNkIAwS8bZ38m xpGhUEifQntuUernKjQdXYlUUPG+wISWe3ULFPKczDcVROgx7jJB/QYytH4+WKRcXYNf MgwQ== X-Gm-Message-State: ALoCoQl4v/WJFf09Wik/9TmAeCVOD8IplDQCQRlZulA1jo97o34RnE+iaIbFdhDdSJHmL3hW7vd1EVRbm6csttTuzKyzu3h2IowVXiFwqBRQYHXyipnmtawklcSRuWTc3yNaETlieegL X-Received: by 10.112.135.131 with SMTP id ps3mr35610689lbb.84.1435930439453; Fri, 03 Jul 2015 06:33:59 -0700 (PDT) Received: from uw000975.eu.tieto.com ([91.198.246.10]) by mx.google.com with ESMTPSA id w7sm2333059lag.42.2015.07.03.06.33.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 06:33:58 -0700 (PDT) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Bartosz Markowski Subject: [PATCH] ath10k: fix QCA61X4 boot up Date: Fri, 3 Jul 2015 15:33:49 +0200 Message-Id: <1435930429-3970-1-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 2.1.2 X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit "a521ee983d312db7 ath10k: Add new reg_address/mask to hw register table" commit has broken the QCA61x4 support, by providing wrong fw_indicator_address, which shall be 0x0003a028 instead of 0x00009028. User experience was a failing boot up sequence (crashing device during initialization) [ 181.663874] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002) [ 181.664787] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [ 181.688886] ath10k_pci 0000:02:00.0: device has crashed during init [ 181.688897] ath10k_pci 0000:02:00.0: failed to wait for target after cold reset: -70 [ 181.688902] ath10k_pci 0000:02:00.0: failed to reset chip: -70 [ 181.689774] ath10k_pci: probe of 0000:02:00.0 failed with error -70 Fix it by updating the address with correct value. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/hw.c b/drivers/net/wireless/ath/ath10k/hw.c index 1414e1f3c7ac..fef7ccf6e185 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -63,7 +63,7 @@ const struct ath10k_hw_regs qca6174_regs = { .soc_reset_control_ce_rst_mask = 0x00000001, .soc_chip_id_address = 0x000000f0, .scratch_3_address = 0x00000028, - .fw_indicator_address = 0x00009028, + .fw_indicator_address = 0x0003a028, .pcie_local_base_address = 0x00080000, .ce_wrap_intr_sum_host_msi_lsb = 0x00000008, .ce_wrap_intr_sum_host_msi_mask = 0x0000ff00,