OSDN Git Service

platform/x86/intel/sdsi: Hide attributes if hardware doesn't support
authorDavid E. Box <david.e.box@linux.intel.com>
Sat, 19 Nov 2022 00:23:36 +0000 (16:23 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 21 Nov 2022 09:55:24 +0000 (10:55 +0100)
commitaa546b28163f0bd12e1129cd0fb05b89089485e9
treed4a39c173348cc6ec990055b854a085ce2054545
parent4ea629155c29051dd1323ab9eded21c545b50c2c
platform/x86/intel/sdsi: Hide attributes if hardware doesn't support

Provisioning capabilities are enabled by a bit set by BIOS. Read this bit
and hide the provisioning attributes if the On Demand feature is not
enabled.

Also, remove the sdsi_enabled boolean from private and instead add a
features register since this will be used for future features.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-3-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/sdsi.c