From patchwork Fri Nov 20 11:34:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 7667051 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 286259F2E2 for ; Fri, 20 Nov 2015 11:35:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58D5F20381 for ; Fri, 20 Nov 2015 11:35:49 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 11A3D20364 for ; Fri, 20 Nov 2015 11:35:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZzjyR-00011b-B5; Fri, 20 Nov 2015 11:35:27 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZzjyO-0008Pl-Kj for ath10k@lists.infradead.org; Fri, 20 Nov 2015 11:35:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1448019325; x=1479555325; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=zeV/QGKrD1W1ft5vGrOjum4ime7picZRw8nqDQyL2Vw=; b=Niy3HfyXXs2N0NvB9ABfkH2kFMvuSfNKk4VpDBjylWE/9RAzk0UP7SWX P1uEcnyHqaWuIxl9RE5Y2Cm2SJhR2U7MnoXpybQVsgT538D4F43PWjTn2 H3/RU48yTA3WVVqPqQsKwE4XnRFy+I3UPDnHH7qqPqtyh2PKthY2QbAp+ k=; X-IronPort-AV: E=McAfee;i="5700,7163,7990"; a="150898623" Received: from unknown (HELO Ironmsg03-L.qualcomm.com) ([10.53.140.110]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Nov 2015 03:35:04 -0800 X-IronPort-AV: E=Sophos; i="5.20,322,1444719600"; d="scan'208"; a="1039797704" Received: from nasanexm02e.na.qualcomm.com ([10.85.0.86]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 20 Nov 2015 03:35:02 -0800 Received: from euamsexm01a.eu.qualcomm.com (10.251.127.40) by nasanexm02e.na.qualcomm.com (10.85.0.86) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Fri, 20 Nov 2015 03:35:01 -0800 Received: from potku.adurom.net (10.80.80.8) by euamsexm01a.eu.qualcomm.com (10.251.127.40) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Fri, 20 Nov 2015 12:34:55 +0100 From: Kalle Valo To: Joerg Pommnitz Subject: Re: Yesterdays kernel/git/kvalo/ath.git failes with COMPEX WLE600VX References: <1749993920.7465237.1447934318588.JavaMail.yahoo.ref@mail.yahoo.com> <1749993920.7465237.1447934318588.JavaMail.yahoo@mail.yahoo.com> Date: Fri, 20 Nov 2015 13:34:48 +0200 In-Reply-To: <1749993920.7465237.1447934318588.JavaMail.yahoo@mail.yahoo.com> (Joerg Pommnitz's message of "Thu, 19 Nov 2015 11:58:38 +0000 (UTC)") Message-ID: <87a8q8uco7.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To euamsexm01a.eu.qualcomm.com (10.251.127.40) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151120_033524_893204_8C2A0607 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.6 (-------) 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: "ath10k@lists.infradead.org" Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 Joerg Pommnitz writes: > Hello all, > Kalles current git tree fails to initialize my COMPEX WLE600VX. The kernel log shows > [ 16.373978] ath10k_pci 0000:05:00.0: failed to wake up device : -110 > [ 16.374118] ath10k_pci: probe of 0000:05:00.0 failed with error -110 Can you send full dmesg, right from the beginning of the boot, please? It might give some hints. I have a similar problem in one of my laptop (lenovo thinkpad x230). The patch below helps with that one, but I haven't investigated it more yet. ret = pci_enable_device(pdev); if (ret) { ath10k_err(ar, "failed to enable pci device: %d\n", ret); --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2811,6 +2811,18 @@ static int ath10k_pci_claim(struct ath10k *ar) pci_set_drvdata(pdev, ar); + /* + * Without any knowledge of the Host, the Target may have been reset or + * power cycled and its Config Space may no longer reflect the PCI + * address space that was assigned earlier by the PCI infrastructure. + * Refresh it now. + */ + ret = pci_assign_resource(pdev, BAR_NUM); + if (ret) { + ath10k_err(ar, "failed to assign PCI space: %d\n", ret); + return ret; + } +