peci: Add device detection
authorIwona Winiarska <iwona.winiarska@intel.com>
Tue, 8 Feb 2022 15:36:32 +0000 (16:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Feb 2022 07:04:44 +0000 (08:04 +0100)
commit52857e6828e260b16ac569578705f83cf2a71ac1
treee468e1dbeef61906b3457d1d1d13af7690cdab6e
parenta85e4c52086cd8da6399447a92bf0250d8e634c2
peci: Add device detection

Since PECI devices are discoverable, we can dynamically detect devices
that are actually available in the system.

This change complements the earlier implementation by rescanning PECI
bus to detect available devices. For this purpose, it also introduces the
minimal API for PECI requests.

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/20220208153639.255278-7-iwona.winiarska@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/peci/Makefile
drivers/peci/core.c
drivers/peci/device.c [new file with mode: 0644]
drivers/peci/internal.h
drivers/peci/request.c [new file with mode: 0644]
include/linux/peci.h