From: Maxim Uvarov <maxim.uvarov@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org,
Maxim Uvarov <maxim.uvarov@linaro.org>
Subject: [PATCH 2/2] gpio_pwr: use shutdown function for reboot
Date: Fri, 25 Jun 2021 14:18:42 +0300 [thread overview]
Message-ID: <20210625111842.3790-3-maxim.uvarov@linaro.org> (raw)
In-Reply-To: <20210625111842.3790-1-maxim.uvarov@linaro.org>
qemu has 2 type of functions: shutdown and reboot. Shutdown
function has to be used for machine shutdown.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
hw/gpio/gpio_pwr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/gpio/gpio_pwr.c b/hw/gpio/gpio_pwr.c
index 7714fa0dc4..dbaf1c70c8 100644
--- a/hw/gpio/gpio_pwr.c
+++ b/hw/gpio/gpio_pwr.c
@@ -43,7 +43,7 @@ static void gpio_pwr_reset(void *opaque, int n, int level)
static void gpio_pwr_shutdown(void *opaque, int n, int level)
{
if (level) {
- qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
+ qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
}
}
--
2.17.1
next prev parent reply other threads:[~2021-06-25 11:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-25 11:18 [PATCH 0/2] arm/virt: fix machine poweroff Maxim Uvarov
2021-06-25 11:18 ` [PATCH 1/2] arm/virt: fix irq mapping for gpio_pwr Maxim Uvarov
2021-06-25 11:58 ` Peter Maydell
2021-06-25 14:03 ` Maxim Uvarov
2021-06-25 11:18 ` Maxim Uvarov [this message]
2021-06-25 11:56 ` [PATCH 2/2] gpio_pwr: use shutdown function for reboot Peter Maydell
2021-06-29 15:29 ` Peter Maydell
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=20210625111842.3790-3-maxim.uvarov@linaro.org \
--to=maxim.uvarov@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).