From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 650D2C433EF for ; Fri, 8 Oct 2021 01:37:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4462261248 for ; Fri, 8 Oct 2021 01:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbhJHBjq (ORCPT ); Thu, 7 Oct 2021 21:39:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhJHBjq (ORCPT ); Thu, 7 Oct 2021 21:39:46 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE0EC061714 for ; Thu, 7 Oct 2021 18:37:52 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id z11so11674706oih.1 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=sMqhhYaFWLS6ytab+EEuhFp+Gcu7DSQSHRh6YfvLsqQfgTNGTX2uoOXH2lmKusRYu4 NFRf0BhkFIBNQqicG/gj/63NalQB7iXaHwCw6RCsUKOKi/W5ybsSL5ktvDw3doo6yakc 8wZl1iPrKdA65INYeWYud/heMJZR8FPMyn03JLPePdByYCbRldREHiOK7BX1+lBx5Aca Ysp+xVc4VwVUJwh0zyZLOPnl0CEgcWbEm7UmPdVWTqhBl1Td9ozLSNA85mpVJbBAIqSl Xvn+TOMv9Hv/+H53aDsJgJLF0+Nc2/qdnZd+LRT8RouqvaDmfyw7W+zXCXotDrrrlCjJ q8jQ== X-Gm-Message-State: AOAM533MnvWJYaoxJgcAoJzbs+RDcbGlQZBbNaFljrjRDyGyrdF9DDyE E+UCOD10MkAbJsyBb9/yLIFC+3LNTGqxKz3G2hCJbg== X-Google-Smtp-Source: ABdhPJwG27QOLOYB0BYRIv+qYzPsjyc+Fm+gkPI77N3rDpZ12HYcKlJ51jPrBtfX7D/I+FlamQPJfMTeoN7KcVFQPow= 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-arm-msm@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.