ath10k: show hardware and firmware info prints only once
This makes ath10k a lot less spammy by default. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
@@ -832,10 +832,14 @@ int ath10k_core_start(struct ath10k *ar)
|
|||||||
ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1;
|
ar->free_vdev_map = (1 << TARGET_NUM_VDEVS) - 1;
|
||||||
INIT_LIST_HEAD(&ar->arvifs);
|
INIT_LIST_HEAD(&ar->arvifs);
|
||||||
|
|
||||||
ath10k_info("%s (0x%x) fw %s api %d htt %d.%d\n",
|
if (!test_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags))
|
||||||
ar->hw_params.name, ar->target_version,
|
ath10k_info("%s (0x%x) fw %s api %d htt %d.%d\n",
|
||||||
ar->hw->wiphy->fw_version, ar->fw_api,
|
ar->hw_params.name, ar->target_version,
|
||||||
ar->htt.target_version_major, ar->htt.target_version_minor);
|
ar->hw->wiphy->fw_version, ar->fw_api,
|
||||||
|
ar->htt.target_version_major,
|
||||||
|
ar->htt.target_version_minor);
|
||||||
|
|
||||||
|
__set_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
@@ -313,6 +313,7 @@ enum ath10k_fw_features {
|
|||||||
enum ath10k_dev_flags {
|
enum ath10k_dev_flags {
|
||||||
/* Indicates that ath10k device is during CAC phase of DFS */
|
/* Indicates that ath10k device is during CAC phase of DFS */
|
||||||
ATH10K_CAC_RUNNING,
|
ATH10K_CAC_RUNNING,
|
||||||
|
ATH10K_FLAG_FIRST_BOOT_DONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ath10k {
|
struct ath10k {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@@ -1925,7 +1926,8 @@ static int ath10k_pci_hif_power_up(struct ath10k *ar)
|
|||||||
else
|
else
|
||||||
irq_mode = "legacy";
|
irq_mode = "legacy";
|
||||||
|
|
||||||
ath10k_info("pci irq %s\n", irq_mode);
|
if (!test_bit(ATH10K_FLAG_FIRST_BOOT_DONE, &ar->dev_flags))
|
||||||
|
ath10k_info("pci irq %s\n", irq_mode);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user