From patchwork Thu Feb 21 16:21:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 10824337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B9881399 for ; Thu, 21 Feb 2019 16:22:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86D9231998 for ; Thu, 21 Feb 2019 16:22:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84DBA319D2; Thu, 21 Feb 2019 16:22:15 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 30ADD319D9 for ; Thu, 21 Feb 2019 16:22:15 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=LtDtJPc7G+zy65Cs2anpAhkQP1gTtmKtyswYrJlbGXM=; b=oSk2GmStkSmY61wxd4q2WxYj8S /YPgINRv+H0bYNvckRylLhdtvECHXd4yadbU/8BFAJzVJEZ/hUch5DFyynvl/MNz+1qvgjsEkSjPb Lgelru82zoJ13aeYG0V3lZf20c7GsS1qgv2Pk9SSwvj1OwOGb7A2dPMBgpldFdv0rZR2l3wVNfivG xg9uVmbU1hjUNpD5RlR5WOxpI3JvoXLYMgcQfb0YpT37vz8SI2CL3gkcPVjYlXPzrFbyFIPxheuYE Qrgf07onE/RMVjYQo4+sYgu1k7+qpuG6IUOwQBsINRqUfuTWkN3L3CvTGxV45WRZjwOh64NkC7HGa +zYWV41A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwr6z-0002HB-CI; Thu, 21 Feb 2019 16:22:13 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwr6t-0002Aw-0F for ath10k@lists.infradead.org; Thu, 21 Feb 2019 16:22:08 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 626F560F32; Thu, 21 Feb 2019 16:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550766126; bh=Aa/WMHHzXxuVrhxwrUzH4oZfZhzhOm9of7SGso60Otw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UY976z24LrCgUgTR1xnin72RXBua8ZYntwKb+3FY5+xcSbTz3mk8IZ+JMFYh6kBQU Tmn+bMZugmRTYlGcEBra0quSGuFYm/FvQeLsMQd0pDj5amLGGca8WzauaGQwJka5E2 J18f6VNg5YDwCtB4r9imX/LnMGOAbv//Uj8u2OpY= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8716560C04; Thu, 21 Feb 2019 16:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550766125; bh=Aa/WMHHzXxuVrhxwrUzH4oZfZhzhOm9of7SGso60Otw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b1lyMzWoABo1byK6y6SENS5Ree4uk53sws8dDUudAlsOwKBx2Futv2j2gFjiIODMo bk78VlvXK2yGPDNeVQ4TgCTxUPHxtjuGiTFsgf75DG65tZwupKP+u10TgF/OrSvYMD BxiptBwe2DrstAG+TtNsgjo/oYgW5pHzvoI+jpg0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8716560C04 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: ath10k@lists.infradead.org Subject: [PATCH 2/4] ath10k: sdio: disable fwlog prints Date: Thu, 21 Feb 2019 18:21:56 +0200 Message-Id: <1550766118-31703-3-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550766118-31703-1-git-send-email-kvalo@codeaurora.org> References: <1550766118-31703-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190221_082207_065858_FB556FF2 X-CRM114-Status: UNSURE ( 9.42 ) 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: Alagu Sankar , linux-wireless@vger.kernel.org, Wen Gong MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alagu Sankar The SDIO firmware may turn it on based on scratch registers so disable the firmware log to avoid that. Co-developed-by: Wen Gong Signed-off-by: Alagu Sankar Signed-off-by: Wen Gong Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 0c62a61b5eac..7ccd6741c5b0 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -648,6 +648,13 @@ static void ath10k_init_sdio(struct ath10k *ar) param &= ~HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE; param |= HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET; ath10k_bmi_write32(ar, hi_acs_flags, param); + + /* Explicitly set fwlog prints to zero as target may turn it on + * based on scratch registers. + */ + ath10k_bmi_read32(ar, hi_option_flag, ¶m); + param |= HI_OPTION_DISABLE_DBGLOG; + ath10k_bmi_write32(ar, hi_option_flag, param); } static int ath10k_init_configure_target(struct ath10k *ar)