From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 7CDFF52ED5B for ; Tue, 8 Sep 2026 11:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788866752; cv=none; b=lARkeizy3T9El5nhILH29eWNUeHlM4HYuVBODNUXtdzRINO9ppAIkxgGbWNpz6UAs0uVbiD+W0buxCzNQ/dCMl5fDQg9AoL1mAukgOL5QjLardk8dW4ck8YcqsdGifr7KloQavMbnuuyzg3HamY28cKQU75CtOG2HOQ4/ALHNRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788866752; c=relaxed/simple; bh=CUx/s8hkg1gVyDlADAlhix/90G2SI1ctPJAfGNp8Uvk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DRqyGkQNKTNFwrzD9ZmuG0Z8wqrYIq0te+GfeU+qrC/5DYAwas+3ESRZ0PRb3Ui/ToAKfdWxPWwoyOsePoXsNsYjbZbLYepdxfBphKwisnGIYAESAoxk4ijEEiJ2KlV5jp16lzjP/aeDCnuIzfBCiAkHp76OkYWVp1HTM6b9Rec= 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=GQIGntLt; arc=none smtp.client-ip=209.85.128.52 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="GQIGntLt" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-49954b88fffso33311885e9.0 for ; Tue, 08 Sep 2026 04:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788866735; x=1789471535; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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=gcAHB+OJRZkyP7xzcrkeaf+wc3ImZ+o7m7YDDFY62Nc=; b=GQIGntLtSLEKLRXy2Pa+k+XvVxvnbPiZOnDz8DjIoahoJ3DkanFdU0EafWHuivnWZj PtDT2m9hoFfXVhbGeKxdPvkx0yzh5SowaqKwu3DBQURSTfkRuDxu97h4Cw3OOBsRiben L/p06wixbgDezgFeN7WurKPaCXL6FWMxvr8oqaFz2+DFAW81KZGP5Ozhy3ktkiLpjwmp PvWs1gwvEE9mbs+hpqBvuDszb+up9XE1dV8vYuzQcwR68uDoGmxIJHxpB5AvlcESoGPW bVlB9sskVoll9ZWndZTBKlXrpFS1m1tlqEN7flKSvO7F+0qqd3v0fWfWlvxBXmR5NS47 dUqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788866735; x=1789471535; h=content-transfer-encoding:content-type: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=gcAHB+OJRZkyP7xzcrkeaf+wc3ImZ+o7m7YDDFY62Nc=; b=CFRn2BvN+5moPwPl9QVK4VAuhlRBakDpsgt8i9/PtYP7Q1jaz6G/mZrYpbOrzTioRm VkUYpc4YppLEY7t/GXHNmP8QFc1m9OPW3gWrA3M2ZYrYcpAZZXBH4faigAFNDk7E/nxd u+3KRpaDINBM9GHqg+hlgb4mOR86MgPw9eB7KUOBnkJxcI7XYcPs+KJzpXfkCZ6q7Mx0 9WOq4nYXv6dfeAv9cxHtEKx7l1Hagyk7e5gEsy8IoDAl2DcLAf3PJov8ExwYrwusBAJY MmZSgxQ2YLCvKahzXNQ0KwQ5uHWA2rEWXN/iGRm+5iEBXo8ZLaumwEhvIIe2kKyPhvYf irMA== X-Forwarded-Encrypted: i=1; AKwUvBx5FIbg/cQ5sIL0KtRs42ZX7ZpyAT4Jp4253gLXfzBSYel0E9apl51PnllwWx/ah3sM8YVFC95/h1TdmshMM7TZMBjS@vger.kernel.org X-Gm-Message-State: AFuF++kbnJinQTueol7Ht8I+QjHBImx/BcjrWfspPjAQzK/55Yc7P/hG SVdgt6MP5dC2UtudT0kJ87CJ37lKjCmPMs9VJfCt2+mIO+pyL5lhngvz X-Gm-Gg: AYBFou0aVkBo48Hf0qvTp9SNke1W5Hq6Dc5Uukkp82Q63U0KM/Wwm491aX0/uq0DuED ea15nuNfLA8r5g6ke2V/1liFuCV7th31sSHSjtEaH2J46DSflVQLRSDeeDaA2Dkbr4Szm1abmh4 nbC+I0T13rJhCPav5ACSIXX9XViq5JF1NZycyq6wkWkyMW0PVAjCybROKotWeqhRxgs3IJL0sq+ UHS5O94VktsXnzzWEkkMe6Y8JjsB5JkD/YTrIlPRYs6EXEkPWqXXqcrvRFeqVAawBJVnJUghiCy ccbwRJJt+qndvT4iPk75sZQT1YR1kRbz+p3qCA/uiE7/v+AmZZSPJoxuiUgs1IvbxznPMh4REkY daSei85/W5pZXdFLWFuB1YMp5SCYETyl8GGzdu8z6+RFaggyU0JP6N43PsDrmt0MHxM0daLnRs7 +LQn8iHqsZcRKZgvCLq1vgYRNxBhU6y+R7cYomh3kan1LSnffa04OGjjSRB3DI8kMfvfVKI5jsv dSShFPRPUek+O2KXRk91UmPGGD6ORSRbkjVYWgMG81I X-Received: by 2002:a05:600c:1f93:b0:49c:ffa2:1f3d with SMTP id 5b1f17b1804b1-49d0e0f55e5mr129231345e9.30.1788866734852; Tue, 08 Sep 2026 04:25:34 -0700 (PDT) Received: from localhost.localdomain (mob-31-26-103-238.net.vodafone.it. [31.26.103.238]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49cff8195ffsm333745345e9.14.2026.09.08.04.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 04:25:33 -0700 (PDT) From: Oleg Keri To: Guenter Roeck , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Hans de Goede , Bryan O'Donoghue Cc: sashiko-bot@kernel.org, linux-hwmon@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] platform/arm64: add Lenovo Yoga Slim 7x Gen 11 EC driver Date: Tue, 8 Sep 2026 13:25:20 +0200 Message-ID: <178886672019.44198.13162841201550866016@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908092805.E15781F00A3F@smtp.kernel.org> References: <20260908092805.E15781F00A3F@smtp.kernel.org> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Tue, Sep 08, 2026 at 09:28:05AM +0000, sashiko-bot@kernel.org wrote: > - [Low] Missing dependency on CONFIG_INPUT in Kconfig. Correct, thanks. The driver calls devm_input_allocate_device() and input_register_device() unconditionally, so EC_LENOVO_YOGA_SLIM7X_GEN11=y with INPUT=m would fail to link. I will add "depends on INPUT" in v2, which is also what EC_ACER_ASPIRE1, EC_LENOVO_THINKPAD_T14S and EC_HUAWEI_GAOKUN declare. > - [Medium] Hardware monitoring device registered directly from a platform > driver outside of drivers/hwmon/. I would prefer to keep this as it is, unless the hwmon maintainer disagrees. The auxiliary device guidance in Documentation/hwmon/submitting-patches.rst is aimed at chips whose hardware monitoring is a distinct sub-function substantial enough to warrant its own driver. The embedded controller drivers under drivers/platform/arm64/ register their hwmon device inline instead, because the monitoring is a handful of registers reached over the same I2C mailbox the rest of the driver already owns. The closest precedent is huawei-gaokun-ec.c, in this same directory, which does exactly this: ec->hwmon_dev = devm_hwmon_device_register_with_info(dev, "gaokun_ec_hwmon", ec, &gaokun_ec_hwmon_chip_info, NULL); with "depends on HWMON" in its Kconfig entry. Splitting five thermistors, four cell voltages and one tachometer into an auxiliary device would add an auxiliary bus, a second driver and a shared-state accessor for readings that are one I2C transaction each. The cell voltages in particular have to take the same lock as the rest of the driver: they live in a banked mailbox shared with other EC activity, are validated against a signature and retried, and are cached so that all four channels come from one coherent sample. Guenter, if you would rather see the auxiliary split, please say so and I will rework it. Thanks, Oleg