Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp95476lqa; Fri, 26 Apr 2024 15:58:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZvBzL2GCgVRzT/4ZIjtKPwnVD7uSV+0VqPPwI5nwCCSvHRYI+nx6LkiJdZuqY/Js3ZhQ3APZjU322ejONfj7qBX0OxJ96NODSYmGcIw== X-Google-Smtp-Source: AGHT+IFuGZfCFuXOR2cFrKErxBxRXs0eTuBkBlUQZ3dz0QcZx2/fjsCTU2iYA64UWETBpY5ZlUu5 X-Received: by 2002:a17:906:a297:b0:a55:8f05:b1ef with SMTP id i23-20020a170906a29700b00a558f05b1efmr609982ejz.76.1714172286878; Fri, 26 Apr 2024 15:58:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714172286; cv=pass; d=google.com; s=arc-20160816; b=tpdZ/JMwqM/xOQYpOmBvMN2cCA/LpiIzvZOGvhahUZaYzyO4yd75xfv2AotaMc/bJI oUTFgFbiC5F+4Em9eHCHKSCEZPSnrGGDm4lwTJDf2ooMSC7lTBkmtCstnYTlrViPmpIo yf1SH3zxxiXU82B2Fle3+s4imNFQ5Nk9Rh+mDNjsgmUPKN1If2gLtv4tIFB4pzzPmNMX e0oMwx2J8zX8SiYUrGxb7sF33dBFhD7q3Lo0eY6V6S4Zct01eNNA83EumSdbOXMsg65N KxGPlJtoHIQFUpcxt1kvPEl+TnNvLi2dOaoE8QGL8pLZdoQxlMSzAOfdee1quS4KZIQq Sz/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=n5M6hS5g6y3ojVoJvmxqMM1bsyrtPVnjINp3YLX9H2U=; fh=jQGUmjI18alFtDLjDaM2zundwvQZHBUVx7nrAZMPErY=; b=CXRkVlU+hHzFxjS7UqwOvsjpD0ijLKztnCUAUVSnnf4gm3amaqPTA3FsoIlWRmvkyB T99l2HR/JVP3niqnVqacagKcgvg5VZYV0JUyEv0Kd75bcm+taUJdZhRAM1T+gj4xzB/w eMzKGZuq4zf3N5ORx7lu2n5aRvKz68z1srvJdHeXK7PC7GGrzRgVk7C2wEQA7w0xajNY UjSjdn3TZBa44batCmyMWkLUU+1RrNDE8Q+eDw72OHCEm4vuAe/6R81LwGHwGymOyPGe +4Bhb2juqRCEqD6RmzsOpqBSjncHxmbYzp/g+5Ub6UK+f1oZ1a40I9d2jXS8Bk77gNqS zGUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kl.wtf header.s=key1 header.b=KJ8NL22f; 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-160755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kl.wtf Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x6-20020a1709064a8600b00a5232586dbesi11309424eju.397.2024.04.26.15.58.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 15:58:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kl.wtf header.s=key1 header.b=KJ8NL22f; 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-160755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160755-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 981061F2217F for ; Fri, 26 Apr 2024 22:58:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A8A23AC1F; Fri, 26 Apr 2024 22:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kl.wtf header.i=@kl.wtf header.b="KJ8NL22f" Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 7259438396 for ; Fri, 26 Apr 2024 22:57:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714172278; cv=none; b=haHQSjPYL2BH3+anjliB97paQY67JzcNXeoI9J1gKFxTVTsZRPsFa0u+mapqzXpKnNP6MuUvHG5rKpMVfWJGH3qXe5zeN7GdTOxkEDL+Wcgl8lZlqcX78qTonK5xKg+7uqZ7e3ylkkQKVVv1v45Mr9IjgpPkKioWZ29Du4dNIFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714172278; c=relaxed/simple; bh=n5M6hS5g6y3ojVoJvmxqMM1bsyrtPVnjINp3YLX9H2U=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=VW/xlEKjCcreeT0cqrT6YfaWe26hJRZXFbZhxzRPMun9NVdpyyqVqfi6GS0wEtZhlft+nElXBQ8/+QjW90b0QgSniXqPt8S/fNYyFgVCQzTaZVMHwH57iqyvfj/oYfbpPlNjx6LI8KIbEIxh/5rc9k6A3Zn8y83yjHmC4Cjqs18= 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=KJ8NL22f; arc=none smtp.client-ip=91.218.175.172 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 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kl.wtf; s=key1; t=1714172274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n5M6hS5g6y3ojVoJvmxqMM1bsyrtPVnjINp3YLX9H2U=; b=KJ8NL22fEE6M3mwOxelkjA4BVjJ/3jHnBZPP/dcyoAS2c1ho05tKVZmuhcp7CC01uZHqjm 5RB7uQMTiv7+dqKgzgr//HjodurVgOM+BNkAeOr1a8fhD9BXt0SFhv1zzzju0oHNnj3jrE iLlW1hqIoleCSBUmIY8aO8eAs6AZq3wEHugwgyCWGbkI+CdzTAbA5Piyz7nKtuPzGNLfO6 6NeHMKV0bLr6pyy2tOzMfHNGCrWP5uoo3JUxQDReG2oR3ZWDmTjwDq5hrPYLUqb6csBaMc Z6WeiAQnZaSx2xC9fLENf1SjnHjzRodvbkHLiDaSRC2TbZ20ovP7YyXEZBFPUA== From: Kenny Levinsen To: 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 Subject: [PATCH v3 0/3] HID: i2c-hid: Probe and wake device with HID descriptor fetch Date: Sat, 27 Apr 2024 00:47:06 +0200 Message-ID: <20240426225739.2166-1-kl@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=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT The previous iteration of this was a bit naïve about bus error code consistency from i2c drivers. Instead of trying to differentiate between them, we now handle all bus errors during HID descriptor fetch the same with a single debug log, as suggested by Doug[0]. As the change is relatively minor, I have carried over Łukasz' Tested-by and Reviewed-by tags. Third time's the charm? [1] https://lore.kernel.org/all/CAD=FV=Xr6NsW085Sc+NhVmGDOn-zCCQ65CMNce_DsHxtXUgm9w@mail.gmail.com/