Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
78c7e8f0
Commit
78c7e8f0
authored
Mar 02, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Driver core: add CONFIG_DEBUG_DRIVER to help track down driver core bugs easier.
parent
ca32c38e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
9 deletions
+44
-9
drivers/base/Kconfig
drivers/base/Kconfig
+11
-0
drivers/base/bus.c
drivers/base/bus.c
+4
-1
drivers/base/class.c
drivers/base/class.c
+4
-1
drivers/base/class_simple.c
drivers/base/class_simple.c
+4
-1
drivers/base/core.c
drivers/base/core.c
+4
-1
drivers/base/driver.c
drivers/base/driver.c
+4
-1
drivers/base/power/main.c
drivers/base/power/main.c
+4
-1
drivers/base/power/shutdown.c
drivers/base/power/shutdown.c
+5
-2
drivers/base/sys.c
drivers/base/sys.c
+4
-1
No files found.
drivers/base/Kconfig
View file @
78c7e8f0
...
@@ -8,4 +8,15 @@ config FW_LOADER
...
@@ -8,4 +8,15 @@ config FW_LOADER
require hotplug firmware loading support, but a module built outside
require hotplug firmware loading support, but a module built outside
the kernel tree does.
the kernel tree does.
config DEBUG_DRIVER
bool "Driver Core verbose debug messages"
depends on DEBUG_KERNEL
help
Say Y here if you want the Driver core to produce a bunch of
debug messages to the system log. Select this if you are having a
problem with the driver core and want to see more of what is
going on.
If you are unsure about this, say N here.
endmenu
endmenu
drivers/base/bus.c
View file @
78c7e8f0
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
*
*
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/module.h>
...
...
drivers/base/class.c
View file @
78c7e8f0
...
@@ -10,7 +10,10 @@
...
@@ -10,7 +10,10 @@
*
*
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/module.h>
...
...
drivers/base/class_simple.c
View file @
78c7e8f0
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
*
*
*/
*/
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <linux/kdev_t.h>
#include <linux/kdev_t.h>
...
...
drivers/base/core.c
View file @
78c7e8f0
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
*
*
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/err.h>
...
...
drivers/base/driver.c
View file @
78c7e8f0
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
*
*
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/module.h>
...
...
drivers/base/power/main.c
View file @
78c7e8f0
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
* ancestral dependencies that the subsystem list maintains.
* ancestral dependencies that the subsystem list maintains.
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include "power.h"
#include "power.h"
...
...
drivers/base/power/shutdown.c
View file @
78c7e8f0
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
*
*
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/device.h>
#include <linux/device.h>
#include <asm/semaphore.h>
#include <asm/semaphore.h>
...
@@ -54,7 +57,7 @@ void device_shutdown(void)
...
@@ -54,7 +57,7 @@ void device_shutdown(void)
down_write
(
&
devices_subsys
.
rwsem
);
down_write
(
&
devices_subsys
.
rwsem
);
list_for_each_entry_reverse
(
dev
,
&
devices_subsys
.
kset
.
list
,
kobj
.
entry
)
{
list_for_each_entry_reverse
(
dev
,
&
devices_subsys
.
kset
.
list
,
kobj
.
entry
)
{
pr_debug
(
"shutting down %s: "
,
dev
->
name
);
pr_debug
(
"shutting down %s: "
,
dev
->
bus_id
);
if
(
dev
->
driver
&&
dev
->
driver
->
shutdown
)
{
if
(
dev
->
driver
&&
dev
->
driver
->
shutdown
)
{
pr_debug
(
"Ok
\n
"
);
pr_debug
(
"Ok
\n
"
);
dev
->
driver
->
shutdown
(
dev
);
dev
->
driver
->
shutdown
(
dev
);
...
...
drivers/base/sys.c
View file @
78c7e8f0
...
@@ -12,7 +12,10 @@
...
@@ -12,7 +12,10 @@
* add themselves as children of the system bus.
* add themselves as children of the system bus.
*/
*/
#undef DEBUG
#include <linux/config.h>
#ifdef CONFIG_DEBUG_DRIVER
#define DEBUG 1
#endif
#include <linux/sysdev.h>
#include <linux/sysdev.h>
#include <linux/err.h>
#include <linux/err.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment