From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D494142189B for ; Thu, 9 Jul 2026 12:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783599844; cv=none; b=kWCaaLJaPuv9xpR2Tqdnzz2kyaxcn5Lg4ajgWIrNCvnddEzgx/3egq7a9l4AeKv+G5DXpfLllq/nECSny3PBew/4msQBVl4JXUD0ECvFZ0kBkj+pz8CijHVlm2T/bfD2bwqb+T2xlcmYo7s/bJBKmxn2aIh0Qsiatv+1z38NcrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783599844; c=relaxed/simple; bh=j6hpa3baxv+OI+PlzZazzSx3l0J49kUW/RyqcCaQRGQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GRs3AxCYhmTVGaYv9Id5a2v45fNrY4vEUKquCyC7ashjPS48pCqegK+qhyXrkY1OWTkkta/4LllNPpMs5zcbY1xg/hdTc0o7RsZfD1r52C1mVUscXf0tNipKMgyVW2zg/0fzHOTKQZAMziKhA/G4xutxgadQn5AiQCNQtoceq/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=pAIykwpC; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pAIykwpC" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-8478fe07f0fso896843b3a.0 for ; Thu, 09 Jul 2026 05:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783599841; x=1784204641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=4GMnAuFP2xR6XtEQULhoDX9bk8ncfyHBTeVWDEqgfiM=; b=pAIykwpCF+wyqkhixxOKjvF6OH5uNTEGCf1XDJP/WzLI2AkQVXzM+vzNZP0worHGND hqAQcjM17UDQlKDYJRsvd9FF0zaMxv7k3MhY7G7YeU4rBI/CE1jRrTYvOFmSumfcrjG7 DJP6AIdawfgk1U/ef1b9P+mw9pwt+pWUqim61t/CyTYaKzay3jVID1juGehWliq/4I0v GGpoJpU9YFnGHYO8Z19QbpjtCbqchFw8j8z/1GsggffZnnNbACeUMhNCC++JXTADEvgx E8YfpNqI2slWbas17KmegMnXxif9aZfzhJBzFAJKTn8UNM4IQuZirvYI2MGCmWq98AnG 8Uug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783599841; x=1784204641; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4GMnAuFP2xR6XtEQULhoDX9bk8ncfyHBTeVWDEqgfiM=; b=Fd0kriJIxXk/2nddR9wS1Fmq8ilm3GLFNKsilJCN9ZXK0H8/xbK/f6cDSE/Jbo01F9 jy8yKHRJmSyqmx9t6n0HXTpuZX2waYXsH5N9bSM9uHqMm9pfeZD4+oXr8GKf3x9adGJ0 43K1hswJbg+zZM4r5u4laWmvIFOF2RlUNLiauX7+swIpHF+WmeKxwrWmiKQQI97Z7Ep+ VbY6mwyF8PdT2dQtNqZjVTiLziFWMslLyh+N2ZgL5pu5s5ZP/LLPnzB74AV1WsXUK/XO Xvp1m5rA62wKotCNDcR74VOUexWKsbVwnsqlzNGK7U5cApR8arfgwgluo7MooA341GoI mk3g== X-Forwarded-Encrypted: i=1; AHgh+RoVV3tVpQhXAwHl8ITIrQ9pDBcpL5RGcaR6MJZSjBKCk9prfGXQHW4I86EoLNJh0sESd4EMaF7QNhnuG3Y=@vger.kernel.org X-Gm-Message-State: AOJu0YxLkquVkLfC0lIHHg7eJV2lLVq7qiv1i7n7QNHSBel1RlpPhyuQ niZoZ0tjMB/cP857wvr7tO60AyzaNO5P2jmgSk5ex/WW43jpBO13VeF+ X-Gm-Gg: AfdE7ckKLPf2xGr2XRNvIbeCDLo0OvNK7CgMbDvFASwYm9qKgUTy1qUNPIgOKvdGBuV pZ9O24SVBwhR202mbP0lkQ53/qHuRmdgQZ655R8gAdnhzfBIjnWmfCz+qYguiVOuej+VzTJg+L+ YOCHNLh/hwVF7MXqqaL4bntnn8ClgF0LTgB0WQPe8CURCBkrlIEYjrTJ3tg+rgpPVzEHUvKwiTY dPsa2EtToO+vlkcw/th4EBRQMZXP1KEN38e9VnH/EuI9gMZwXX+3/SvsLPP7t5xai0vkecPDZUB WTAcLG9EWNhR3fIfZDAADkiQiW4BUmOm/BNVmqjjTxw+AmO5yty0FQcC3OxapOgKEqUTyJ9R9hk XXht98vQ2qowwnxY4kbr0KLNMU7Q6JYSwXuH8IwpAeg7OQ84RJmYFTJbEYseIHQc= X-Received: by 2002:a05:6a00:4292:b0:847:9745:2f83 with SMTP id d2e1a72fcca58-84842ee321amr7397128b3a.18.1783599840948; Thu, 09 Jul 2026 05:24:00 -0700 (PDT) Received: from qby-laptop ([2a13:edc0:18:16f::a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8484f973c4bsm1672517b3a.25.2026.07.09.05.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 05:24:00 -0700 (PDT) From: Mingyou Chen To: qby140326@gmail.com Cc: W_Armin@gmx.de, foxido@foxido.dev, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org, nika@nikableh.moe, platform-driver-x86@vger.kernel.org Subject: [PATCH v1 0/4] Merge redmi-wmi into bitland-mifs-wmi Date: Thu, 9 Jul 2026 20:23:33 +0800 Message-ID: <20260709122337.17417-1-qby140326@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. To safely merge them without sacrificing the high-level platform profile and hwmon infrastructure of the Bitland driver or breaking the fine-grained AI button toggles from the Redmi driver, the unified driver transitions its sparse-keymap matching to a 32-bit little-endian scancode layout. Additionally, this series cleans up the redundant Kconfig/Makefile hooks, updates the MAINTAINERS entry accordingly, and introduces a newly reported mic-mute hotkey definition for Redmibooks. Testing status: - Fully regression-tested on native Bitland hardware. - Redmi-specific logic blocks and mic-mute quirks are compile-tested only. Feedback from Redmibook hardware owners is highly appreciated. Mingyou Chen (4): platform/x86: redmi-wmi: Drop redmi-wmi driver platform/x86: bitland-mifs-wmi: Merge the function of redmi-wmi into the bitland driver MAINTAINERS: Add maintainer entry of bitland-mifs-wmi driver platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entries MAINTAINERS | 5 +- drivers/platform/x86/Kconfig | 12 -- drivers/platform/x86/Makefile | 1 - drivers/platform/x86/bitland-mifs-wmi.c | 207 +++++++++++++++--------- drivers/platform/x86/redmi-wmi.c | 154 ------------------ 5 files changed, 134 insertions(+), 245 deletions(-) delete mode 100644 drivers/platform/x86/redmi-wmi.c base-commit: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 -- 2.55.0