Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp254172lqn; Thu, 11 Apr 2024 23:29:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPQPSBjHeRTYSYLfP9iKY63SBKLe1aR1lGL40yij3fG1srT3w63HhQE1crM72gyQjTysRIeVjrZgS+/epQpHNHiUAWoQ2ad2mbZV1Xwg== X-Google-Smtp-Source: AGHT+IEpYHnequgiKQeFYqBCFPEosHt2YkgFwi9sl31KfdOWdf2CRBwMGcpdCUvJ+4kFARpxVbcr X-Received: by 2002:a05:6358:2502:b0:186:2d41:4091 with SMTP id m2-20020a056358250200b001862d414091mr1866532rwb.5.1712903345696; Thu, 11 Apr 2024 23:29:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712903345; cv=pass; d=google.com; s=arc-20160816; b=vYfLv9YZSnbg28e5WgwDdToYv0V447ZwIJLYBYKhZRUmIXe8REyymlfG5EcGzFyOeT 3KLh04DT8fuj14AimF8vrAk0/RM7i4OWbmpd292Wi4MGy/JjmN0c7BMZ+0l9iSyVELyC 8UeCyP/UKTCqfYDy32bl2WxsiB8IaBbFDT78gkPwszqCr4QmDCExOiAD+XhGNsVCL9KJ DdDTaLhuL/xhrJA15N0u1Z43V1r5YovypF1UcvIkDFaAN2zpWcwftpR2TzsB2lWzsc3C unpnaFudkyy+59eet7GKWQRa7BGA5z9dsGlSGqQU5WuFioQ1fqYVExLTs1ef4wUHI4Nt k8Gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+RwbcFry8D89CJYvhce0MUVsj/oVUO7sMBwglPpCnGs=; fh=BYmUEkwSOEOoLbTN6I6boxPXl/In8zhKyMntVdxpX18=; b=Not7+iTXZjlTfQCZaFzsJIWfwDNv8WnEnZTT3KWuyWLsBlUXmymckDjqFDu2K8QpQA 6DE8pU4MDnwTwi10Ft7V/GVqI/RGW+2MB5DWItg6g+/dQFK2u912xk3ShOVB1fzhWFx7 BHJaH9Xc3hSadkV/ZNcdf5ouluuJg51xLdlwF9kb4mMkIt8AchnassxxN7s89lT5BcVn tSKHC9Lha17cLAW6BCVhOdu+qzz+zBl28B9hJnmwz80k0odd64h6bh0nU0PmpkCuDslN kD+Zc9846hOk5atV3mCIXCUYL7seGEt1POQnepILfUY6ZWUy84rYSMkgZRqVAsW+u6ff YPeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Byzm0yPe; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-142038-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n9-20020a635c49000000b005dc47dd5dd2si2576745pgm.791.2024.04.11.23.29.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 23:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142038-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Byzm0yPe; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-142038-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 57E45284D5F for ; Fri, 12 Apr 2024 06:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B2C53C464; Fri, 12 Apr 2024 06:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="Byzm0yPe" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7605B2C87C for ; Fri, 12 Apr 2024 06:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712903336; cv=none; b=rH0b/pc82/ujW5Qqy+EhTC8aaLJRWxJsETSddyNkPbzRYDEiDSwUrSgzW1Thntvtri7luOQ6YW4Gjmrk1yqnaDpQ6jjedyvDd2sA8dQvopGai9pFoIocds7UKyCzpM+GPpg+So9lUcEFWWKuYmmeArgeevNfa/hpDZS3wP9gRVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712903336; c=relaxed/simple; bh=+RwbcFry8D89CJYvhce0MUVsj/oVUO7sMBwglPpCnGs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SSncdS3VnPgYcBls2hVBmPY3sTMQ38/qkUXg4aw7bqHf+StGsQFQZ3fB1lA8tSgrW8J+C7Rh4yQbx3j3tPIrdq0cyqfkDNuTchLteNvAfFZpD0reEvKkEBLmsU3cYiwOxhyVkgnEnyCDjYi7R2oSVEWoHkEpe2/5wQFW75+sSQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=Byzm0yPe; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id E35083F17B for ; Fri, 12 Apr 2024 06:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1712903325; bh=+RwbcFry8D89CJYvhce0MUVsj/oVUO7sMBwglPpCnGs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Byzm0yPe+uRrHVoGuXVRmJiuQEdwCUHhknpG4Q/b6fsYXHqOJ1tu+DRbW/TbWHlk2 MNwLvUmb4gTbYKpUKH0ySWwNbE/pZX4JW+jJg5uVJyKYmB2JLLxBsHzIHbP+G8/m/5 V7xuii9jJ9+P0KG4zfW2hfxQzLepWO8qXkiL+AgEmFCvD9Uj7khqxrwQetXG+zPsvr cCPQubAzZs4YqaSd+9PutkNb+P8gu1d8i0flj+BenUi9Jv5C6iE1jMZQOVNzdp925P GN+3z/Ud8dmiOCLyTutRpBJL2SNH6E7rkyY+PNv7kCbfhE/Yqo/Blqli95wiHNALcp GeJt8/o6QgMcw== Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-2a517457163so536692a91.3 for ; Thu, 11 Apr 2024 23:28:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712903324; x=1713508124; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+RwbcFry8D89CJYvhce0MUVsj/oVUO7sMBwglPpCnGs=; b=hjoIgXNbX6HeTRLGCSVLN30v911+Bl+q7JG6h64Kw3cKfk5lLN77ppRqOBRWzxSYuR fqLxpGI+fqmJ9/80LnZjHn2lUTLT0HgzVMhdkk3h36AXOBvrQGNaCJz5GN3+WQ2sk7m2 5iukW8O18UFZOFM7M6/6+t3Ca4LgkpfI94sSPXp9il87Ai5Ku6UiEdw1FnFUN72cxYgW MgFiH3HRRw8rRfTNFYdoNEjUYwqSJIStOubpJi6fnUxot0nwYzqhqP/oZ9sxH+QESVSY UQgRBOWMbJOQ+5AIG4DoIY5uaCaesH/x3jKknVpCoO+5Kl06UQN7fgdLmX+HXK1rDY3M DyUw== X-Forwarded-Encrypted: i=1; AJvYcCW1aBZImjjuJIZ0fOfFAD/2kKHtBmsP0VCaHyUgiilj0fyeV8RreVQRZZ0txg82ovUaNRegrJpa12Du6vLTaRuRW23xr2kzhoL+jno/ X-Gm-Message-State: AOJu0Yx4BPjCeXgk+CxhuncEbtccNEruUm6BBWfYSSooPMqUPxV+LYmE RdLYf1kDn0h0QgWyvzYwwPDM+BtwHwha3LnQvMvvTBdQhpVJg1wEjjQiMNw7RJ3R1aLBKxuqZJi fuJCsxYNQV+iQeoaE43tMKxc7TooVVRrttnlRzYhuuXx3SwStcXf0fkjJo3T3NHchCGrFI8Vgo5 nmIbsSsPytCrwYhzVJhJ8238RIXfAJNOVv5GbBUGqV1v6xcAT4x+P7 X-Received: by 2002:a17:90a:6f84:b0:2a3:ba0:d9f with SMTP id e4-20020a17090a6f8400b002a30ba00d9fmr1707268pjk.11.1712903324487; Thu, 11 Apr 2024 23:28:44 -0700 (PDT) X-Received: by 2002:a17:90a:6f84:b0:2a3:ba0:d9f with SMTP id e4-20020a17090a6f8400b002a30ba00d9fmr1707254pjk.11.1712903324140; Thu, 11 Apr 2024 23:28:44 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240405102436.3479210-1-lma@chromium.org> In-Reply-To: From: Kai-Heng Feng Date: Fri, 12 Apr 2024 14:28:32 +0800 Message-ID: Subject: Re: [PATCH v2] HID: i2c-hid: wait for i2c touchpad deep-sleep to power-up transition To: =?UTF-8?Q?=C5=81ukasz_Majczak?= Cc: Johan Hovold , Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , Douglas Anderson , Hans de Goede , Maxime Ripard , Johan Hovold , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi =C5=81ukasz, On Thu, Apr 11, 2024 at 10:23=E2=80=AFPM =C5=81ukasz Majczak wrote: > > > Sure, but what about other transactions that are initiated by the host > > (e.g. SET_POWER)? > > > Somehow it is problematic only on reboot and works just fine on > suspend/resume and > set_power. > I will dig more and try to find out what the difference is. If cold boot doesn't have such issue, maybe I2C_HID_PWR_SLEEP shouldn't be used by reboot? Kai-Heng > > > Perhaps this hack at probe is enough for your use case, but is an > > incomplete hack and at a minimum you'd need to add a comment explaining > > why it is there. > > > You mean a comment in the code ? > > Lukasz