From patchwork Tue Apr 4 06:18:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 96687 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp48297qgd; Mon, 3 Apr 2017 23:18:27 -0700 (PDT) X-Received: by 10.98.149.147 with SMTP id c19mr21038602pfk.36.1491286707007; Mon, 03 Apr 2017 23:18:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si746909pgf.57.2017.04.03.23.18.26; Mon, 03 Apr 2017 23:18:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 S1752482AbdDDGS0 (ORCPT + 6 others); Tue, 4 Apr 2017 02:18:26 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:36093 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbdDDGSZ (ORCPT ); Tue, 4 Apr 2017 02:18:25 -0400 Received: by mail-pg0-f42.google.com with SMTP id g2so140815045pge.3 for ; Mon, 03 Apr 2017 23:18:25 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=aOn0rH8E18s2UPmSH3X5OOoIuN5ob2pcg0w+Uqx6pPw=; b=jTXSjMeqEbJFEGhgHApm776BzBY2eFlfkhd86pyK+P0azsrKT+WEbh6IAKZssD877i cX1J9ONji9rJ5BfMZH4HrjbDiZ4+d1aw1JrIi5k8Bk1TIyd7D5MyTOdVYO8QRk2i/c3R rxyMATIhshHFuSN7vhh2ddTo8lMDltTJthg58= 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:mime-version:content-transfer-encoding; bh=aOn0rH8E18s2UPmSH3X5OOoIuN5ob2pcg0w+Uqx6pPw=; b=aXKiBaQ8wuZllVVOxRk210I0B1h8l+iD1QRawf0nxmUX3WSpUyPU5bYCy+X1SBPAem RAD+eCtI3h+wdViq4+k/rqBgcK+VwAfbH58WbI6ezYhZk8bXGJ4yCz5W+fCO8uaOXZSZ 8R7hblk6F6MdNucKWsCtmWGN10nHQTBEUAaf7tA23GEGiRkpSgUNaV9i5/cCDV6O0UYT zu9eeUErFoZDS3rEnGpqfDQ7JU9+Em3CFKyB8fIfXdM6wdQTnKffcIOskeJMF4vbyO+g RPNVy11h/FsC/VrONPKi1ZY+jGdHCRSMkipgZdcHXuAF4i21TKCR5M8DjBdt8qB7ZSAB LKCw== X-Gm-Message-State: AFeK/H1rczCG4v3mabt7fy8Osc9AhQjNNt4swJRm5CEeGqj00UsW6iFfowK6L20yqNeunsrT X-Received: by 10.99.119.69 with SMTP id s66mr21727839pgc.196.1491286703956; Mon, 03 Apr 2017 23:18:23 -0700 (PDT) Received: from localhost.localdomain ([106.51.240.246]) by smtp.gmail.com with ESMTPSA id m20sm29331500pgd.32.2017.04.03.23.18.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Apr 2017 23:18:23 -0700 (PDT) From: Amit Pundir To: gregkh@linuxfoundation.org Cc: stable@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Kalle Valo Subject: [PATCH 25/33] brcmfmac: be more verbose when PSM's watchdog fires Date: Tue, 4 Apr 2017 11:48:04 +0530 Message-Id: <1491286688-31314-6-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491286688-31314-1-git-send-email-amit.pundir@linaro.org> References: <1491286688-31314-1-git-send-email-amit.pundir@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Rafał Miłecki It's important to inform user so he knows things went wrong. He may also want to get memory dump for further debugging purposes. Signed-off-by: Rafał Miłecki Acked-by: Arend van Spriel Signed-off-by: Kalle Valo (cherry picked from commit 36401cb7ffae731295a6dd1ce2b40d7ad74245f4) Signed-off-by: Amit Pundir --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c index 6f8a4b0..f4644cf 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c @@ -58,10 +58,18 @@ static int brcmf_debug_psm_watchdog_notify(struct brcmf_if *ifp, const struct brcmf_event_msg *evtmsg, void *data) { + int err; + brcmf_dbg(TRACE, "enter: bsscfgidx=%d\n", ifp->bsscfgidx); - return brcmf_debug_create_memdump(ifp->drvr->bus_if, data, - evtmsg->datalen); + brcmf_err("PSM's watchdog has fired!\n"); + + err = brcmf_debug_create_memdump(ifp->drvr->bus_if, data, + evtmsg->datalen); + if (err) + brcmf_err("Failed to get memory dump, %d\n", err); + + return err; } void brcmf_debugfs_init(void)