From patchwork Thu May 7 10:31:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 6356601 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 0120D9F32B for ; Thu, 7 May 2015 10:32:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22EBF2038C for ; Thu, 7 May 2015 10:32:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D16220376 for ; Thu, 7 May 2015 10:32:01 +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 1YqJ5p-0005wZ-PD; Thu, 07 May 2015 10:31:49 +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 1YqJ5m-0005p8-Vc for ath10k@lists.infradead.org; Thu, 07 May 2015 10:31:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1430994706; x=1462530706; h=from:to:cc:subject:date:message-id:mime-version; bh=YLwMlXixJE02npFe7zYWTDzmvq4QxqgzWNzh0CWqer4=; b=ZgQiWs1DrQ1uv5FRBZS6WqxzF87m9A6E3fX5W1j0mbX+KPw2RCsVi7U6 GyODP4fNke/0Vdprz8DfK7VujWjURPZUKDZfx5X7U2HXe3ypUpWTKx5yS Q9VzY2FGhYnOvIeudNhLjlz1kjIsF0NLezhpdlNX4T+EnqeVKkOYd85fw A=; X-IronPort-AV: E=McAfee;i="5700,7163,7793"; a="117016625" Received: from ironmsg03-l.qualcomm.com ([172.30.48.18]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 May 2015 03:31:23 -0700 X-IronPort-AV: E=Sophos;i="5.13,384,1427785200"; d="scan'208";a="904662361" Received: from nasanexm02b.na.qualcomm.com ([10.85.0.42]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 07 May 2015 03:31:23 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by nasanexm02b.na.qualcomm.com (10.85.0.42) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 7 May 2015 03:31:22 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 7 May 2015 16:01:14 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 07 May 2015 16:01:04 +0530 From: Rajkumar Manoharan To: Subject: [PATCH v3] ath10k: Bypass PLL setting on target init for QCA9888 Date: Thu, 7 May 2015 16:01:03 +0530 Message-ID: <1430994663-30006-1-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.3.7 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01b.ap.qualcomm.com (10.252.127.11) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150507_033147_114920_22D4A2F5 X-CRM114-Status: UNSURE ( 7.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.1 (-----) Cc: linux-wireless@vger.kernel.org, Rajkumar Manoharan X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Some of of qca988x solutions are having global reset issue during target initialization. Bypassing PLL setting before downloading firmware and letting the SoC run on REF_CLK is fixing the problem. Corresponding firmware change is also needed to set the clock source once the target is initialized. Since 10.2.4 firmware is having this ROM patch, applying skip_clock_init only for 10.2.4 firmware versions. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath10k/core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index bcccae1..cb34619 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -1084,6 +1084,16 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode) if (status) goto err; + if ((ar->hw_rev == ATH10K_HW_QCA988X) && + (ar->wmi.op_version == ATH10K_FW_WMI_OP_VERSION_10_2_4)) { + status = ath10k_bmi_write32(ar, hi_skip_clock_init, 1); + if (status) { + ath10k_err(ar, "could not write skip_clock_init (%d)\n", + status); + goto err; + } + } + status = ath10k_download_fw(ar, mode); if (status) goto err;