]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: register pseries-wdt device with platform bus
authorScott Cheloha <cheloha@linux.ibm.com>
Wed, 13 Jul 2022 20:23:34 +0000 (15:23 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Jul 2022 11:57:39 +0000 (21:57 +1000)
commitfc6de379ccc68acc68a2fd9c5e9e29919ce68a97
tree3875d806f2eec6d3577fb2b6b7612a82fc83f998
parent6c843c4efe7db35361a696928fda780227647a70
powerpc/pseries: register pseries-wdt device with platform bus

PAPR v2.12 defines a new hypercall, H_WATCHDOG.  The hypercall permits
guest control of one or more virtual watchdog timers.

These timers do not conform to PowerPC device conventions.  They are
not affixed to any extant bus, nor do they have full representation in
the device tree.

As a workaround we represent them as platform devices.

This patch registers a single platform device, "pseries-wdt", with the
platform bus if the FW_FEATURE_WATCHDOG flag is set.

A driver for this device, "pseries-wdt", will be introduced in a
subsequent patch.

Signed-off-by: Scott Cheloha <cheloha@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220713202335.1217647-4-cheloha@linux.ibm.com
arch/powerpc/platforms/pseries/setup.c