From patchwork Mon Mar 13 22:49:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Hsu X-Patchwork-Id: 9622253 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 3454660414 for ; Mon, 13 Mar 2017 22:56:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25D8D2850D for ; Mon, 13 Mar 2017 22:56:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A87528526; Mon, 13 Mar 2017 22:56:27 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 144A62850D for ; Mon, 13 Mar 2017 22:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061AbdCMW4Z (ORCPT ); Mon, 13 Mar 2017 18:56:25 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:34683 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbdCMW4Y (ORCPT ); Mon, 13 Mar 2017 18:56:24 -0400 X-Greylist: delayed 371 seconds by postgrey-1.27 at vger.kernel.org; Mon, 13 Mar 2017 18:56:24 EDT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1489445783; x=1520981783; h=from:to:cc:subject:date:message-id:mime-version; bh=G11K+pMYfWjCmn0EDt6Cszh5Ez0Ss5m3xXooM54CyzI=; b=nDpbHtMpf9L2Nixpck+e4om1d+MDOFC8016ca10ag0VhySGR/JfLYmFY NpqXRmXQHild+CWpoop5SLXC6wyvliGzjMprj8F/fhtCSSXP56jq+YKiX 5vk/uZ3rI6P2ydfPKDbFFJPeCC0wN5OF+L+KjkGL8pVE5CuHrdtr/9KTd Q=; X-IronPort-AV: E=Sophos;i="5.36,161,1486454400"; d="scan'208";a="107426443" Received: from las-a1-dmz-lb-0102.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([65.197.215.149]) by sabertooth01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Mar 2017 15:50:11 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8465"; a="625109" X-MGA-submission: =?us-ascii?q?MDHUrldbtmum0CqY9iHLatMhuEqlFW2phB1nAJ?= =?us-ascii?q?iicPNc026kioqTFw6ZTr/UhF+mbMDQKenSV0vjO2oWWn7apHHmgeGi0b?= =?us-ascii?q?17UzxTJ7foEfTsLXB7z8TqE6YKzdAwcxFM6aFBU0nV5RErfH6H7E5yeh?= =?us-ascii?q?G4?= Received: from nalasexr01g.na.qualcomm.com ([10.49.56.53]) by ironmsg07-lv.qulacomm.com with ESMTP/TLS/RC4-SHA; 13 Mar 2017 15:50:11 -0700 Received: from ryanhsu-linux2.qualcomm.com (10.80.80.8) by NALASEXR01G.na.qualcomm.com (10.49.56.53) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 13 Mar 2017 15:50:10 -0700 From: To: , CC: Subject: [PATCH 4.11] ath10k: fix incorrect wlan_mac_base in qca6174_regs Date: Mon, 13 Mar 2017 15:49:03 -0700 Message-ID: <1489445343-8719-1-git-send-email-ryanhsu@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) To NALASEXR01G.na.qualcomm.com (10.49.56.53) 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 From: Ryan Hsu In the 'commit ebee76f7fa46 ("ath10k: allow setting coverage class")', it inherits the design and the address offset from ath9k, but the address is not applicable to QCA6174, which leads to a random crash while doing the resume() operation, since the set_coverage_class.ops will be called from ieee80211_reconfig() when resume() (if the wow is not configured). Fix the incorrect address offset here to avoid the random crash. Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2. Fixes: ebee76f7fa46 ("ath10k: allow setting coverage class") Cc: stable@vger.kernel.org Signed-off-by: Ryan Hsu --- 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 33fb268..d9f37ee 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -51,7 +51,7 @@ .rtc_soc_base_address = 0x00000800, .rtc_wmac_base_address = 0x00001000, .soc_core_base_address = 0x0003a000, - .wlan_mac_base_address = 0x00020000, + .wlan_mac_base_address = 0x00010000, .ce_wrapper_base_address = 0x00034000, .ce0_base_address = 0x00034400, .ce1_base_address = 0x00034800,