From patchwork Fri Mar 1 14:50:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10835541 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 E1CDB188E for ; Fri, 1 Mar 2019 14:50:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9D012DA67 for ; Fri, 1 Mar 2019 14:50:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDF1E2EF4D; Fri, 1 Mar 2019 14:50:14 +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=unavailable 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 5BEFB2E438 for ; Fri, 1 Mar 2019 14:50:14 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=k5SipZHYTgxbm4bE1oGWYg+qyagNyBZVTTqOdCM0Zx0=; b=A4Oj5i7N2FlqEl 5IXAb+VXHkY5MsGp8uiAYm1ZGACEo93+uD0P6mx0p/oAlSEl7+whpgolkvR0sIcJY8Euv9zYdv3oQ lXrQIdus9IE6ltoL28E6+l2sgZmzz27n3c4Nr0saZhCz/bm5lewxNQWiFwFWI0DqT9FeBMgOGce5c ZVKIOFJdjfVUq9Duwk/uNZ4MV+PNFMKRh6jvq7yx1W6LktKhfrkOFgMjsFiKoGYLLrIC03xKXRAAa Ou3LWDndLKeofaSPKVyD6cG1BS1cCjSu6I3Veour1dX4UkFG5/G0FYyd6nxwDXBmMQYLsK0Uobfdc lfAa90xRacj/6tfSuQjg==; 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 1gzjUK-0003A1-D8; Fri, 01 Mar 2019 14:50:12 +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 1gzjUH-00039Z-CZ for ath10k@lists.infradead.org; Fri, 01 Mar 2019 14:50:10 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7DF1F60A05; Fri, 1 Mar 2019 14:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551451808; bh=gWOD/FO1FYGQyJfklSyR5LXbc5FXS4AUzjGbbUxY3NY=; h=From:To:Cc:Subject:Date:From; b=FHVXPDpHWb39i5q2yfIqYN5OQ0GENlZX7zHQTHd+d+BC2jld2AjjhFCBPNVfRjavV e9zuYI9DjcUSOQXgilNtpOVwBHMDHnO0nVMsSQO7oEgJySoWDa8EJpkKu2nR+Wgzq4 mgLW8wr3Upky75EA0xEmTrXtk+tfT/a6/R9rwZLs= Received: from govinds-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B852760128; Fri, 1 Mar 2019 14:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551451808; bh=gWOD/FO1FYGQyJfklSyR5LXbc5FXS4AUzjGbbUxY3NY=; h=From:To:Cc:Subject:Date:From; b=FHVXPDpHWb39i5q2yfIqYN5OQ0GENlZX7zHQTHd+d+BC2jld2AjjhFCBPNVfRjavV e9zuYI9DjcUSOQXgilNtpOVwBHMDHnO0nVMsSQO7oEgJySoWDa8EJpkKu2nR+Wgzq4 mgLW8wr3Upky75EA0xEmTrXtk+tfT/a6/R9rwZLs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B852760128 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=govinds@codeaurora.org From: Govind Singh To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: Move board id and fw version logging to info level Date: Fri, 1 Mar 2019 20:20:00 +0530 Message-Id: <20190301145000.22624-1-govinds@codeaurora.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_065009_471333_85FFF31E X-CRM114-Status: GOOD ( 10.06 ) 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: Govind Singh , linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Board id and fw version is not printed by default in qmi cap response message. Move board id and fw version logging to info level for default logging. [ 34.005399] ath10k_snoc a000000.wifi: qmi chip_id 0x30b chip_family 0x4001 board_id 0xff soc_id 0x40070000 [ 34.005432] ath10k_snoc a000000.wifi: qmi fw_version 0x3106836b fw_build_timestamp 2019-02-13 10:24 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.3.1-00875-QCAHLSWMTPL-1 Signed-off-by: Govind Singh --- drivers/net/wireless/ath/ath10k/qmi.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c index 54f783ceb147..2b086fa16040 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.c +++ b/drivers/net/wireless/ath/ath10k/qmi.c @@ -523,6 +523,7 @@ static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi) struct wlfw_cap_resp_msg_v01 *resp; struct wlfw_cap_req_msg_v01 req = {}; struct ath10k *ar = qmi->ar; + struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); struct qmi_txn txn; int ret; @@ -577,13 +578,13 @@ static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi) strlcpy(qmi->fw_build_id, resp->fw_build_id, MAX_BUILD_ID_LEN + 1); - ath10k_dbg(ar, ATH10K_DBG_QMI, - "qmi chip_id 0x%x chip_family 0x%x board_id 0x%x soc_id 0x%x", - qmi->chip_info.chip_id, qmi->chip_info.chip_family, - qmi->board_info.board_id, qmi->soc_info.soc_id); - ath10k_dbg(ar, ATH10K_DBG_QMI, - "qmi fw_version 0x%x fw_build_timestamp %s fw_build_id %s", - qmi->fw_version, qmi->fw_build_timestamp, qmi->fw_build_id); + if (!test_bit(ATH10K_SNOC_FLAG_REGISTERED, &ar_snoc->flags)) { + ath10k_info(ar, "qmi chip_id 0x%x chip_family 0x%x board_id 0x%x soc_id 0x%x", + qmi->chip_info.chip_id, qmi->chip_info.chip_family, + qmi->board_info.board_id, qmi->soc_info.soc_id); + ath10k_info(ar, "qmi fw_version 0x%x fw_build_timestamp %s fw_build_id %s", + qmi->fw_version, qmi->fw_build_timestamp, qmi->fw_build_id); + } kfree(resp); return 0;