]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: int1092: Fix non sequential device mode handling
authorShravan S <s.shravan@intel.com>
Wed, 6 Oct 2021 07:35:25 +0000 (13:05 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Oct 2021 14:39:25 +0000 (16:39 +0200)
commitcae0ba6b8d9e9d9a5119d786362f3e0164487543
tree4628f4be592fa682174562ddedb21e7e99994815
parent1a0868214f3b6b78fa5aeee385bfc2d0cac8f648
platform/x86: int1092: Fix non sequential device mode handling

SAR information from BIOS may come in non sequential pattern.

To overcome the issue, a check is made to extract the right SAR
information using the device mode which is currently being used.

Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Shravan S <s.shravan@intel.com>
Link: https://lore.kernel.org/r/20211006073525.1332925-1-s.shravan@intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/x86/intel/int1092/intel_sar.c