parisc/power: Fix power soft-off when running on qemu
authorHelge Deller <deller@gmx.de>
Fri, 17 Nov 2023 15:43:52 +0000 (16:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:07:14 +0000 (17:07 +0000)
commit72a90e7eb4a19744c99c22c3a4d3b28508a3ff91
tree92e4ed91275c8daf6c314fc6198ebdf79ec3fc08
parent40b6914f42780973ba86451dae065f96ca591695
parisc/power: Fix power soft-off when running on qemu

commit 6ad6e15a9c46b8f0932cd99724f26f3db4db1cdf upstream.

Firmware returns the physical address of the power switch,
so need to use gsc_writel() instead of direct memory access.

Fixes: d0c219472980 ("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>
drivers/parisc/power.c