Return-path: Received: from mail-wi0-f173.google.com ([209.85.212.173]:56982 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbaHSJkA (ORCPT ); Tue, 19 Aug 2014 05:40:00 -0400 Received: by mail-wi0-f173.google.com with SMTP id f8so5088136wiw.12 for ; Tue, 19 Aug 2014 02:39:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140819082300.16842.40769.stgit@potku.adurom.net> References: <20140819082038.16842.46876.stgit@potku.adurom.net> <20140819082300.16842.40769.stgit@potku.adurom.net> Date: Tue, 19 Aug 2014 11:39:59 +0200 Message-ID: (sfid-20140819_114005_160585_3CBEAAC1) Subject: Re: [PATCH v7 3/8] ath10k: save firmware debug log messages From: Michal Kazior To: Kalle Valo Cc: "ath10k@lists.infradead.org" , linux-wireless Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 19 August 2014 10:23, Kalle Valo wrote: > From: Ben Greear > > They may be dumped through the firmware dump debugfs > file. > > Signed-off-by: Ben Greear > Signed-off-by: Kalle Valo > --- > drivers/net/wireless/ath/ath10k/wmi.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c > index 23acbadeb8fa..eafc565240f1 100644 > --- a/drivers/net/wireless/ath/ath10k/wmi.c > +++ b/drivers/net/wireless/ath/ath10k/wmi.c > @@ -1290,6 +1290,16 @@ static int ath10k_wmi_event_debug_mesg(struct ath10k *ar, struct sk_buff *skb) > > trace_ath10k_wmi_dbglog(skb->data, skb->len); > > + spin_lock_bh(&ar->data_lock); > + > + /* First 4 bytes are a messages-dropped-due-to-overflow counter, > + * and should not be recorded in the dbglog buffer, so we skip > + * them. > + */ > + ath10k_debug_dbglog_add(ar, skb->data + 4, skb->len - 4); > + > + spin_unlock_bh(&ar->data_lock); > + > return 0; > } > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html