From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 B7A5B40EB9D for ; Tue, 28 Jul 2026 08:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785227754; cv=none; b=i5FduNBXB/x89VoSoH1Yj5RKQOZWS6gL8L/j6fX6QQZfZpZlVIZM6/45Z2Q7UXyQd5zdOaN3+apJ3K5exliCWfsRdFq1u8z6npBFX11vf8RVzssZIuvul5GImIS0PFcvicKFpjbkz5eYapyr0jmNw2FLYCmTfvgCwqH1o0fEDCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785227754; c=relaxed/simple; bh=azw4cWVx60tZteYkG5HNewmD7Ntg1IsbrViFle6npqE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M/Fmu3bIDhTjt0UzZs7ebeGwtgPbDByMgqgAuWmAduZcHRuBYrdfoj/KwKMBcJ455HOZnxXGKRXemMwHqjTX5+yqK8kTKn5btkQFlCvk+7LHQd+r0JWBs9L3gdz6Db6f/MG3057Y8SBc4QjL53MIJ5ok3OX+YQHeisvsKaB7FHU= 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=GBNOApWz; arc=none smtp.client-ip=209.85.208.47 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="GBNOApWz" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-69c7ab350e9so5364735a12.0 for ; Tue, 28 Jul 2026 01:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785227740; x=1785832540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9G/wxWEeNDzEUMqOff92eWji7LEVF9MjxurifLY6lHg=; b=GBNOApWzA5fykrYGzLnf8EbAZSiM6rZg3p+MHV2wgS1QMDw3HszRr6HkhM+3i/PPaz BIVLTW/fISrkN35srmLpjiL0Zgo6I4Na2qR4vgGgZg3Az/F6wR2Sh9vXHm1J+ShE0gWk dO1Qqp8APnCMsmgJm4jKkHjFKuuksQHfyRpcCeMJdLVi9Y6jBU7I+JzUbMm+0FCP8wjf P2c3mbglk+k7hKhgFGfiQo5cBDvLsNDiKOrVtEPEivHOXqmZ5oljGVlHOlyZtpql1/KS xPzrQ14Vcp/XcBSJlPVK0kjfDuI2MY5ZaKzVV21fGmZtX74wj29t15J6fXA9/2Mkj5uV 58Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785227740; x=1785832540; h=content-transfer-encoding:mime-version:references:in-reply-to :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=9G/wxWEeNDzEUMqOff92eWji7LEVF9MjxurifLY6lHg=; b=rCcf3mME2BoFDoB7wAIvvUZurP6V+ATWVeE5770qDkqY4dOEs1JSTd2T1rGg1ADM6D 8+0VcfseS2KGJhQwrAYaAQUXMe/ZY8yNhqftPoYr4Pjwy0ioqndzXew62rxK/BQvlnRS 9chii/8llyJQHUtqMnwNwa/tN36GHpS4q8WsrfdYhYaeUyudcN/ef+agZJpwreURx5B/ yo/AYHCV9noxB4Npei5sU9xCUf4zec/C82R7NwJWcBwI68V3yorxAte/0wvjONGQbCL2 4xkITfg88rUuvnW8JpJrT5bbooNiarLKAuJND1aTc9u+EKygWujupYVP51IrrBEEEicf 0JeQ== X-Forwarded-Encrypted: i=1; AHgh+RoXAU3wZ3hFZ/PW4tpSUU0dJHd11r8qh02VCZm1dGcPeywPuuY8CxYqECZvI8BmEy64fOxmzo05IwhTOZA=@vger.kernel.org X-Gm-Message-State: AOJu0YzXgTZ6ndAhKIHKZ1rGXoaOoJe/wAZvEap9EFlgvhJ3zjVVR9Y9 WKQBL1xJHTHrt74GVYCKbds/d05xrRRy+SjfRV3L5tTMornseapZd4Wh X-Gm-Gg: AR+sD133+ykPNyLMk7qktuC6NxqwApmhW36sCWTgz7VBmHsL0pvcWBfl2HKbD5Zgb08 +8hv8XSPpLNcuIDdDi1Kdr/Adon3X0Ett6Z64Z8LYZTGrcTofkwK/yekZFeLfIDfD8nMI8y3NhW wUE0kBRDpsZ8ZU3xUiAK0q8AfulhZt+H8T1W7ja9be3NIZwtYxOQDTDPTBI7jCdlE6qrPD+46IO EH8Djx/wvvcsFGeXS/xgGPem5jlGsdBau3J/UXVTMtGihicVIzICQDzYyAy2k/XmCRMAW6Cu0Iw Jqb1ezsUP1QBzCxV6YHWA03rd90w0roC4/mQHXMZaC0MFOb3kyBSVI52XTnWjFMot5rSGz+s4T5 cOQnTVz/U/1hkq217/N15tRqvtAoeNZoTYLzpCUYdPOIKloS8Mb9EWSH6tuja0KwfIVa35k6OZR PjmiA= X-Received: by 2002:a17:907:72d5:b0:c12:979c:5a5e with SMTP id a640c23a62f3a-c1f71b3ca4cmr64666666b.0.1785227739670; Tue, 28 Jul 2026 01:35:39 -0700 (PDT) Received: from fedora (yeal.ru. [94.103.95.240]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1f19ad49f1sm353753266b.1.2026.07.28.01.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 01:35:39 -0700 (PDT) From: Alexander Egorov To: platform-driver-x86@vger.kernel.org Cc: hansg@kernel.org, ilpo.jarvinen@linux.intel.com, lkml@antheas.dev, derekjohn.clark@gmail.com, samsagax@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] platform/x86: oxpec: Report tablet mode on OneXPlayer detachables Date: Tue, 28 Jul 2026 11:35:27 +0300 Message-ID: <20260728083529.329772-1-begeebe@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260727215947.118292-1-begeebe@gmail.com> References: <20260727215947.118292-1-begeebe@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The OneXPlayer X1 family and Super X do not expose a firmware tablet-mode switch. Add one based on their detachable pogo-pin keyboard devices. I checked the EC alternative suggested in review. The Super X ACPI EC operation region covers the complete 0x00-0xff register map. I captured 30 maps with the keyboard attached, 30 detached, and 30 reattached. There were no stable attached-detached-reattached changes. The named ACPI fields KBFG and SYSK did not change either. USB hotplug is therefore the only attachment state exposed by this Super X firmware. The X1 keyboard ID was taken from public hardware information. X1, X1 Pro, and X1 Mini systems show the HAILUCK 258a:001e folio keyboard: https://wiki.archlinux.org/title/OnexPlayer_X1_A https://linux-hardware.org/?probe=517a6d5085 https://linux-hardware.org/?probe=98267565ff https://linux-hardware.org/?probe=21f49ac935 The X1 family is included, but has not been tested by me because I only have the Super X. G1 is deliberately deferred because of its different keyboard layout. Ilpo, comments on whether oxpec is the right home for this functionality are welcome. Changes in v2: - add the requested Assisted-by trailer; - split Super X from the shared G1 AMD board ID in a preceding patch; - support the X1 and X1 Mini family using their folio keyboard ID; - use driver globals and board switches instead of platform data and DMI; - keep only the USB scan and notifier callbacks, with matching and reporting inlined; - use generic keyboard vendor names and place the IDs beside their users; - document the complete EC map comparison. Alexander Egorov (2): platform/x86: oxpec: Distinguish OneXPlayer Super X board platform/x86: oxpec: Report tablet mode on OneXPlayer detachables drivers/platform/x86/Kconfig | 2 + drivers/platform/x86/oxpec.c | 116 ++++++++++++++++++++++++++++++++++- 2 files changed, 117 insertions(+), 1 deletion(-) -- 2.55.0