From: Cristian Marussi <cristian.marussi@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, lukasz.luba@arm.com, Jonathan.Cameron@Huawei.com, arnd@arndb.de, gregkh@linuxfoundation.org, robh@kernel.org, Cristian Marussi <cristian.marussi@arm.com> Subject: [PATCH v4 1/2] firmware: arm_scmi: Add System Power utility macro Date: Tue, 5 Jan 2021 13:09:44 +0000 [thread overview] Message-ID: <20210105130945.8192-1-cristian.marussi@arm.com> (raw) Add a trivial macro to check the kind of SCMI SystemPower request. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> --- include/linux/scmi_protocol.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index ecb3aad1a964..a666a152d1eb 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -738,6 +738,7 @@ struct scmi_power_state_changed_report { struct scmi_system_power_state_notifier_report { ktime_t timestamp; unsigned int agent_id; +#define SCMI_SYSPOWER_IS_REQUEST_GRACEFUL(flags) ((flags) & BIT(0)) unsigned int flags; unsigned int system_state; }; -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Cristian Marussi <cristian.marussi@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, gregkh@linuxfoundation.org, sudeep.holla@arm.com, Cristian Marussi <cristian.marussi@arm.com>, Jonathan.Cameron@Huawei.com, lukasz.luba@arm.com Subject: [PATCH v4 1/2] firmware: arm_scmi: Add System Power utility macro Date: Tue, 5 Jan 2021 13:09:44 +0000 [thread overview] Message-ID: <20210105130945.8192-1-cristian.marussi@arm.com> (raw) Add a trivial macro to check the kind of SCMI SystemPower request. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> --- include/linux/scmi_protocol.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index ecb3aad1a964..a666a152d1eb 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -738,6 +738,7 @@ struct scmi_power_state_changed_report { struct scmi_system_power_state_notifier_report { ktime_t timestamp; unsigned int agent_id; +#define SCMI_SYSPOWER_IS_REQUEST_GRACEFUL(flags) ((flags) & BIT(0)) unsigned int flags; unsigned int system_state; }; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-01-05 13:11 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-05 13:09 Cristian Marussi [this message] 2021-01-05 13:09 ` [PATCH v4 1/2] firmware: arm_scmi: Add System Power utility macro Cristian Marussi 2021-01-05 13:09 ` [PATCH v4 2/2] firmware: arm_scmi: Add SCMI System Power Control driver Cristian Marussi 2021-01-05 13:09 ` Cristian Marussi 2021-01-07 16:04 ` Greg KH 2021-01-07 16:04 ` Greg KH 2021-01-21 10:22 ` Cristian Marussi 2021-01-21 10:22 ` Cristian Marussi
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=20210105130945.8192-1-cristian.marussi@arm.com \ --to=cristian.marussi@arm.com \ --cc=Jonathan.Cameron@Huawei.com \ --cc=arnd@arndb.de \ --cc=gregkh@linuxfoundation.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=lukasz.luba@arm.com \ --cc=robh@kernel.org \ --cc=sudeep.holla@arm.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.