-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: wwan: iosm: move debugfs knobs into a subdir
The modem traces collection is a device (and so driver) specific option. Therefore, move the related debugfs files into a driver-specific subdirectory under the common per WWAN device directory. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> Reviewed-by: Loic Poulain <loic.poulain@linaro.org> Acked-by: M Chetan Kumar <m.chetan.kumar@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
- Loading branch information
Sergey Ryazanov
authored and
Jakub Kicinski
committed
Dec 9, 2021
1 parent
13b94fb
commit cf90098
Showing
6 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
/* | ||
* Copyright (C) 2020-2021 Intel Corporation. | ||
*/ | ||
|
||
#include <linux/debugfs.h> | ||
#include <linux/wwan.h> | ||
|
||
#include "iosm_ipc_imem.h" | ||
#include "iosm_ipc_trace.h" | ||
#include "iosm_ipc_debugfs.h" | ||
|
||
void ipc_debugfs_init(struct iosm_imem *ipc_imem) | ||
{ | ||
struct dentry *debugfs_pdev = wwan_get_debugfs_dir(ipc_imem->dev); | ||
|
||
ipc_imem->debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, | ||
debugfs_pdev); | ||
|
||
ipc_imem->trace = ipc_trace_init(ipc_imem); | ||
if (!ipc_imem->trace) | ||
dev_warn(ipc_imem->dev, "trace channel init failed"); | ||
} | ||
|
||
void ipc_debugfs_deinit(struct iosm_imem *ipc_imem) | ||
{ | ||
ipc_trace_deinit(ipc_imem->trace); | ||
debugfs_remove_recursive(ipc_imem->debugfs_dir); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only | ||
* | ||
* Copyright (C) 2020-2021 Intel Corporation. | ||
*/ | ||
|
||
#ifndef IOSM_IPC_DEBUGFS_H | ||
#define IOSM_IPC_DEBUGFS_H | ||
|
||
void ipc_debugfs_init(struct iosm_imem *ipc_imem); | ||
void ipc_debugfs_deinit(struct iosm_imem *ipc_imem); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters