From: John Rose <johnrose@austin.ibm.com>
To: Hoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>,
External List <linuxppc-dev@ozlabs.org>,
lkml <linux-kernel@vger.kernel.org>,
Me Notes <johnrose@us.ibm.com>,
fenkes@de.ibm.com, Paul Mackerras <pmac@au1.ibm.com>
Subject: Re: [PATCH 2.6.21-rc1] ibmebus: Support dynamic addition and removal of adapters
Date: Thu, 15 Feb 2007 13:57:37 -0600 [thread overview]
Message-ID: <1171569457.20758.76.camel@sinatra.austin.ibm.com> (raw)
In-Reply-To: <200702151755.13009.hnguyen@linux.vnet.ibm.com>
Hi-
Looks good. Questions: how can the user space tools verify the success
of an add or remove?
Also, will /sys/bus/ibmebus exist even if the system booted with no LHEA
nodes?
One more comment below.
@@ -161,7 +161,9 @@ static void __devinit ibmebus_dev_releas
static ssize_t ibmebusdev_show_name(struct device *dev,
struct device_attribute *attr, char *buf)
{
- return sprintf(buf, "%s\n", to_ibmebus_dev(dev)->name);
+ struct ibmebus_dev *ebus_dev = to_ibmebus_dev(dev);
+ char *name = (char*)get_property(ebus_dev->ofdev.node, "name", NULL);
+ return sprintf(buf, "%s\n", name);
}
static DEVICE_ATTR(name, S_IRUSR | S_IRGRP | S_IROTH, ibmebusdev_show_name,
NULL);
Can we also have an attribute "devspec" that communicates the open
firmware path through sysfs? User space DLPAR tools need a way to make
this correlation. This is consistent with other dynamic-capable sysfs
objects (cpus, etc). I assume you could get this string with something
like ebus_dev->ofdev.node->full_name. For example:
# cat /sys/bus/ibmebus/$ebus_device/devspec
/lhea@xxxxxxxxx/
Thanks-
John
next prev parent reply other threads:[~2007-02-15 20:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-15 16:55 Hoang-Nam Nguyen
2007-02-15 19:57 ` John Rose [this message]
2007-02-17 0:27 ` Joachim Fenkes
2007-02-20 17:25 ` John Rose
2007-02-20 22:36 ` Joachim Fenkes
2007-02-15 20:11 ` Sylvain Munaut
2007-02-17 2:24 ` Joachim Fenkes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1171569457.20758.76.camel@sinatra.austin.ibm.com \
--to=johnrose@austin.ibm.com \
--cc=fenkes@de.ibm.com \
--cc=hnguyen@linux.vnet.ibm.com \
--cc=johnrose@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=pmac@au1.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome