Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1634210pxb; Thu, 7 Oct 2021 11:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhIiYSjGoihzdCZEidB9BQm42h6cL28MrA5HhmLyWTlczHawxWf+OowiOCOZe8erTBQH5V X-Received: by 2002:a17:906:9a07:: with SMTP id ai7mr7745151ejc.55.1633632132248; Thu, 07 Oct 2021 11:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633632132; cv=none; d=google.com; s=arc-20160816; b=FJ7enoED5BgMQQbqVgQPQ2ps9ptZLwvBrE7ScgVcdFRKfYb7GzHTfum+ly5SmdeNjy 54cMm6mfNDX7WJB0Us5cxyUYU3aMA1jh1+2RmdtM1UnD44ThY2qV0H55JmNbycq5pB/p JaOHzTciJiv478lCLvT94cKsisd4KGHDAARzBAsfzSurYoT34T4XmkfM68fgwJuFhc8M Rmcn5nSjb2QrPX8MvNeDBQWbxrMfEaCMJ7sDlUTlWIXnJlCGcNI9UkRzACo80UwGeKrg BpeL9l60B+tAbM+HM2Z8NcxwF6DGgtPPdgkjJ9wN0ytV3+Id2CpyyYdbPcF7C0U1yD1E CQMg== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=guZCAG9/M6PTktkx+p5Y506i79kkw+F0pi1xST3ThjI=; b=0BExtvkSop/Mb71pwYiJ2aeEr2a5aG6xmRMm9I6nU7+oSOwLIK/qHFMkkFEePO+Niv g5v24J6pzj6Cu/Ou0cfwNgqyZnCNTdxG/RNfVqHtD5vdQG1EfZIAZ438OW3YCziE4u4L Fyz5ZctZCDvMS1xUcF6zg2pNwu1P+KRzmJIgxrbtnRgywCHjj3jFtj3uENOyVJUzv5jF V39rZwnjXTkGkXgibSpOwReSSXFuCs70yg3gu/lgE/PNnpV+FYwm8ffeTAgZIJDhqKAz u5WXh5TMRxL8AZdL6DuRwCNil9+CfkI0VfHhtmG2UMFoOph3LyY18ECsZz/7VrepffVm YpCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eoaFzaHr; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si66537ejr.261.2021.10.07.11.41.48; Thu, 07 Oct 2021 11:42:12 -0700 (PDT) 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=@chromium.org header.s=google header.b=eoaFzaHr; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233848AbhJGSmC (ORCPT + 99 others); Thu, 7 Oct 2021 14:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233837AbhJGSmC (ORCPT ); Thu, 7 Oct 2021 14:42:02 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4213BC061755 for ; Thu, 7 Oct 2021 11:40:08 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id t4so8465863oie.5 for ; Thu, 07 Oct 2021 11:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=guZCAG9/M6PTktkx+p5Y506i79kkw+F0pi1xST3ThjI=; b=eoaFzaHrfJm1jzZKszGfYysGFsPkWiLkV42qmUaekj0K6fMN2c0pWhvZv78K/0Ad4h B0fmpjHvEEU6jmiaMpLUfTIJNZ8ZO+LbthEG1lvmrkvlipbM6Ca0ExLXeRmTVr00aJRd aEUGwgH+rUznkfE9N4jbS5jI3a4+CT93HQVqo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=guZCAG9/M6PTktkx+p5Y506i79kkw+F0pi1xST3ThjI=; b=QxPllpmDOkjinERpha9rmEaacNyQf9UZc6FXi8rreukwmeB2gSZVTXUt7zcopeEv0A wGeKwqIq+OetafTj/yyUy5qJw3AEuuXLhxO24b5M9ZgUSY5x0a/Y3HFjON7TSzXru5nD qYmTgxnPLFk6qJbwEg4zlOgvElaINxeJpCX61V/tsxziaNTlvmkl+1IZw2gSRyhwQPo1 ZYgySAv6T1oG1RMMwX9YjN4zuNesOAU2hm1YSypfWDVDUh3K7n3NSaj8ZLGZKbKU3s+2 s7HtWSlfuh3Axiizi/eRt/H2z+0RZGWyrQUHovQPm5jG0cDm3AgSX1O54/+y0Qx2AS31 kGfg== X-Gm-Message-State: AOAM532kUW+DzXxbpxrOTAKPRSP913FbwmIEgUyyazZB/qTLuVtSzzkq Fs26wgef/EaBR7A0H4OMcK4INphr9SqsxTLoLoBpNA== X-Received: by 2002:aca:f02:: with SMTP id 2mr4508153oip.64.1633632007694; Thu, 07 Oct 2021 11:40:07 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 Oct 2021 14:40:07 -0400 MIME-Version: 1.0 In-Reply-To: References: <20211006193819.2654854-1-swboyd@chromium.org> <20211006193819.2654854-3-swboyd@chromium.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 7 Oct 2021 14:40:07 -0400 Message-ID: Subject: Re: [PATCH v2 02/34] component: Introduce the aggregate bus_type To: Saravana Kannan Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Daniel Vetter , "Rafael J. Wysocki" , Rob Clark , Russell King Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Saravana Kannan (2021-10-06 20:07:11) > On Wed, Oct 6, 2021 at 12:38 PM Stephen Boyd wrote: > > diff --git a/drivers/base/component.c b/drivers/base/component.c > > index 0a41bbe14981..d99e99cabb99 100644 > > --- a/drivers/base/component.c > > +++ b/drivers/base/component.c [...] > > + continue; > > + > > + /* Matches put in component_del() */ > > + get_device(&adev->dev); > > + c->link = device_link_add(&adev->dev, c->dev, > > + DL_FLAG_STATELESS | DL_FLAG_PM_RUNTIME); > > Remove the STATELESS flag and you'll get a bunch of other stuff done for free: I tried that and it didn't work for me. The aggregate device never probed and I was left with no display. Let me see if I can reproduce it with logging to provide more details. > 1. The aggregate device would get force unbound when the component > devices unbind. > 2. You don't need to explicitly keep track of and delete the link. If > either of the devices get deleted, it'll get deleted automatically. > 3. It will avoid useless probe attempts of the aggregate device before > all the component devices are probed. > I don't think point 3 is happening right now. We only try to probe the aggregate device once all components probe.