All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drivers: firmware: psci: Extract psci_is_available() helper
@ 2017-10-11  8:03 ` Geert Uytterhoeven
  0 siblings, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2017-10-11  8:03 UTC (permalink / raw)
  To: Mark Rutland, Lorenzo Pieralisi
  Cc: linux-arm-kernel, linux-renesas-soc, linux-kernel, Geert Uytterhoeven

	Hi Mark, Lorenzo,

PSCI support may be disabled at build time (by configuration) or at
run-time (PSCI firmware not present).  While CONFIG_ARM_PSCI_FW can be
used to check for build time enablement, there is currently no simple
way to check if PSCI is actually available and used.

The first patch adds a helper function to check if PSCI is available.
This is useful for e.g. drivers that are used on platforms with and
without PSCI.  Such drivers may need to take provisions for proper
operation when PSCI is used, and/or to implement functionality that is
usually provided by PSCI.

The second patch makes the PSCI checker use the new helper.

Thanks for your comments!

Geert Uytterhoeven (2):
  drivers: firmware: psci: Add psci_is_available()
  drivers: psci: checker: Use psci_is_available()

 drivers/firmware/psci.c         | 5 +++++
 drivers/firmware/psci_checker.c | 2 +-
 include/linux/psci.h            | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.7.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-10-25 15:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11  8:03 [PATCH 0/2] drivers: firmware: psci: Extract psci_is_available() helper Geert Uytterhoeven
2017-10-11  8:03 ` Geert Uytterhoeven
2017-10-11  8:03 ` [PATCH 1/2] drivers: firmware: psci: Add psci_is_available() Geert Uytterhoeven
2017-10-11  8:03   ` Geert Uytterhoeven
2017-10-12  2:58   ` Jisheng Zhang
2017-10-12  2:58     ` Jisheng Zhang
2017-10-12  6:58     ` Geert Uytterhoeven
2017-10-12  6:58       ` Geert Uytterhoeven
2017-10-12  6:58       ` Geert Uytterhoeven
2017-10-25 15:45   ` [1/2] " Lorenzo Pieralisi
2017-10-25 15:45     ` Lorenzo Pieralisi
2017-10-11  8:03 ` [PATCH 2/2] drivers: firmware: psci: checker: Use psci_is_available() Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.