From patchwork Mon Jan 23 15:04:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 92225 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1266328qgi; Mon, 23 Jan 2017 07:05:29 -0800 (PST) X-Received: by 10.84.210.8 with SMTP id z8mr43249866plh.94.1485183929564; Mon, 23 Jan 2017 07:05:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z86si15918193pfj.81.2017.01.23.07.05.29; Mon, 23 Jan 2017 07:05:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750828AbdAWPF1 (ORCPT + 5 others); Mon, 23 Jan 2017 10:05:27 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:35119 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdAWPFX (ORCPT ); Mon, 23 Jan 2017 10:05:23 -0500 Received: by mail-wm0-f53.google.com with SMTP id r126so137251671wmr.0 for ; Mon, 23 Jan 2017 07:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Rraz87RSPLbp31PpmazMgb78bpeKsURONTYzDf6T9+w=; b=UcuQEfuGvqwuQ3JLAdf0EZ/3he8aNxQoJDQTSuVoyr+8jxaWX3A3o8Dul3zzQz3tpK izxXGmh0ChCCL2mbNOdNCwXcXStcRgcJ321HYzoix5/sI+u4TDr0saMK9tKIuWu7ZKH8 xpUTT8uvs/AZ+Gc5PClBU2Y5nt6d/UZzgLmmA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Rraz87RSPLbp31PpmazMgb78bpeKsURONTYzDf6T9+w=; b=dqqNgsUtzj1rWU7yRBbZALibZluoWmtI7K7LVpK9yzBGI0kkv+kfMEVPA3dwndwEvF p4c+vwTvAna2bXZv3xr4zThBK7s2ac1nV8bSXB7VWkVc0F5GXHm+nb8WSTzUA3Hpr03f 0Q2ErF9OqTKAMsJ9c0r4HmLsmM1DikJG70yJZI0W1kivk9VhpC6qetSGIB/+pztlopSl 6zNhrAYu3sdKno3o8mcfqFYBynPZ14hblX0G9T2VCtSUAtbQhxnebpYpXMPxJdcQSGI7 NXSwA8J4SU6Uslwy3OnmX7lq5sdC3wBbNQnWamQGwf8TQIiZOK1oLWuKi7tO+LFkupfa 3gOA== X-Gm-Message-State: AIkVDXKCU3xkl8/pJnIQRQ+OUhDMAQXeTwPl9Kaw1uy1LgoxquUZrriUNYAmgJr1aNm7EpTd X-Received: by 10.28.23.66 with SMTP id 63mr14674884wmx.46.1485183887553; Mon, 23 Jan 2017 07:04:47 -0800 (PST) Received: from localhost.localdomain (host-2-98-105-38.as13285.net. [2.98.105.38]) by smtp.gmail.com with ESMTPSA id k43sm15085354wrc.46.2017.01.23.07.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 07:04:46 -0800 (PST) From: Srinivas Kandagatla To: Kalle Valo Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 3/3] ath10k: fix typo in addr calculation Date: Mon, 23 Jan 2017 15:04:36 +0000 Message-Id: <1485183876-27080-3-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485183876-27080-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1485183876-27080-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org CORE_CTRL_ADDRESS is offset in register address space, it does not make sense to OR it to derive the final address. It looks like its a typo, so fix it. Signed-off-by: Srinivas Kandagatla --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.1 diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 855e3de..023ab10 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -1936,7 +1936,7 @@ static int ath10k_pci_wake_target_cpu(struct ath10k *ar) { u32 addr, val; - addr = SOC_CORE_BASE_ADDRESS | CORE_CTRL_ADDRESS; + addr = SOC_CORE_BASE_ADDRESS + CORE_CTRL_ADDRESS; val = ath10k_pci_read32(ar, addr); val |= CORE_CTRL_CPU_INTR_MASK; ath10k_pci_write32(ar, addr, val);