]> git.itanic.dy.fi Git - linux-stable/commit
hwmon: (asus-ec-sensors) autoload module via DMI data
authorEugene Shalygin <eugene.shalygin@gmail.com>
Fri, 9 Sep 2022 15:56:53 +0000 (17:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:20 +0000 (10:47 +0200)
commit7d40396e6d7374e1c8bfb9dd3a1146f69375b96b
treeb158f2169a74a700c04000ff38824af6a12e560b
parent447fb910846cff8322ccacd3db9d37fa55e71c79
hwmon: (asus-ec-sensors) autoload module via DMI data

[ Upstream commit 88700d1396bae72d9a4c23a48bbd98c1c2f53f3d ]

Replace autoloading data based on the ACPI EC device with the DMI
records for motherboards models. The ACPI method created a bug that when
this driver returns error from the probe function because of the
unsupported motherboard model, the ACPI subsystem concludes
that the EC device does not work properly.

Fixes: 5cd29012028d ("hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data")
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=216412
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2121844
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220909155654.123398-2-eugene.shalygin@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/asus-ec-sensors.c