Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10421916ybi; Wed, 24 Jul 2019 22:56:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgxPSlGP1f4+7d5wGtTnOKsQ6COhhc4f/NjhKJN8iSiC04QXSUDrkAOMNy/Cbt3uxCHDZH X-Received: by 2002:a17:90a:bd8c:: with SMTP id z12mr15727922pjr.60.1564034201151; Wed, 24 Jul 2019 22:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034201; cv=none; d=google.com; s=arc-20160816; b=fIN4uEsEbdUxdBfL1N2FVoU0EEEZHDdzGI14VsICE0JE1ekqLq6vw0gEEzVSA6ZpxE qTRQFq8O/AKW6dxebpMgtcs6UQg1Z6fsc1jn4VwBnhxW1PoMAjkIu4kDN4yjiYB1VP9k K2A7CmfJAiIvA8kuXWa4QnnEstpXC7sBP2rsBK9qdAl72X+2nziACpjkOJRYeruUaNA6 da81sKG6P0aJ1h1VrzjvzPyy39vokYoNdTE2tK3yjV9ISDV7B0VekdU+xrTVv+0pA687 PuFPpZj0tyXpzF7m8HNeua8cdhsN+FZg4JocQyoUHr4vI9A2wHxzEwCQ2+YjALizy8eg ItsQ== 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=zFQ4vYOR1+4X4BoJ+UGy/G5uI6GHTaioxI9OFCsIjXY=; b=dqI132OYo4wWH7NF9xP+vGMkU7KtWdcl4Pcl3DOWVp5bDp0bNq7ID5VSri+gt/teZu emxMokjX3Pef44meAuJ4qOdMtlu7IJpoXPHTMi7gjJiKvuNW2M4q9aLJFroAFIQpeCoS Fdq9Dbte/rkECoDFQtD7z6EfGl+y6QBloFO3N9TH08Ezao24zXIhAUviJC02K56HYYam DjQmAdG7msgd8s/yWxfjVarF4yLN6aDDJKUpzEDJhhfGLhY6Dt5+NnhkzBNnevjsqQIp UtEFZ78ioVtBihlxlpr0Mg2Wk2pJiIuib9z0ylU4i7jQpB5VchLau3/FxpPzyLwnabP5 80+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O9wNJf3j; 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 p22si18224265pli.255.2019.07.24.22.56.26; Wed, 24 Jul 2019 22:56:41 -0700 (PDT) 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=O9wNJf3j; 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 S2404048AbfGYFjW (ORCPT + 99 others); Thu, 25 Jul 2019 01:39:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:53480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404033AbfGYFjU (ORCPT ); Thu, 25 Jul 2019 01:39:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 9F11A22BEB; Thu, 25 Jul 2019 05:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033159; bh=XNQUl8afn8EbQ7zMCCfbFz2r3+bu+UEWgZdZNe72fGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O9wNJf3jpsiXohxo2tWoA0yCYIMVHANIlF2KMondetLSoFhgBbFGegjBRgJx9eVZc eMHKNIHsSTwlkbQ+kcMErVbDkY+OBEMlNWovip9CoBUUotXBJ0mlNkDJBEbM5324UE 6IBSo9XfWdJFahVlRqDJv02GpYCS7boPW5sXt+cc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqing Pan , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 111/271] ath10k: fix PCIE device wake up failed Date: Wed, 24 Jul 2019 21:19:40 +0200 Message-Id: <20190724191704.719451385@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 011d4111c8c602ea829fa4917af1818eb0500a90 ] Observed PCIE device wake up failed after ~120 iterations of soft-reboot test. The error message is "ath10k_pci 0000:01:00.0: failed to wake up device : -110" The call trace as below: ath10k_pci_probe -> ath10k_pci_force_wake -> ath10k_pci_wake_wait -> ath10k_pci_is_awake Once trigger the device to wake up, we will continuously check the RTC state until it returns RTC_STATE_V_ON or timeout. But for QCA99x0 chips, we use wrong value for RTC_STATE_V_ON. Occasionally, we get 0x7 on the fist read, we thought as a failure case, but actually is the right value, also verified with the spec. So fix the issue by changing RTC_STATE_V_ON from 0x5 to 0x7, passed ~2000 iterations. Tested HW: QCA9984 Signed-off-by: Miaoqing Pan Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- 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 677535b3d207..476e0535f06f 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -168,7 +168,7 @@ const struct ath10k_hw_values qca6174_values = { }; const struct ath10k_hw_values qca99x0_values = { - .rtc_state_val_on = 5, + .rtc_state_val_on = 7, .ce_count = 12, .msi_assign_ce_max = 12, .num_target_ce_config_wlan = 10, -- 2.20.1