]> 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)
commit2e17154d71f1bfdba93da28aa3d0ba337be69308
tree4628f4be592fa682174562ddedb21e7e99994815
parentc30fa8a9e9e39a8b316a0108969fa5ebf3ff0ccb
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