Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp787535lqm; Wed, 1 May 2024 16:18:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5+lTIO3FSMCSILiYByya5tN5nmtGrixmgcVDexAvpclxfk1dSQCINkMWvUEUUDYViHpg7Jy3NhxdoySiDPK432wZg9o0HnQCcySBTVw== X-Google-Smtp-Source: AGHT+IGHG2A4XQkpnSrS+dK5tQCfYvz3wkekn4qvW4BFmhQAVE7S4pm9Xyp4hC5xnhjn9a3YoLke X-Received: by 2002:a05:6a00:2d90:b0:6f3:e720:cead with SMTP id fb16-20020a056a002d9000b006f3e720ceadmr554910pfb.5.1714605511389; Wed, 01 May 2024 16:18:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714605511; cv=pass; d=google.com; s=arc-20160816; b=wV8OjXyTMh+7/wRm9qGXAVEYQk0EDI2k0pxYRBx6Sw813nd/iiFcGFHffy9/Ou6hoS URZvAJCI/ehPKWc+1TdXc5qyY+WaLqHDwas53tyBlG0segCLWto6anJzdErAmvU5Tl9/ SKs/A5QAMjWaQ0bpBHps5TDRq4u+aNn6d/x7/R41gbZ0S6JCH9lmS0kaAZvAaKFxndvQ Mh9xr+2o1nlIUsC+AsuhERQnqAtGtNDE5P+COoLj93ixbXe3k7JpkgXXsqYphjpIqCWQ yUGRjSnA7z9o3mqa01D3kSfOMhL0O00zrlJx4LIS3JKceREzKne5HLwMGBaEL4cEMWhf isDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=ZURTbaEpa10D59UB64Q5vJXaRFyLVPmbATsg9QGzvO0=; fh=Y2HBb9afhDam3bc1pBMU9lf5fcgtV6BUVNzJPCXU7Ns=; b=HgxuXwjhVwnpKjbu+c0iPAKn3LWpyJECWERsTz2Td5+TosbmXWW1drsje20+sBsJar 0zm4h7ggtyq6eh3xHi9nh4/Ig/DEtb+gX7VgEO+qd4fQoo9sCup1X0clge/uMPeRyLcy xd2YkeD2E4YJKf/9Dv6nxa6+4dIx2mEOYmGjkwR5gpzPB+KzcMxjpIvvGW1JtqdxN9FU D5vyuNJncGTZAAU3WLH8R/AxDyPRUDsrE6kJQkDr+DsF6WK/kKx10bUfef5xedYT0Ffg h3YNiOYekP3D5y/7FXN2XLgspJjqD6grR5R2BLsf7E1mt96CIIDjekfUz6j2dh4kpjzN xGeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kl.wtf header.s=key1 header.b=BoabnMbx; arc=pass (i=1 spf=pass spfdomain=kl.wtf dkim=pass dkdomain=kl.wtf dmarc=pass fromdomain=kl.wtf); spf=pass (google.com: domain of linux-kernel+bounces-165820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kl.wtf Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b13-20020a056a000ccd00b006f40d939a9csi5673529pfv.300.2024.05.01.16.18.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 16:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kl.wtf header.s=key1 header.b=BoabnMbx; arc=pass (i=1 spf=pass spfdomain=kl.wtf dkim=pass dkdomain=kl.wtf dmarc=pass fromdomain=kl.wtf); spf=pass (google.com: domain of linux-kernel+bounces-165820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kl.wtf 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 287EE2889A9 for ; Wed, 1 May 2024 23:09:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1E1B168AE6; Wed, 1 May 2024 23:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kl.wtf header.i=@kl.wtf header.b="BoabnMbx" Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 978B212FB28 for ; Wed, 1 May 2024 23:09:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714604986; cv=none; b=BgegM6umwu76lvZ9bv5KQTpphdouSU+LAkr+XwBNIhyUDPWqMZFkhxzA+1ycv8OSmgmhdntKF06XqBTgqVWBpjbrtBz69NQn+9RIvZGiO4Tq22e5BhiaoWjrZtfSBil4UBdCS2V28Ts4xCwaaYU8oqovuWlCiOgvxStuwBZYY7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714604986; c=relaxed/simple; bh=t4q6Euaprw/nf0vGYLeYR81pJ5UkdByENdJyjQJba1E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AxXX9cft1lalimpjsGTLOtT3ZklyxwnB2QI02y82s8RzIT5WrYflbj0ttD4FzJCoFNxvKKM8+0Mcp5zbgTbqcERegQUqvbEk73jBcmiZwjBXdMGZ5VYUIIjkJ0yDnfGmDpCjCmOaCvbvDwlYpugnVn1fts13prFElOPdNgU1VRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kl.wtf; spf=pass smtp.mailfrom=kl.wtf; dkim=pass (2048-bit key) header.d=kl.wtf header.i=@kl.wtf header.b=BoabnMbx; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kl.wtf Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kl.wtf Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kl.wtf; s=key1; t=1714604982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZURTbaEpa10D59UB64Q5vJXaRFyLVPmbATsg9QGzvO0=; b=BoabnMbxCfXCFoZ5Lq0H5UOSW6CGo+lInVzM1yMEfPrvavPlBu4QziWuqBRgt11VxwjYgr AWoL2zv//RdcVJN9umPR0OyLecopMKOslTRfyF7FwF+/9gMdErZoF1SCikHrCq1qWF2ukx 7L3kyDGpUHxb1i2Z2BZMzYL6z7zg9OlgGQjaSEQDjn1g2eoLkaddbjuoxjWkjat4qna9iy kD8n1UjTPtqgjMu3j7seLBNatsiZQLSbik3ZFmZme2RXkFi49ITaRy6DOYxc/TUi37iNq8 O9Al2jnydACoOodfBsdUcmWaA8yf/MTv9Qk+BOkYGp4YKYVE+NuRTlU1tUtyaw== Date: Thu, 2 May 2024 01:09:37 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 1/3] HID: i2c-hid: Rely on HID descriptor fetch to probe To: Dmitry Torokhov Cc: Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , Douglas Anderson , Hans de Goede , Maxime Ripard , Kai-Heng Feng , Johan Hovold , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Lukasz Majczak References: <20240426225739.2166-1-kl@kl.wtf> <20240426225739.2166-2-kl@kl.wtf> <5aa9f745-7f6a-4873-90ba-79c55335905c@kl.wtf> <26070c7a-4005-4bb4-b4af-779bfc415dea@kl.wtf> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kenny Levinsen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 5/1/24 9:09 PM, Dmitry Torokhov wrote: > Is it possible for a device to be wedged so hard that it refuses to > acknowledge the address? A slave is allowed to not acknowledge if not able (e.g., "because it's performing some real time function"), but a slave that does not acknowledge its address is electrically indistinguishable from a disconnected device. In such case the device is impossible to detect through I2C operations, and neither smbus probe nor a "real" command will see it. Any logic we have to silence missing devices will also silence entirely unresponsive or extremely non-cooperate devices. That is the price to pay for avoiding the log message unfortunately. No other errors from the smbus probe or a real command would be related to device presence, and some of them even suggest a device is present but broken (arbitration loss, assuming no shorts).