]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] ibmebus: change probe/remove interface from using loc-code to DT path
authorJoachim Fenkes <fenkes@de.ibm.com>
Thu, 22 Mar 2007 16:00:46 +0000 (17:00 +0100)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Apr 2007 20:12:42 +0000 (06:12 +1000)
commit0e57daa2651d02e4099040fc4f8e40021c1c1fd5
tree93927603e896da1d5eb8e774502f4ac609b122ab
parent99958746f3a251cc8ddfb8b84a16dafe1551e053
[POWERPC] ibmebus: change probe/remove interface from using loc-code to DT path

In some cases, multiple OFDT nodes might share the same location code, so
the location code is not a unique identifier for an OFDT node. Changed the
ibmebus probe/remove interface to use the DT path of the device node instead
of the location code.

The DT path must be written into probe/remove right as it would appear in
the "devspec" attribute of the ebus device: relative to the DT root, with a
leading slash and without a trailing slash. One trailing newline will not
hurt; multiple newlines will (like perl's chomp()).

Example:

 Add a device "/proc/device-tree/foo@12345678" to ibmebus like this:
    echo /foo@12345678 > /sys/bus/ibmebus/probe

 Remove the device like this:
    echo /foo@12345678 > /sys/bus/ibmebus/remove

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ibmebus.c