[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210603125534.638672-1-adrian.ratiu@collabora.com>
Date: Thu, 3 Jun 2021 15:55:33 +0300
From: Adrian Ratiu <adrian.ratiu@...labora.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, kernel@...labora.com,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 0/1] Initialize debugfs/ksysfs earlier?
Hi Greg & all,
I would like to add a new debugfs file like in the next patch but
I'm having a problem with commit 56348560d495 ("debugfs: do not
attempt to create a new file before the filesystem is initalized").
The problem is debugfs is initialized after the driver core, during
the core initcall, so I get an -ENOENT failure due to the above commit.
My first reaction is to move the ksysfs_init() and debugfs_init() calls
before the driver core init which works. Would that be ok?
An alternative would be to create the new debugfs file somewhere else
than the driver core, but I'm not sure where would be a good location,
maybe in debugfs_init()? Doesn't seem right.
Any guidance is appreciated, thank you,
Adrian
Adrian Ratiu (1):
drivers: base: Expose probe failures via debugfs
drivers/base/core.c | 76 +++++++++++++++++++++++++++++++++++++++++++--
lib/Kconfig.debug | 23 ++++++++++++++
2 files changed, 96 insertions(+), 3 deletions(-)
--
2.31.1
Powered by blists - more mailing lists