Skip to content

Commit bce3b5d

Browse files
committed
Merge tag 'parisc-for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc updates from Helge Deller: "Two small fixes for the parisc architecture: - Fix PDC address calculation with narrow firmware (64-bit kernel on 32-bit firmware) - Fix kthread which checks power button get started on qemu too" * tag 'parisc-for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc/power: Fix power soft-off button emulation on qemu parisc/firmware: Fix F-extend for PDC addresses
2 parents 47ce834 + 6472036 commit bce3b5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/parisc/kernel/firmware.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ static unsigned long f_extend(unsigned long address)
123123
#ifdef CONFIG_64BIT
124124
if(unlikely(parisc_narrow_firmware)) {
125125
if((address & 0xff000000) == 0xf0000000)
126-
return 0xf0f0f0f000000000UL | (u32)address;
126+
return (0xfffffff0UL << 32) | (u32)address;
127127

128128
if((address & 0xf0000000) == 0xf0000000)
129-
return 0xffffffff00000000UL | (u32)address;
129+
return (0xffffffffUL << 32) | (u32)address;
130130
}
131131
#endif
132132
return address;

drivers/parisc/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int __init power_init(void)
213213
if (running_on_qemu && soft_power_reg)
214214
register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_DEFAULT,
215215
qemu_power_off, (void *)soft_power_reg);
216-
else
216+
if (!running_on_qemu || soft_power_reg)
217217
power_task = kthread_run(kpowerswd, (void*)soft_power_reg,
218218
KTHREAD_NAME);
219219
if (IS_ERR(power_task)) {

0 commit comments

Comments
 (0)