Commit bce3b5d6 authored by Linus Torvalds's avatar Linus Torvalds

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
parents 47ce834f 64720365
...@@ -123,10 +123,10 @@ static unsigned long f_extend(unsigned long address) ...@@ -123,10 +123,10 @@ static unsigned long f_extend(unsigned long address)
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
if(unlikely(parisc_narrow_firmware)) { if(unlikely(parisc_narrow_firmware)) {
if((address & 0xff000000) == 0xf0000000) if((address & 0xff000000) == 0xf0000000)
return 0xf0f0f0f000000000UL | (u32)address; return (0xfffffff0UL << 32) | (u32)address;
if((address & 0xf0000000) == 0xf0000000) if((address & 0xf0000000) == 0xf0000000)
return 0xffffffff00000000UL | (u32)address; return (0xffffffffUL << 32) | (u32)address;
} }
#endif #endif
return address; return address;
......
...@@ -213,7 +213,7 @@ static int __init power_init(void) ...@@ -213,7 +213,7 @@ static int __init power_init(void)
if (running_on_qemu && soft_power_reg) if (running_on_qemu && soft_power_reg)
register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_DEFAULT, register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_DEFAULT,
qemu_power_off, (void *)soft_power_reg); qemu_power_off, (void *)soft_power_reg);
else if (!running_on_qemu || soft_power_reg)
power_task = kthread_run(kpowerswd, (void*)soft_power_reg, power_task = kthread_run(kpowerswd, (void*)soft_power_reg,
KTHREAD_NAME); KTHREAD_NAME);
if (IS_ERR(power_task)) { if (IS_ERR(power_task)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment