mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
qtnfmac: fix debugfs support for multiple cards
[ Upstream commit dd4c2260dab04f5ae7bdb79b9470e7da56f48145 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
32e1ac30b6
commit
9348d03492
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue