Thread (5 messages) 5 messages, 3 authors, 2021-11-28

Re: [PATCH V3 net-next 1/2] net: wwan: common debugfs base dir for wwan device

From: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Date: 2021-11-28 16:55:20

Hello,

On Sat, Nov 20, 2021 at 7:14 PM M Chetan Kumar
[off-list ref] wrote:
This patch set brings in a common debugfs base directory
i.e. /sys/kernel/debugfs/wwan/ in WWAN Subsystem for a
WWAN device instance. So that it avoids driver polluting
debugfs root with unrelated directories & possible name
collusion.

Having a common debugfs base directory for WWAN drivers
eases user to match control devices with debugfs entries.

WWAN Subsystem creates dentry (/sys/kernel/debugfs/wwan)
on module load & removes dentry on module unload.

When driver registers a new wwan device, dentry (wwanX)
is created for WWAN device instance & on driver unregister
dentry is removed.

New API is introduced to return the wwan device instance
dentry so that driver can create debugfs entries under it.
Thank you for taking care of the debugfs implementation for the WWAN core.

Please find my follow-up series that tweak the IOSM/WWAN debugfs
interface a bit:
https://lore.kernel.org/all/20211128125522.23357-1-ryazanov.s.a@gmail.com (local)

-- 
Sergey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help