mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 15:06:46 +07:00
qtnfmac: fix debugfs support for multiple cards
Fix merge artifact for commit 0b68fe10b8
("qtnfmac: modify debugfs
to support multiple cards") and finally add debugfs support
for multiple qtnfmac wireless cards.
Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
4a33f21cef
commit
dd4c2260da
@ -130,6 +130,8 @@ static int qtnf_dbg_shm_stats(struct seq_file *s, void *data)
|
||||
|
||||
int qtnf_pcie_fw_boot_done(struct qtnf_bus *bus)
|
||||
{
|
||||
struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus);
|
||||
char card_id[64];
|
||||
int ret;
|
||||
|
||||
bus->fw_state = QTNF_FW_STATE_BOOT_DONE;
|
||||
@ -137,7 +139,9 @@ int qtnf_pcie_fw_boot_done(struct qtnf_bus *bus)
|
||||
if (ret) {
|
||||
pr_err("failed to attach core\n");
|
||||
} else {
|
||||
qtnf_debugfs_init(bus, DRV_NAME);
|
||||
snprintf(card_id, sizeof(card_id), "%s:%s",
|
||||
DRV_NAME, pci_name(priv->pdev));
|
||||
qtnf_debugfs_init(bus, card_id);
|
||||
qtnf_debugfs_add_entry(bus, "mps", qtnf_dbg_mps_show);
|
||||
qtnf_debugfs_add_entry(bus, "msi_enabled", qtnf_dbg_msi_show);
|
||||
qtnf_debugfs_add_entry(bus, "shm_stats", qtnf_dbg_shm_stats);
|
||||
|
Loading…
Reference in New Issue
Block a user