Thread (8 messages) 8 messages, 2 authors, 2014-03-31

[Linaro-acpi] [PATCH v4 1/3] PSCI: Add initial support for PSCIv0.2 functions

From: Ashwin Chaugule <hidden>
Date: 2014-03-31 17:25:26

On 31 March 2014 13:09, Ashwin Chaugule [off-list ref] wrote:
Hi Sudeep,

On 31 March 2014 12:52, Sudeep Holla [off-list ref] wrote:
quoted
quoted
+       if (ver == PSCI_RET_EOPNOTSUPP) {
+               pr_info("PSCI_ID_VERSION Function not supported in firmware.\n");
IMO you should stop here as the implementation conforming to the specification
must return a minor version number of 2 and major version number of 0. You
can't proceed, assume ids and use them.
hm, you're right, I missed that.
Something like this?

if (ver == PSCI_RET_EOPNOTSUPP) {
         /* PSCI v0.2+ mandates implementation of PSCI_ID_VERSION. */
         pr_err("PSCI firmware does not comply with the v0.2 spec.\n");
         err = -EOPNOTSUPP;
         goto out_put_node;

Cheers,
Ashwin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help