diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-03-09 19:00:32 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-16 16:38:19 +1100 |
commit | 6bccf755ff53241d46c01c229b3c2452b9029ec4 (patch) | |
tree | 41ecb5e2a78120b95224c674dac0f57bbbff5e57 /include/asm-powerpc/user.h | |
parent | a83088003cd53f3cd8d550ab5d7778866568d204 (diff) |
[POWERPC] ibmebus: dynamic addition/removal of adapters, some code cleanup
This adds two sysfs attributes to /sys/bus/ibmebus which can be used to
notify the ebus driver of added / removed ebus devices in the OF device
tree.
Echoing the device's location code (as found in the OFDT "ibm,loc-code"
property) into the "probe" attribute will notify ebus of addition of the
device and cause the appropriate device driver's probe function to be called
on the device.
Likewise, echoing the location code into the "remove" attribute will cause
the device to be removed from the system.
The writes will block until the respective operation has finished and return
an error code if the operation failed.
In addition, two minor tidbits are fixed:
- The fake root device used to provide a common parent for all ebus devices
is now based on device instead of of_device - it had no associated devtree
node. This saves several checks throughout the ebus driver.
- The sysfs attributes are now generated automagically by device_register()
instead of by the ibmebus code, which saves a few compiler warnings about
unused return codes.
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/user.h')
0 files changed, 0 insertions, 0 deletions