platform/x86: ayaneo-ec: Add AYANEO 2S charge control
Subsystems (2)
Antheas Kapenekakis
maintainerPATCH 1/1 platform/x86: ayaneo-ec: Add AYANEO 2S charge control
The AYANEO 2S uses the same EC fan interface as the AYANEO 2 and additionally supports charge limiting. Add an exact match ahead of the broader AYANEO 2 match so the charge-control quirk is selected.
--- drivers/platform/x86/ayaneo-ec.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/platform/x86/ayaneo-ec.c +7 -0
@@ -76,6 +76,13 @@ static const struct ayaneo_ec_quirk quirk_ayaneo3 = { };static const struct dmi_system_id dmi_table[] = { + { + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"AYANEO" ), +DMI_EXACT_MATCH (DMI_BOARD_NAME ,"AYANEO 2S" ), + }, + .driver_data = (void *)&quirk_charge_limit, + }, { .matches = {DMI_MATCH (DMI_BOARD_VENDOR ,"AYANEO" ),
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
Signature · 1 line
2.55.0
Ilpo Järvinen
maintainerQuoted 3 lines · Antheas Kapenekakis
The AYANEO 2S uses the same EC fan interface as the AYANEO 2 and additionally supports charge limiting. Add an exact match ahead of the broader AYANEO 2 match so the charge-control quirk is selected.
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also fixes are mostly routed through for-next unless the fix is for a commit introduced in the most recent cycle or is clearly a regression fix.
The list of commits applied:
[1/1] platform/x86: ayaneo-ec: Add AYANEO 2S charge control
commit: d5c20bcc5a20f073027cef7fcf79dcc445ee37b3
--
i.