Skip to content

Merge redmi-wmi into bitland-mifs-wmi

Mingyou Chen lkml platform-driver-x86 17 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest6 patches 1 replyIn review
  2. v156 patches 5 repliesSuperseded
  3. v14 posting 2/26 patches 7 repliesSuperseded
Earlier versions · 14
VersionPostedPatchesRepliesStatus
v14 posting 1/25 of 6 patches0 repliesSuperseded
v137 patches2 repliesSuperseded
v126 patches1 replySuperseded
v116 patches5 repliesSuperseded
v105 patches0 repliesSuperseded
v95 patches2 repliesSuperseded
v85 patches0 repliesSuperseded
v7 posting 2/20 of 5 patches1 replySuperseded
v7 posting 1/25 patches1 replySuperseded
v65 patches12 repliesSuperseded
v56 patches8 repliesSuperseded
v46 patches0 repliesSuperseded
v36 patches1 replySuperseded
v14 patches7 repliesSuperseded

Changes in v16 from the cover letter

Rebased onto review-ilpo-next branch

Patches in v16 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6MAINTAINERS: Add maintainer entry of bitland-mifs-wmi driverMAINTAINERS+7 -00 replies
2/6platform/x86: bitland-mifs-wmi: Merge the function of redmi-wmi into the bitland driverdrivers/platform/x86/bitland-mifs-wmi.c+106 -470 replies
3/6platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entriesdrivers/platform/x86/bitland-mifs-wmi.c+5 -10 replies
4/6platform/x86: redmi-wmi: Drop redmi-wmi driverMAINTAINERS drivers/platform/x86/Kconfig drivers/platform/x86/Makefile +1 more+5 -1690 replies
5/6platform/x86: bitland-mifs-wmi: Add quirks tabledrivers/platform/x86/bitland-mifs-wmi.c+121 -570 replies
6/6platform/x86: bitland-mifs-wmi: Fallback to balanced platform profile if last performance profile is not availabledrivers/platform/x86/bitland-mifs-wmi.c+15 -10 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchNika KrasnovaIlya GladyshevChris Taraszka
1/6
2/6T-b T-b R-b
3/6
4/6
5/6T-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v16 thread

Cover letter [PATCH v16 0/6] Merge redmi-wmi into bitland-mifs-wmi

This patch series consolidates the standalone 'redmi-wmi' driver into the 'bitland-mifs-wmi' driver to eliminate code duplication and centralize the maintenance of overlapping ACPI WMI event streams.

Bitland is the ODM manufacturer for various Xiaomi Redmibook models. Both platforms share the exact same keyboard event stream WMI GUID (46C93E13-EE9B-4262-8488-563BCA757FEF). While redmi-wmi previously parsed the 4-byte payload as a bulk u32 scancode, bitland-mifs-wmi deconstructed it into discrete type/id/value fields.

Redmi operations were not contained in this patch series, future reverse engineering is required.

This series introduce a newly reported mic-mute hotkey definition for Redmibooks, dropped the previous redmi-wmi driver and intrudoced the quirks table for the bitland-mifs-wmi driver.

I don't have a Redmi or other Bitland device. So I cannot work on the real device.

Features are working properly on my device (Lecoo Bellator N176).

I leave the future reverse engineering work to the community.

Tests are welcome.

And by the way, the no_set member in bitland_profile_entry means a platform profile is only report by the firmware but not available for set.

v16:
Rebased onto review-ilpo-next branch

v15:
Fix the build issue reported by kernel-test-bot
https://lore.kernel.org/oe-kbuild-all/[email protected]/

v14:
Drop the accept_zero_function quirk based on Chris' comment
https://lore.kernel.org/lkml/CAAcRvKPSk5FYzZGkw12cPVGkxWVGFACwRvupBDDNae7B_JwF0A@mail.gmail.com/

v13:
Fix the zero function value problem find on my device Fix the memcpy size issue
Remove WMI_EVENT_PERFORMANCE_PLAN_ALT in the keymap Select BITLAND_MIFS_WMI and deprecate REDMI_WMI instead remove the config entry

v12:
Fix the issues mentioned in https://lore.kernel.org/all/[email protected]/ . Copy payload_data to output->data at bitland_mifs_wmi_call, not
overwrite the entire struct.
Correct the key name (Mic Mute) in the commit message of
"platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entries"
and my device doesn't have a FN-ESC key, so I renamed the enum variant to WMI_EVENT_MIC_MUTE.

v11:
Add missing return_code_at_end and accept_zero_function logic Fallback to balanced platform profile if resume to performance failed

v10:
Replace the previous "profile table" with dmi quirk table

v9:
Add the missing feature introduced in the commit e0d6312578e1 ("platform/x86: redmi-wmi: report EC state change events").

v8:
Correct Ilya Gladyshev's email address in the MAINTAINERS entry

v7:
Swap low bit and high bit for WMI_EVENT_KBD_BRIGHTNESS in bitland_mifs_wmi_keymap
0x00800501 -> BI_HOTKEY_CODE(WMI_EVENT_KBD_BRIGHTNESS, 0x80, 0),

Report KEY_FN_ESC when WMI_EVENT_FNLOCK_STATE events received Rename the reserved names
Use Xmas tree order in bitland_mifs_wmi_notify Collect the Tested-by and Reviewed-by tags

v6:
Drop the wrong Redmi ops

v5:
Correct Xiaomi DMI vendor name

v4:
Map PLATFORM_PROFILE_PERFORMANCE to wmi performance mode if the device doesn't support full-speed mode.

Mingyou Chen (6):
MAINTAINERS: Add maintainer entry of bitland-mifs-wmi driver platform/x86: bitland-mifs-wmi: Merge the function of redmi-wmi into
the bitland driver
platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entries platform/x86: redmi-wmi: Drop redmi-wmi driver platform/x86: bitland-mifs-wmi: Add quirks table platform/x86: bitland-mifs-wmi: Fallback to balanced platform profile
if last performance profile is not available

 MAINTAINERS                             |   7 +-
 drivers/platform/x86/Kconfig            |  13 +-
 drivers/platform/x86/Makefile           |   1 -
 drivers/platform/x86/bitland-mifs-wmi.c | 353 +++++++++++++++++-------
 drivers/platform/x86/redmi-wmi.c        | 154 -----------
 5 files changed, 256 insertions(+), 272 deletions(-)
 delete mode 100644 drivers/platform/x86/redmi-wmi.c

base-commit: 5680519168f65666d2c03cc6ed8fe2b7052aee12

Signature · 1 line
2.56.0