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: 9622251 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 A3FDC60492 for ; Mon, 13 Mar 2017 22:50:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89D6B28517 for ; Mon, 13 Mar 2017 22:50:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C5C82851E; Mon, 13 Mar 2017 22:50:45 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 270BF28517 for ; Mon, 13 Mar 2017 22:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=69fO6S57RrwYkdNrXvrJQaU0erh8iWtjX6GeEiqV8S0=; b=RFsshrRa7OCxyg IICVTKv89oSpT0tOWVKHKGJdFOzNgpxW1LsntV4ThF3HOVkJaaWOTpbb5S6cj/hjGlBVdLr5HXc7s 4SXV6Uo1jMg74ZrCnVfkjzEXWRsCzMFHQ/mK8Qv20pl3TUgX+0yIn3NPvDRjK0af1RYInt5R3delR sqwqGj+AK9lqDpInTbaxqPt08HinEGnHNFM1D0FNu70pVxRGOUYVcOPGk8+mmozGi91psVN+So5Ot QsqxwIgBM1pLJmnR6vmg/0xIkRR/PVEFJ4uPUuMZUEZB3fke1PAeVI1/rGsb/9oQTj/uu0NZCK9dy Y7d7iykkAHNXLKFWHXkQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cnYnU-0003OO-Ch; Mon, 13 Mar 2017 22:50:36 +0000 Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnYnR-0003N3-36 for ath10k@lists.infradead.org; Mon, 13 Mar 2017 22:50:35 +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=1489445433; x=1520981433; h=from:to:cc:subject:date:message-id:mime-version; bh=G11K+pMYfWjCmn0EDt6Cszh5Ez0Ss5m3xXooM54CyzI=; b=Nek/Wxaf1QIZ7o7BircdkTnG7obiP1XcjbNKk4UpCaKCx75CR+3ObJpi UEmV/TCITpv73jb04ScnVJYNuo2ye6Rih80MGrmuvL3JCV9SoqDWNrTJj m9/MjrrCIOSrhrOhnYLafWosnTyuvJw6tRfHn3L/a8/lASw+n2WRX5i5e I=; X-IronPort-AV: E=Sophos;i="5.36,161,1486454400"; d="scan'208";a="107426444" Received: from lv1-pdmz-css.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([65.197.215.5]) 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: , 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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170313_155033_209614_737ADD7C X-CRM114-Status: UNSURE ( 7.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ryanhsu@qca.qualcomm.com Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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,