| Age | Commit message (Collapse) | Author | Files | Lines |
|
Whitespace and formatting changes (a,b,c -> a, b, c) in drivers/base
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
|
|
|
|
If a specific driver subsystem needs a name field, they should implement it
for just that subsystem.
|
|
- Only present when CONFIG_PM=y.
- Contains 'state' file for controlling power state with new PM
infrastructure.
|
|
- Add struct device::detach_state, which tells the core what state to put
the device in when it's detached from its driver (on module removal).
This is a value in the range of 0-4, with 0 being On and meaning 'Do
Nothing', 4 being Off, meaing calling ->shutdown() for the device, and
1-3 being low-power states, meaning call ->suspend() for the device.
- Add per-device sysfs file 'detach_state' to control the value of the
field.
- Add device_device_shutdown() function, and call it from bus.c::
device_detach_driver().
|
|
It's a slow afternoon.
|
|
- Fixup struct device_attribute.
- Fix the default device attributes.
|
|
Remove @off and @count from the sysfs_ops, and the core attribute methods.
|
|
drivers/base relies on device.h pulling in sched.h pulling in the rest
of the world. Add some explicit dependencies in preparation for removing
sched.h from device.h.
|
|
- Define a device subsystem and register it on startup.
- Fill it in with fields converted from driverfs-style fields.
- Convert device_{create,remove}_file() to create files in sysfs.
- Add default device attributes to device subsystem.
- Make sure devices get proper kobject familial pointers and that the kobjects
are registered.
|
|
multiple states.
Adapted from Greg KH:
- add multiple possible enumerated states a device can be in: UNINITIALIZED, INITIALIZED,
REGISTERED, and GONE.
- Check whether device is INITIALIZED or REGISTERED in device_present().
- Change struct device::current_state to ::power_state to better reflect what it is.
|
|
parameter, and just __stringify the name instead.
Update all the users of the macros.
|
|
DEVICE_ATTR macro.
|
|
It may seem gratuitous, but it's what we really want.
driverfs files are meant to expose attributes of various kernel objects, so in that sense,
the change adds more accurate meaning to the object.
Plus, we will soon gain the ability to expose attributes of drivers (both device and bus)
themselves, and we want to be able to have each mean something reasonable.
This changes driverfs and the device model core (but none of the other users)
|
|
the commands it supported were minimal and probably broken and the comments were wrong.
|
|
|
|
Big bits first, I'll redo the smaller bits tomorrow after some sleep.
Same as last time, rediffed against pre5
|
|
Patch 3: Make default callbacks simpler.
I want to move as much to a 1 file/1 value model as possible. I haven't
come up with a clean way to enforce it except via social pressure.
This patch is a step in that direction. It:
- Reduces the output of 'power' to just the decimal state of the device
- Adds a 'name' file which exports just the device name
- Reduces the 'status' file to just export the bus ID. (This will change,
since the bus ID is obvious based on what directory you're in, but it's
another patch at another time)
|
|
- Doug Ledford: i810 audio driver update
- Evgeniy Polyakov: update various SCSI drivers to new locking
- David Howells: syscall latency improvement, try 2
- Francois Romieu: dscc4 driver update
- Patrick Mochel: driver model fixes
- Andrew Morton: clean up a few details in ext3 inode initialization
- Pete Wyckoff: make x86 machine check print out right address..
- Hans Reiser: reiserfs update
- Richard Gooch: devfs update
- Greg KH: USB updates
- Dave Jones: PNPBIOS
- Nathan Scott: extended attributes
- Corey Minyard: clean up zlib duplication (triplication..)
|
|
- Asit Mallick: mtrr update
- Patrick Mochel: split up kernel/device.c into drivers/base
- Mikael Pettersson/Al Viro: fix missing in-core inode initialization
in ext2 introduced by Al's inode trimming
- David Miller: sparc and network updates
- Frank Davis: firewire video mmap page remapping fix
- me: fix configure help scripts to fix breakage noticed by Dave Jones
- Greg KH: USB updates
- Kai Germaschewski: ISDN fixes, Config.help entries
- Douglas Gilbert: SCSI doc update
- Ingo Molnar: x86 taskswitch optimizations, scheduler updates
- Mikael Pettersson: make APIC work on old external setups
- Al Viro: more inode trimming
|