public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* what is writing to /sys/bus/pci/slot/<slot_no>/power really supposed to do?
@ 2007-10-01 17:08 Kristen Carlson Accardi
  2007-10-01 17:19 ` Greg KH
  2007-10-01 17:43 ` Gary Hade
  0 siblings, 2 replies; 9+ messages in thread
From: Kristen Carlson Accardi @ 2007-10-01 17:08 UTC (permalink / raw)
  To: pcihpd-discuss; +Cc: linux-acpi, gregkh

Hi,
I notice in acpiphp that the code path for powering down the slot
via sysfs does not execute the _EJ0 method, but instead simply
looks for _PS3 and of couse disables all the bridges and devices.  
I suppose this could be valid depending on your definition of what 
/sys/bus/pci/slots/<slot_no>/power should do.

Is it intended to just power down the adapter that's in the slot, 
or is it intended to make the adapter in the slot able to be removed?
If it's intended to make the adapter able to be removed, shouldn't
we be calling _EJ0?

As a comparison, in pciehp when the sysfs power file is written,
we do actually go out and send the commands to the hotplug controller
to physically power off the slot.

Kristen

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-10-01 18:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-01 17:08 what is writing to /sys/bus/pci/slot/<slot_no>/power really supposed to do? Kristen Carlson Accardi
2007-10-01 17:19 ` Greg KH
2007-10-01 17:35   ` Kristen Carlson Accardi
2007-10-01 17:46     ` [Pcihpd-discuss] " Matthew Wilcox
2007-10-01 17:43 ` Gary Hade
2007-10-01 17:50   ` Kristen Carlson Accardi
2007-10-01 18:33     ` Gary Hade
2007-10-01 18:39       ` Gary Hade
2007-10-01 18:43       ` Kristen Carlson Accardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox