Skip to content

Commit 6ad6e15

Browse files
committed
parisc/power: Fix power soft-off when running on qemu
Firmware returns the physical address of the power switch, so need to use gsc_writel() instead of direct memory access. Fixes: d0c2194 ("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+
1 parent 721d28f commit 6ad6e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/parisc/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static struct notifier_block parisc_panic_block = {
176176
static int qemu_power_off(struct sys_off_data *data)
177177
{
178178
/* this turns the system off via SeaBIOS */
179-
*(int *)data->cb_data = 0;
179+
gsc_writel(0, (unsigned long) data->cb_data);
180180
pdc_soft_power_button(1);
181181
return NOTIFY_DONE;
182182
}

0 commit comments

Comments
 (0)