From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 2BACB437846 for ; Tue, 21 Jul 2026 07:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784620467; cv=none; b=OFLFct1QVv5lVLxiRsIbvXiDAMI/lq2+50CkoGyjdwhAMn4YyHrCUaqDBDYao/VVHtQPT7p8FU8l8E4l70S5NgxiulOdfuw0NzOJbLk7sxxC/l/IDZHFonl1UC5/AWaQ91YzY+l6LHh/6NYXzPw5FwwEYpwuuXoHy6yuqqvs7Ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784620467; c=relaxed/simple; bh=k0D8mghOQr74tTyVbSbMDMu8qtmXQ7oexCZsNGmSAYc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Mt70VPGhwfvyGasd2XmhpAIdiuTzFKlXhoYhMp2AJRPJ/OuiLeIcf4wMLoCNAlv41QtSgAzoISGvJ9JTEFf4kuvsT0Rb/Iv5NxWYFTeSuTxNArJ7iGCz4N3Q4xSRoIiCmcISeOaf+stzMAA2Sdhy6LMmOmlaHJ2K6V7JgsspPS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=H0UyOfHb; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="H0UyOfHb" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2cf50c6f235so30000635ad.0 for ; Tue, 21 Jul 2026 00:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1784620465; x=1785225265; 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=+HjmAlbOs1MBYQdjObhXrJEH8vF2H5aB6qgUxYH+azw=; b=H0UyOfHbMoVbSMtbKSA9+4Vawhs5WsNK6Qwrs1rsatzKguCDzflc4o8TlEEyBwE0eZ KfLsGjf0qcZI8LSit3TvPAzXQyA8ULXf8iGWef5Hc0E/Npn3+/xRZxwAMwlyHhcDdavO ls3qCWN4FN3ouhrtr/WCjT4stCNE8EjOlp6Ts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784620465; x=1785225265; 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=+HjmAlbOs1MBYQdjObhXrJEH8vF2H5aB6qgUxYH+azw=; b=ahoLq1r8U9znC7MK9A7YU2/E1C5oO9MuV4ZLQ+CPhOaCYvDbH+8s2+eQ8d/uTvacH5 18XubambTCkKpbQdT5Josza+WdkeRc1UihnxBxHHvewDsRyX0RKT1Kc4jEJ1aDTqqQKK EdfxGgzwuUVIV+ZjbHNwoQdnihcWvy8w5ErTkrcSjk9lThyx3xXyOuYjqIb+JmdNr6vb JgbV5mAgMcEnKpuQM/TbkPiuQzNw2y9OAc0hQ4w39dD+iiOZ7bEJe1R4uECEPn2mV0HS rJj/rICtGCvjozvHBc8ih28Ns/w5SdkbcNcdb5HYOkz55LBE0RUNAyuNLJpX+kKAq4/6 ks5Q== X-Forwarded-Encrypted: i=1; AHgh+RpTgT8KsoaG7w7/2/4/r/edUOd51RGI8hxK9crTP2ttX7vFS/wsT71MhtMrR9KrzrTADZ9e8/ClSIRARvY=@vger.kernel.org X-Gm-Message-State: AOJu0YwwcoqEVjy0Y4TDbXRlUSpZyMB0hEnmJE82XxL+U1gL0jS9rMck UAacah+1iahCAEGAkdQU4OWkr7+CVZzREzGZKhtGQ5wTxYe7TM+17w7bIrtjM3i6QQ== X-Gm-Gg: AR+sD12SKo/6t6HP4Q8li7QfeW4DG70F6N0MCaJDW1NAIA79TKivWSs/Q3TiFK3gmkV bpawdNlIXO2T2jteZsdxockbZ95VJgm84B532tFFcwSeC+j/fQ0hMC/22ShzTJppW5nfXkwnrVI WV6zev6Q9vzsGgFoyXKD3VdMiB51EI2TnM4tQwC2jtLLiWnRNxDZ61wSPB6JfCCJW2yTYHQyf22 xtTkrfg4rq8LrJuYbLYvuO62FNcMO0yO9PMuXmoyOJAvMsmIiyUTKirOyFYenTq2wZDPSt/HikK L215B1x8Zrx93drrO+gNwDnyoBzBrKIZ6kUSyiwYhCmWPqByAivfJYRc1Z9dg72cDSQF04cDfDe bH/cVAXnvvj6ZyH0vSG0qowdTOE645D4Rcbkam3jKANm7ETo45kI4ho6bNx9XQ1TIjSveKOm0YD lRBsGher+03l/nHE809oiK8OHiECNj36/JNzx7zZEnqUXfqN5fj1wrBC4TXsc= X-Received: by 2002:a17:902:ef08:b0:2ca:5970:732d with SMTP id d9443c01a7336-2cf349d0276mr183734525ad.41.1784620465520; Tue, 21 Jul 2026 00:54:25 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:3916:f048:32c3:931f]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf3448f705sm70724175ad.15.2026.07.21.00.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 00:54:25 -0700 (PDT) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno , Benson Leung , Tzung-Bi Shih , Dmitry Torokhov , Jiri Kosina , Andi Shyti Cc: Andy Shevchenko , Chen-Yu Tsai , linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, chrome-platform@lists.linux.dev, linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 7/9] platform/chrome: of_hw_prober: Add delay for hana trackpads Date: Tue, 21 Jul 2026 15:52:21 +0800 Message-ID: <20260721075226.2347933-8-wenst@chromium.org> X-Mailer: git-send-email 2.55.0.229.g6434b31f56-goog In-Reply-To: <20260721075226.2347933-1-wenst@chromium.org> References: <20260721075226.2347933-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Up until now, the MT8173 elm/hana device tree has set the dedicated regulator supplying the trackpad as always-on, simply because the Elan driver was missing proper delays. As a result the delay for the Synaptics trackpad was also omitted, as it was not strictly required under such a model and delayed the availability of the trackpad to the user. The Elan driver recently gained proper delays after power-up, with adaptive skipping of the delay if the regulator was originally on. The I2C HID driver and I2C OF component prober library gained similar adaptive delay skipping. The device tree will be fixed to have the regulator not be always on, and proper post-power-on delay time added to the I2C HID device. Also add the post-power-on delay to the ChromeOS OF component prober, so that if the regulator is off at the time of probing, the prober knows to wait for the hardware to initialize. Signed-off-by: Chen-Yu Tsai --- drivers/platform/chrome/chromeos_of_hw_prober.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/platform/chrome/chromeos_of_hw_prober.c b/drivers/platform/chrome/chromeos_of_hw_prober.c index 8562a0e89dc6..54d8941617e2 100644 --- a/drivers/platform/chrome/chromeos_of_hw_prober.c +++ b/drivers/platform/chrome/chromeos_of_hw_prober.c @@ -70,10 +70,8 @@ static const struct chromeos_i2c_probe_data chromeos_i2c_probe_hana_trackpad = { /* * ELAN trackpad needs 2 ms for H/W init and 100 ms for F/W init. * Synaptics trackpad needs 100 ms. - * However, the regulator is set to "always-on", presumably to - * avoid this delay. The ELAN driver is also missing delays. */ - .post_power_on_delay_ms = 0, + .post_power_on_delay_ms = 110, }, }; -- 2.55.0.229.g6434b31f56-goog