mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
qtnfmac: fix debugfs support for multiple cards
[ Upstream commitdd4c2260da] Fix merge artifact for commit0b68fe10b8("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
32e1ac30b6
commit
9348d03492
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user