Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1915075pxb; Thu, 7 Oct 2021 18:40:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjnJb7KpywnTGr0mFHT9dAvi80aNnfhM2X0TwwBOfYKo9U7r4FgfIvOoSmYrQ3D/M8H3Mi X-Received: by 2002:a17:902:680c:b0:13e:a1ce:68c9 with SMTP id h12-20020a170902680c00b0013ea1ce68c9mr7102365plk.12.1633657235131; Thu, 07 Oct 2021 18:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633657235; cv=none; d=google.com; s=arc-20160816; b=ZcbJb3WefByO71mnQ13cFQcUF3YnQ/5pTD1jFdHgzID4CPHgotwMJBbS8qArbqKzii /v6DgKvSEj3vU9jDpVioryOngqWe7aycBthDPiayDht+QUvrirGldQ3RlO1fGctDDWZz 5jHkZ0EKMo6JFasULQyMlmLCAzaExkJ+mTHyv0uxuhVEM/41p+y+dwl8tb9gNUQWVIua 30wRB9zFnhHcq1xK+LjPJuxti29m5/PEUuDC+gzHjyHrKthXDmmMz7PxzaLsE6lUxMDo fVNSaO9ED4bVbH7zYSQHgCYl5Yz6ECTzHyGv8Ij8kfQczvF1aRBv8H+/i89oEska6iX4 kcgA== 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=yVAkjeIZi/RbzxYhdceixworGw/JG9cDOxqyScssBzU=; b=W8wpHFfQY1VE1uuz/fPiQ7JluJoM2vB+H0w9xBWddbv8ASjremM2LpMcuXLtvDhUdD V+Mf/sejgpvuwh2wECAJHRhTilD6JePLqOzcFYLiXwGnDQwa/EsXkMa5vUa18OMRPvv1 Whb4a0CJTVYmPQK6Qu/oGjvSkiSYo+ulOuHF/M8PrVzei1oNIGyw56PuR738nJUmAbxw ymb15rGSrcFE24EqBZ2D1ZhK8uKwHOA35YIbEFHB+tmoK1I7CQhocPdetdSmVw8C36V0 5JZ/8ku2sclR8Wnk8nCjitH3PRP7gOa0c8LTciSwwgUqVYWseM9uX3VgWA9FC62LSTDO YfEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CJatcbsf; 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 rm12si7659656pjb.48.2021.10.07.18.40.21; Thu, 07 Oct 2021 18:40:35 -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=CJatcbsf; 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 S229526AbhJHBjr (ORCPT + 99 others); Thu, 7 Oct 2021 21:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbhJHBjq (ORCPT ); Thu, 7 Oct 2021 21:39:46 -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 2CD12C061570 for ; Thu, 7 Oct 2021 18:37:52 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id n63so11629197oif.7 for ; Thu, 07 Oct 2021 18:37:52 -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=yVAkjeIZi/RbzxYhdceixworGw/JG9cDOxqyScssBzU=; b=CJatcbsfmIt8VOcjDy6VK/c4MgLoP+YSH4Vh+1zhbf06EXs5ffcEmOL36kTm2u5Fp9 4KUU/PEHnASbvGn2Rb9wxHUHv7VSrxFVcY2KR8okjiELFtQxff/HUcc9DgQQjw1+r+5u vk68wSomU4qloYAhHg38a9fccY7A/6pfYKeWY= 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=yVAkjeIZi/RbzxYhdceixworGw/JG9cDOxqyScssBzU=; b=YlP4Pgls8kfA+e0B0xG0Zxy7I1cqs5WAmuktpG8HOLxmCor5OnElz+csusL6FzqekK D6PwP7lS0QhKB59yK05SNUjWjpFS/mpd4TdyOyIkUuKlo6TaRYTh1F99IR25n0yWTgu3 j3SW/ccRfSDb++1sSh9aFfgjOE8UBzJFafGSqlZsHMQvS4K6iD1zPLZjGfAt1uoPnvDY gnnCw6KFHYZ94tY//gzACgOO0WXMu0E6V6XKkaxUaVRdoOGhVpchqTjkzvaeN437QK6H b3SPm2QWMBg8TjrVHg6uBI5i0mfXfEEIkUTu/Q1LYmjKvpUAAwMR6rr1l6xewnt422M/ 1RCQ== X-Gm-Message-State: AOAM531Z3Omdc04ESoSHyQuZLC/77c82ztMVsLjpbsGb78f0FAGAHa3Z LNRD2Up0Ns0qzBy9iTfv1hzyjvkd766+tlVRcNvWvw== X-Received: by 2002:aca:42d7:: with SMTP id p206mr14522862oia.32.1633657071628; Thu, 07 Oct 2021 18:37:51 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 7 Oct 2021 21:37:51 -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 21:37:51 -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-07 18:32:20) > On Thu, Oct 7, 2021 at 6:24 PM Stephen Boyd wrote: > > > > Anyway, I think we still have to do a rescan so that we can try to bind > > the aggregate device. Is there a better API to use for that? > > If you know the exact device, you could call device_attach()? That's > what bus_rescan_devices() eventually calls, but you skip the > unnecessary looping over all the other devices. > Unfortunately we don't know the device. At this point it's possible that the aggregate device hasn't even been registered yet.