Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1441053lqp; Mon, 15 Apr 2024 06:48:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2Pf3088jmKi9X1nA+8koJ1qJQGpqVV95bf+bFIwRjrHAaRAJhZ0ei5L+0LuINBptQt3zGg03KgAgEKU8t2KvHHmtBCBuLmp6HDC0zrw== X-Google-Smtp-Source: AGHT+IGZKH1Rv83xFsZmr/84KpD2OP31ctOzmyDWxmTUN1jLuxJoSG0qim2zax8YsXsC3AWEZfl/ X-Received: by 2002:a05:6512:3b83:b0:518:964f:a8ab with SMTP id g3-20020a0565123b8300b00518964fa8abmr7910583lfv.50.1713188890357; Mon, 15 Apr 2024 06:48:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713188890; cv=pass; d=google.com; s=arc-20160816; b=mW1AacxW0g/H4p2icau+IOgTz1VeKabPxAR/4t68sTmgwhTuak91IisXegAbz5Ideg DMogwC062Ykq6h0GmvjTmLvoXw3bw4MolHsXMjxa9F0qAgRCny936LAAwKGDjksTihlf qqSnImDlFpCXgCNXNcqOSRMmLF+B8i29skeshEHJ90Vjxr6LKdDEHO/NMSG+VV+sMkeM HDcT40TAUChzvFpTDqkKXYcSK/kPr3JnL/+vUh+iXe5FvdOPMzGR1U5ZTq4EN8XJGDb0 Y6wPUOPGBPUcTIx35Q0dBDbolBMlBOJjwbGc4/nU05GfAC+wOi1Cgyd4CA0hAG7cGMe6 0bZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zJ4g/LiEIPuGQpvEixFNxk4CP8p5hFC/21LhdNXSCbU=; fh=+VyhrPXP7689cT/3bC1ZjYpKrWKGJJBq8Qw/bY/3/sY=; b=xaQ5MdhPgnJjPLKNqheWzQhAZ0YmwAspTd0SKu/aVUonkjt50pEi1n05FD+gMzwphx Qg7z0siTzETdI0gV6JdRQe1/imqh2ZcSdk5AZdTDVywAdmi+CT7+lS6Hfpq2pBnH5lFE eG82Y+Vjuhnf5uoJYUlbC1lLicO5wcesal81yzMduOe+fd+9C5GZ3G9iiSff2zt0s6JY v8c2CRATF0UaPYA2fxVTlnQSkGZIl4W1FQiUZczKLrxJjRtKH3EiBRb2y0LJ9VU3wRo4 Vzpl1xWcsyB4tSN2HajLN5P+9/lBDtexf+8e7BsrJOv2OhzIzrwuFiKXuMBOlWcHCeyP cwGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gdkVwXgL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j21-20020a508a95000000b0056e5ac3c9c0si4558997edj.375.2024.04.15.06.48.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gdkVwXgL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 47F231F24367 for ; Mon, 15 Apr 2024 13:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A12C612BF1A; Mon, 15 Apr 2024 13:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gdkVwXgL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C1DD9763E2; Mon, 15 Apr 2024 13:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713187371; cv=none; b=fDhH6Q+WXyuyPn4OCHPZwS4wQaOe5ThyIuK1XubfDl26wW495HehpvEOOPRZvI4CapuwVxFbbv4qo3Vk3am861DKhzeZGaOmTa4l6XJ7dAylehVTjB6ruPeAAy3wgj4MF3pKaC7quwENCkZu20/DCjWPpHJbQLHi8It9q17Dp24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713187371; c=relaxed/simple; bh=SZAlJ+Qs4QdL84IODe5Qz4hh9hsjjjspqVk5ksFWvDo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KwNDgjKSQJOyonIyEer1fPvb3Q0dLiZ9abMmzYuFaHObXa7zLDUq3VRF1k9n9DHDuF6GFT3wIQ7oGnWb911rWA8oEr84eU80tu1+4jyBhkCpiulMhPghY9VwPV6XK1fYiN/WptiOrVJ1XQB8FpqXOLsxjjHi1ATkGZMGa11DOn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gdkVwXgL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5490DC113CC; Mon, 15 Apr 2024 13:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713187371; bh=SZAlJ+Qs4QdL84IODe5Qz4hh9hsjjjspqVk5ksFWvDo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gdkVwXgLkmjYtmETgdhlBVE0X5By2J6fxnVccg5kp0ZWrohqPbKMAGgrCF+8ryUqt r+Q44fAUHK2HOA2EqUmnJD0/hGxxtpvNhOU/PTJ4N9wkv7EWc7wYM2bbcSuor1oFiG 0lXor4Zp/N9vWKnwqOc29xNYDEs+2mdMLnj690DfEOaUL7kSMN342WsOaxM9sxMbVR b6RvUrto+9p5vISl5QoUQI1gLleYb49oHoUAS4nrXTIyPPtKuz3kK0odRIVedJK6Mw Y2p53jBGEs3u16h20BBqr08c6jclIX87J7rbPA0YVpIL0yPf6QWoDQ8UtTF2nCuhkn 98GAtRIa3Y1IQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rwMIL-0000000050T-0JDk; Mon, 15 Apr 2024 15:22:49 +0200 Date: Mon, 15 Apr 2024 15:22:49 +0200 From: Johan Hovold To: Kenny Levinsen Cc: lma@chromium.org, benjamin.tissoires@redhat.com, dianders@chromium.org, dtor@chromium.org, hdegoede@redhat.com, jikos@kernel.org, johan+linaro@kernel.org, kai.heng.feng@canonical.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, mripard@kernel.org, rad@chromium.org Subject: Re: [PATCH v2] HID: i2c-hid: wait for i2c touchpad deep-sleep to power-up transition Message-ID: References: <81e1b870-37f9-4ef2-9a3d-87015f32546b@kl.wtf> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81e1b870-37f9-4ef2-9a3d-87015f32546b@kl.wtf> On Mon, Apr 15, 2024 at 12:28:28PM +0200, Kenny Levinsen wrote: > > The problem is that the probe function calling i2c_smbus_read_byte() > > is not aware that > > uC on the other end is in a deep sleep state so the first read will > > fail and so the whole probe. > Well, the probe was just added to "avoid scary messages", so we could > just do away with it and fix the "scary messages" instead. We also use it for devices that may not be populated (e.g. an optional touchscreen) and in that case we should not print anything. Johan