Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1395033pxj; Fri, 18 Jun 2021 06:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS4I0fEY1qOUaWHSqTwaP3HshBu4lCwDrvusWjvVxdpae4GZmgg356n5fV3e4//v58n953 X-Received: by 2002:a17:906:a281:: with SMTP id i1mr10815996ejz.307.1624022184703; Fri, 18 Jun 2021 06:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624022184; cv=none; d=google.com; s=arc-20160816; b=KalQ4q2RV0yJPBGCAl46yMO/X5U7FF4yJ8gvMdjW+sisQPaa5CmpKK8wuneY8+c4JH SHPhdVDLhYUcKDIPRPW/2BHdydn5rWq/3N7kcctUaWQdpoYlwrZHBvgwVYonlaUVUvOE I+Scwpsz7qr1jb3BjftFCFj/EhMyBsrX1H40V7gNJfhdh/F8l5eJcOeGYtQsGvYA7V3t ZqledfHV1tC0ytANZfAaX3de0kNFjWIUaqaF0qjT204ztn6RIMmSmb3XBmt2Hsl0ur2b Cuf0uIDfXJ8ELSYmIqd52v+lcCxbqCc12MoRp2C8dtUE88n0uVagfD1BNFiOIc+yPDkf iRKg== 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=xeflnMpXCc8lQl488t2UyqqllAHiO3IjtrjGZgwxjE8=; b=W422ux+opa2b6IyBNiVzThbOqxZBlkk1ufnnCJHGhtNw8e/o2BdfMgQ7l35UOcYBPB YuBWgiSsQ9XeE8wiOIzHN15XdJKVal93C9xtqtrrDzydyFpVGb5RwFbPFEOJNAPwRXAU +t6e5g4H6FLM4cfVMtNH8OqkTMKSoxixyFQI/4RDD4sbr+buFILJR4UNcp9tefFB5HrR alVkPaHOhW3ARfKesr0PsaaUwNgMtOxG6NfJsRdyz2hN23ON+GLQtEoxv6BHJeQ/FYk/ J9vavXk33C5lMowinKXpZ2i2IGrvOHv776HQ8UQm/Jkp+6+eo/S/dMRI4HJ/bzGvze+G lAoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l4JvENXK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si9122748edp.274.2021.06.18.06.16.02; Fri, 18 Jun 2021 06:16:24 -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=@gmail.com header.s=20161025 header.b=l4JvENXK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232617AbhFRNM4 (ORCPT + 99 others); Fri, 18 Jun 2021 09:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232627AbhFRNM4 (ORCPT ); Fri, 18 Jun 2021 09:12:56 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 075C1C061574 for ; Fri, 18 Jun 2021 06:10:47 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id m17so1467566plx.7 for ; Fri, 18 Jun 2021 06:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xeflnMpXCc8lQl488t2UyqqllAHiO3IjtrjGZgwxjE8=; b=l4JvENXKS+0wuXa9Dd7ASyOi+R2Ra1aLIyA3k6/hFxsit72DMEgc04M2UT1qYk5Sb0 WspU0VkFFL2rOaKiwcWlw6iLuFtDYrkBFGTYnoWKOx0j5yPXk6liOpjHGfCyYCF/WXSb uXLJ80qb0RBPXArA/ItZJI05DK9fbVDKsCbP3OrZS+F9FIA+kjubUgtL33FY+wHQvdqA IlUzws0eoYgmiXbL1Aog1Fxp9UDyg8ViwDqml0U9R5abh5W+c3OtLIc3PDV145QF493k 5OazSdv+z0dulHEsk7iosWreirruFs8y3ZBkwSFKYQtqA7QikIbxeVkqaV7+ISh+MZWf fr6w== 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=xeflnMpXCc8lQl488t2UyqqllAHiO3IjtrjGZgwxjE8=; b=ErEl/w2cHnHW03Q4WRKQXO7EHysHlSlWjEUXFXrt1nK4fNboLadX8gUTG2hY/S9PMU cv+NTjmxE6Yv7hiRY58zQq/2QgIQq3wQzPozTB2AXaBjYpXaM+3zuhEDVFVoxViaTFeB 9hsrsWXT/8xuS10kR1YQDtgVzUAMW1IInBvrQ1pz4ngnWFQrekePlLeeOmp+BnpPFeaX wfAiQ4CJajcoqpJKFc2WJm5E+NEPwx5irQD0P0w9xgdS0efFROQhhqnsDIxi88LKOebI 3Mvd7lyZ4LdYQfneAiql8MBIVRhpHZ1ffeuQCMiprkBBmOZQIAw8KOXCFJGgHHRsnkXn KA6w== X-Gm-Message-State: AOAM532Np2KfWPIGCEdYBhAjdUeRyMFvtUaGEOYnjIBJnN5i6uCHPJiI vgs2E8pev+0AYjI8vlstJkV4dbZRvYksaMpYXbg= X-Received: by 2002:a17:90a:880c:: with SMTP id s12mr11065571pjn.66.1624021846430; Fri, 18 Jun 2021 06:10:46 -0700 (PDT) MIME-Version: 1.0 References: <20210203091306.140518-1-jagan@amarulasolutions.com> In-Reply-To: <20210203091306.140518-1-jagan@amarulasolutions.com> From: Jonathan Liu Date: Fri, 18 Jun 2021 23:10:33 +1000 Message-ID: Subject: Re: [PATCH] drm/bridge: dw-mipi-dsi: Move drm_bridge_add into probe To: Jagan Teki Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Sandy Huang , Heiko Stubner , Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , Jernej Skrabec , Jonas Karlman , Sam Ravnborg , linux-kernel , dri-devel , linux-amarula@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, On Wed, 3 Feb 2021 at 09:13, Jagan Teki wrote: > @@ -1167,6 +1151,20 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, > dw_mipi_dsi_debugfs_init(dsi); > pm_runtime_enable(dev); > > + ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, > + &panel, &bridge); > + if (ret) > + return ERR_PTR(ret); On RK3399 if the error is EPROBE_DEFER, __dw_mipi_dsi_probe can be called again and result in the following errors: [ 0.717589] debugfs: Directory 'ff960000.mipi' with parent '/' already present! [ 0.717601] dw-mipi-dsi-rockchip ff960000.mipi: failed to create debugfs root [ 0.717606] dw-mipi-dsi-rockchip ff960000.mipi: Unbalanced pm_runtime_enable! Regards, Jonathan