From: Florea Igor <igor.florea@topex.ro>
To: linux-hotplug@vger.kernel.org
Subject: Re: [Pcihpd-discuss] do I need ACPI to detect hot plugged cpci cards?
Date: Mon, 20 Feb 2006 15:28:56 +0000 [thread overview]
Message-ID: <200602201728.56904.igor.florea@topex.ro> (raw)
Hi Scott
> It might be worth seeing if the apcihp driver works on the CP-306.
it works fine
> > list_for_each_entry(slot, &slot_list, slot_list){
> > if (slot->extracting) {
> > disable_slot(slot->hotplug_slot);
> > }
> The intent of the driver is that a userspace component detects the
> extracting state, does any required software shutdown, and then drives
> the extract (i.e. disable_slot) by writing a 0 to the "power" node for
> the slot in sysfs.
I cannot get disable_slot called when i
echo 0 > /sys/bus/pci/devices/0000\:04\:0d.0/power/state
i don't know why.. so i let it with explicit call to disable_slot ..it does
not bother me much.. but i would like to do it in the ritgh way.. the user
program have to poll the enum bit of enum port? it is already done by
cpcihp_generic driver..
> > I also have to expand the code to support all my 3 hotplug controllers
> > (one on another ..as is seen in my lspci ) if you have some warnings for
> > me..please let me know..
>
> If you have 3 separate hotplug controllers (separate ENUM# signalling),
> watching different buses, then the current driver won't handle that
> without some significant rework. If there is only a single ENUM#
> interrupt or signal for 3 buses, then that can be made to work by
> calling cpci_hp_register_bus for the 3 buses. If you can provide a bit
> more detail on what the hardware looks like, I can likely come up with
> an idea of how the driver needs to change to support it.
Good Idea!!
I did not notice that i can register only buses .. i implemented all the stuff
to also register all the controllers .. and can
echo 0 > /sys/bus/pci/devices/0000\:04\:0d.0/power/state
work if i registered only one controller?
(anyway this part does not work now..so i could register only one..)
I have 3 hotplug controllers with one ENUM# signal (port 0x0286 bit 2)...and
if i had 3 separate ENUM# sources i should only change the query_enum
function..
tanks
Igor
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2006-02-20 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 15:28 Florea Igor [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-18 9:34 [Pcihpd-discuss] do I need ACPI to detect hot plugged cpci cards? Florea Igor
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=200602201728.56904.igor.florea@topex.ro \
--to=igor.florea@topex.ro \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).