Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1286444
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] ACPI: Support D3 COLD device for old BIOS |
| Date | 2015-12-08 13:50 +0100 |
| Message-ID | <qDpSr-2rq-49@gated-at.bofh.it> (permalink) |
| References | <qDciv-2cp-37@gated-at.bofh.it> <qDciv-2cp-35@gated-at.bofh.it> <qDpSr-2rq-51@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tuesday, December 08, 2015 09:37:56 AM Ken Xue wrote:
> On Mon, 2015-12-07 at 23:48 +0100, Rafael J. Wysocki wrote:
> > On Monday, December 07, 2015 12:44:33 PM Ken Xue wrote:
> > > D3cold is only regarded as valid if the "_PR3" object is present
> > > for the given device after the commit <20dacb71ad28>
> > > (ACPI/PM: Reworkdevice power management to follow ACPI 6).
> > >
> > > But some old BIOS only defined "_PS3" for the D3COLD device.
> > > And old kernel also believes the device has "_PS3" is a
> > > D3COLD device.
> > >
> > > So, add some logics for supporting D3 COLD device for old BIOS
> > > which is compatible with earlier ACPI spec.
> > >
> > > Signed-off-by: Ken Xue <Ken.Xue@amd.com>
> > > Reported-and-tested-by: Gang Long <Gang.Long@amd.com>
> >
> > Well, what really is the problem?
>
> My problem is that
> "acpi_device_can_poweroff" is called by "zpodd_init" in libata-zpodd.c.
> And ZPODD feature only can be enabled when D3_COLD is valid.
This means that acpi_device_can_poweroff() needs to be updated. What about
like this:
static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
{
return adev->power.states[ACPI_STATE_D3_COLD].flags.valid
|| adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set;
}
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 1/1] ACPI: Support D3 COLD device for old BIOS "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-12-07 23:20 +0100 Re: [PATCH 1/1] ACPI: Support D3 COLD device for old BIOS "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-12-08 13:50 +0100
csiph-web