From patchwork Thu Nov 29 06:02:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1005081 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KUqbOGWZ"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4356PG5q15z9sNL; Thu, 29 Nov 2018 17:02:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gSFP4-0001KZ-CR; Thu, 29 Nov 2018 06:02:22 +0000 Received: from mail-pg1-f193.google.com ([209.85.215.193]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1gSFP2-0001KB-Lw for kernel-team@lists.ubuntu.com; Thu, 29 Nov 2018 06:02:20 +0000 Received: by mail-pg1-f193.google.com with SMTP id g189so434809pgc.5 for ; Wed, 28 Nov 2018 22:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=TGy0RAUHPKHTk8xrCwTWcY5QirFhjuw1dIVIaFdr6s0=; b=KUqbOGWZ26nyAIxz5hEjHAQaWnpJZaS/mn+vXWOadj3MaQSithNwd/dQcZvz/0Cnj7 lD3sWp2gd2yetsC1y55/FOvVfmkqHRwUB8G1bVDPSFDx04uC2hDi9NIChdrxacIUYDX3 Is/VH7AGfaSxKhZUNt6CboK+Eld1S8L6xs4i72Anb8N7MsOmQWEysY4P2Bw8rmBkEVUl RMCAW66Xjc/wz+62nTrbvupIsPYmytnG1o4KydjQsUFAmTmX5AwisCi4AnXlkXc3Liy8 MGzlR5yjtZ+P0Rg/mjfodvWtDIbMoPyED94sxhafjTd959o+sTllm9ObjiapewUHItAc x82g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=TGy0RAUHPKHTk8xrCwTWcY5QirFhjuw1dIVIaFdr6s0=; b=IomNFoDl134mNqglui74iSd98aXtxAwJDVRm50ZsbgQYYUDbAfS5ZAw3N2G18J6tOi h8CydF+jBgN8BZMBxWuumChwqZrS4Ii7msk0C1wCGqmUyYxs6YNwhDjJp50Rl0quAyCB oanM8p3fttVlanSNkhdNiL+cJ2j41EvtUU9fVtKMxBRbAe2LnltdtFgFvHOyIMtkZ4Fg ZZfIoBUds1txFhqrzjw7eWrCsxefixXAq02KjvY7SEnlD+N8aMUXedpIk6jQAF9dCrIU qnfk050FSiltH9V8aImCm7lySZJVjM5ZqLZNjdqjYvUj7fMKyiox/v9cXpldQV7KkePZ nOmw== X-Gm-Message-State: AA+aEWZD4+yqzerKTp4WDCzCWLqUlNBPnGxfKM4RPGYc47jzQWUea8im 37crnvHWHY7+QzcD0ZYpC2HIceb5 X-Google-Smtp-Source: AFSGD/Wnmad8fhgd5nVIi+RezxbtsSc9b2ajrnyfBzLu5YrFC6A6Z8HKvaLcOz3JWZyPUao19QRM4A== X-Received: by 2002:a63:af18:: with SMTP id w24mr146258pge.385.1543471338831; Wed, 28 Nov 2018 22:02:18 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id m20sm899856pgv.93.2018.11.28.22.02.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 22:02:18 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/1][SRU][B][OEM-B]SAUCE: ath10k: provide reset function for QCA9377 chip Date: Thu, 29 Nov 2018 14:02:11 +0800 Message-Id: <20181129060212.18932-2-acelan.kao@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181129060212.18932-1-acelan.kao@canonical.com> References: <20181129060212.18932-1-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1805607 The reset function helps with the S5 power consumption, make the power consumption reduce from 0.52W to 0.23W at S5. Signed-off-by: AceLan Kao Acked-by: Stefan Bader --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index e9c316274ee0..b4b88708a288 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -3254,7 +3254,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev, case QCA9377_1_0_DEVICE_ID: hw_rev = ATH10K_HW_QCA9377; pci_ps = true; - pci_soft_reset = NULL; + pci_soft_reset = ath10k_pci_warm_reset; pci_hard_reset = ath10k_pci_qca6174_chip_reset; targ_cpu_to_ce_addr = ath10k_pci_qca988x_targ_cpu_to_ce_addr; break;