Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2969708pxb; Tue, 12 Jan 2021 03:11:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyv5IH6Yit/hKkhN8dzJaC2y/civ47i4agH1oQV9TkzFGcAnqcFFbA1kDIvjNWBDPij92l X-Received: by 2002:a05:6402:1c04:: with SMTP id ck4mr2913371edb.320.1610449870444; Tue, 12 Jan 2021 03:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610449870; cv=none; d=google.com; s=arc-20160816; b=rFm0PKXtpnSlASwSaWFizEWwFBRoHQxKT8c3qt7ZNXm7FtUmBskjmkRVdGo8ivhoGn FIe1nq6gIrkHr8b+bVI5C12tLox0gl8/oHmWv1qbSBefi6qzFklTUarbW1+rrxIAoa03 ndNpuhqwTh4kYAGuaI5QVrMaD+MreGW6TW49DcfC9rAvbcAnGWZJG5X8lda1GVCO5gjF NjMAYVK0Lg5UEbLhw35nW+yyXpzQ+iGPdVO7UX32EtFdd8HA/kIMopxFKUArFRQc2hoH TqMD5w4O5mbim238nVxeQ34FEf+lZktKaHZQ+2tGopBYJ0qffXxFR4/2oRBSHbPPwx47 5jHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ujbfpSeu9ErQ/pUTWFlws8N4jsyVnjyJCXYrvwVYCCo=; b=KTmZ8q6wU8+cOkt4q5UNR1ILEibULM6y6pi8pTO7TZpe5BxxlfJwAf8G7gfQ/RTdkB 6F8xXmcPLpIbMhUyTFF1Vej00mgDD9YEtuHH6q1IXhl1qsoVeUCjRrj7jlADrwVejFa7 esJ3TTLgrqVVupQr01X3taR8dgN1WqngQhwNWEAflFn71sMIx5X72P7eorLEL3Ai9ca8 aK3STA4OUK9JTRcuTVynGeme9HSrNQ+vIR/ShYAe10FBwRY5X+EndhEnCMoACEDS0A9F bxG8A5kSGKSy35I1DJi6qXTe46Bw2Z+zjmVeT+8FUpGrv93iYvb049rSuOJ2uca+rnAr oRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JvkqNlpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu13si941541ejb.588.2021.01.12.03.10.46; Tue, 12 Jan 2021 03:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JvkqNlpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbhALCRy (ORCPT + 99 others); Mon, 11 Jan 2021 21:17:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbhALCRy (ORCPT ); Mon, 11 Jan 2021 21:17:54 -0500 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE240C061575 for ; Mon, 11 Jan 2021 18:17:13 -0800 (PST) Received: by mail-yb1-xb2e.google.com with SMTP id b64so732040ybg.7 for ; Mon, 11 Jan 2021 18:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ujbfpSeu9ErQ/pUTWFlws8N4jsyVnjyJCXYrvwVYCCo=; b=JvkqNlpt6m0qIVjHw0czJhS++ZK7b4BRGcwBHDvGUCt+HM8a4A0I5ZcGcGdcI5iDtu x20OZBkv+ith8aVnzrFcPsPlJBUIjV7BGFxwB8yFfm5FWAqtr2HVWymHWhQv1zkMCeNY BiYU0v9vLUMb+Zja/IlcUnCUSwTzzqafy3M9GlrwXaGfqwBuIynIk45k2G5oHRQ9ET7W ZZCCtKHIfZYld7g94t0f/Ld2tkfWJvgmhDD9KNb0o9a1BTlp4W91kBAmK4njIQAMopB1 ONHpE37XGidfsZ2Y8W06zFhYiP3kTcoKDEdDu0NFm4v3F/GO4BhT0H4cIt9mY1YJD+Ls Ww3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ujbfpSeu9ErQ/pUTWFlws8N4jsyVnjyJCXYrvwVYCCo=; b=WSa9KV3Dr7EwqHVQL9NKstfBuRgWl6eLpd327/jxDRYrmlEFRTqMigPa7DluBgzsd6 5sxtCb/KJfWmI/ChVe7G864hvP931ZFAyy4iRQ2X6UOTBafqWujrLh8t7wx5maY7m8yE 6SGO7pXFu1W87dvksJdGYe+y7KX2P9uG8H2v8ycO28O3VU9Ulk71Jev9FDepC15kQo5j nW89oDMwZAM68V3qSq5ryLPSCMgum+s32UEVydWeoVb5qB4cp6UvQdFST3QDzsuyrsFC kr/m2hhspOpwqapnzYp7pMfnnQVNpLjWSAQyIfRsmkrqx21Tv9J7kKwdFIncBv/98NvM f6ig== X-Gm-Message-State: AOAM531+FS3mcgEPXUDDQhfJQG9XRb28gt59TxradHNvgWA2l5q28gyE b+Hq4AMQbCuE3MG/byUHkSm3QGKCxDbyvX/5fdBjJg== X-Received: by 2002:a25:b703:: with SMTP id t3mr4207762ybj.96.1610417832969; Mon, 11 Jan 2021 18:17:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Saravana Kannan Date: Mon, 11 Jan 2021 18:16:37 -0800 Message-ID: Subject: Re: 5.11-rc device reordering breaks ThinkPad rmi4 suspend To: Hugh Dickins Cc: "Rafael J. Wysocki" , Thierry Reding , Jonathan Hunter , Greg Kroah-Hartman , Vincent Huang , "Jason A. Donenfeld" , Andrew Duggan , Lucas Stach , Linux Kernel Mailing List , Linux PM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 4:44 PM Hugh Dickins wrote: > > On Mon, 11 Jan 2021, Saravana Kannan wrote: > > On Mon, Jan 11, 2021 at 3:42 PM Hugh Dickins wrote: > > > On Mon, 11 Jan 2021, Saravana Kannan wrote: > > > > > > > > I happen to have an X1 Carbon (different gen though) lying around and > > > > I poked at its /sys folders. None of the devices in the rmi4_smbus are > > > > considered the grandchildren of the i2c device. I think the real > > > > problem is rmi_register_transport_device() [1] not setting up the > > > > parent for any of the new devices it's adding. > > > > > > > > Hugh, can you try this patch? > > > > > > Just tried, but no, this patch does not help; but I bet > > > you're along the right lines, and something as simple will do it. > > > > Did you see this patch change the organization of devices under /sys/devices/? > > The rmi* devices need to be under one of the i2c devices after this > > patch. Is that not the case? Or is that the case, but you are still > > seeing suspend/resume issues? > > Now that I look, yes, that patch has moved the directory > /sys/devices/rmi4-00 > to > /sys/devices/pci0000:00/0000:00:1f.4/i2c-6/6-002c/rmi4-00 What about child devices of rmi4-00? Does it still have the rmi4-00.fn* devices as children? I'd think so, but just double checking. > > But I still see the same suspend issues despite that. Can you please get new logs to see if the failure reasons are still the same? I'd think this parent/child relationship would at least avoid the "Failed to read irqs" errors that seem to be due to I2C dependency. -Saravana