On 12/11/2015 05:53 PM, Rafael J. Wysocki wrote:
On Friday, December 11, 2015 10:17:18 AM Adrian Hunter wrote:Maybe I'm misinterpreting something, but the spec says that "_RMV object indicates
On 10/12/15 22:57, Philip Elcan wrote:The context here is a bit unclear to me.
On 12/07/2015 03:30 AM, Adrian Hunter wrote:I've cc'ed Rafael and the linux-acpi mailing list. Maybe someone there can
On 04/12/15 17:40, Philip Elcan wrote:My understanding is that in ACPI you don't generally create child devices on buses that are discoverable.
On 12/03/2015 09:14 AM, Adrian Hunter wrote:If you look at Intel devices, the _RMV is on the child e.g.
On 03/12/15 15:48, Philip Elcan wrote:Yes, this is on the host controller. The ACPI table only describes the
This allows setting an SDHC controller as non-removableIs that _RMV on the host controller? Shouldn't it be on the card i.e. child
by using the _RMV method in the ACPI table. It doesn't
device node?
host controller, not the child nodes.
Device (SDHA)
{
Name (_HID, "80860F14") // _HID: Hardware ID
Name (_CID, "PNP0D40") // _CID: Compatible ID
Name (_DDN, "Intel(R) eMMC Controller - 80860F14") // _DDN: DOS Device Name
...
Device (EMMD)
{
...
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
{
Return (Zero)
}
}
}
I am not an ACPI expert but that seems like the correct place for it.
comment.
Quite frankly, I don't see now _RMV above is useful for anything. As per the
spec, _RMV is only necessary for devices that *can* be removed from the system
and where there's no eject mechanism controlled by software. For those
devices _RMV is intended to indicate that it is safe to remove the device
at the time _RMV is evaluated. Devices that can never be removed don't
need _RMV at all.
Thanks,
Rafael
to OSPM whether the device can be removed while the system is in the working state
and does not require any ACPI system firmware actions to be performed for the device
to be safely removed from the system." That sounds exactly like what I'm trying to
do. And from Adrian's example, it sounds like others are using this to indicate if
a devices is removeable.
However, if I follow your paradigm, I can just test if the _RMV object exists, and if
it doesn't, I can assume the device is not removable?
I'm concerned not all firmware will have this object implemented.
Is there something else you suggest I use in the ACPI table to designate an SD/MMC
device is removable?