mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
parisc/power: Fix power soft-off when running on qemu
commit6ad6e15a9c
upstream. Firmware returns the physical address of the power switch, so need to use gsc_writel() instead of direct memory access. Fixes:d0c2194729
("parisc/power: Add power soft-off when running on qemu") Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # v6.0+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40b6914f42
commit
72a90e7eb4
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ static struct notifier_block parisc_panic_block = {
|
|||
static int qemu_power_off(struct sys_off_data *data)
|
||||
{
|
||||
/* this turns the system off via SeaBIOS */
|
||||
*(int *)data->cb_data = 0;
|
||||
gsc_writel(0, (unsigned long) data->cb_data);
|
||||
pdc_soft_power_button(1);
|
||||
return NOTIFY_DONE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue