Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp6013086ybl; Tue, 27 Aug 2019 13:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFmAj/GufADhk8lDHMuu+bSIQNoaqfSOtUNsgFa6/xIa3XD19Yq8JbWnQet2/3uz86lTBV X-Received: by 2002:a17:902:8301:: with SMTP id bd1mr614148plb.120.1566936291786; Tue, 27 Aug 2019 13:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566936291; cv=none; d=google.com; s=arc-20160816; b=to9d5D2cJgFmJWYHxp3od4Pyidvtp6KyWo2P4DCaL8ux7gNgpYOa7lG4AjEQQLxvZA W4URkM650/bMyqiVbGIom/TDelfnncixv0QxswqzjXEAuL+1N3paBO+C4m11Gid3giFP 70RlXYLGI+t6VSxg0qIKEYVbpN//JHd4asyTStaXWuWmXvgj8TaI++i+SGZCkAVrAUX1 yCvbyB45hnhz+NhW0s64hwFgOgewPtwJj6fZqLnX8ZcOhLRsY/PrQR6Ir87uu1AR2KI+ ZdGUFJZ78O0GpXSwEcDDXe0I4VbCFai7p88Bn1/Ci+a8YOD1EkULZQ9ddR8T6Ra7QzmL Uswg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=impKCbyAxRs9NFOM+DFGNElYKCV9PdyDQbIxJjFevFA=; b=OvnnP3wWCUhmyRo706K2Sk/oQ3Hk6C6zWqZAhRBkbHmxCicCCZHzPA1lCVTbm4YFi/ aUQQY2ZIBexYcQXv1JXtScKA0y5hQKYg3hA9ttAtvnRhgJa1cM3CTAeMG94wD6JS9J6N WEOh28eYBFz5NCp6ZIHMlBs3zsmyHSA0AW4SrWAaIzAHO/JJZMQLHDPI+0Q+hjy/q4Oe hEkvyKdSbaa1Y2NLDs/d03p8QVgm/TUIdzKKZEWg/y4MvKWH1NuDE44txlbWdQysO7TJ WfJz1pJy+vfR+xEKYaw/NDcuZVaJIa38yGCXgqlCMW7kxEP5bimTb+Q3n1TVQtS1xNFN 9m/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZ8u9uAF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o191si174230pfg.155.2019.08.27.13.04.36; Tue, 27 Aug 2019 13:04:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZ8u9uAF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731269AbfH0UDZ (ORCPT + 99 others); Tue, 27 Aug 2019 16:03:25 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39281 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730221AbfH0UDY (ORCPT ); Tue, 27 Aug 2019 16:03:24 -0400 Received: by mail-wr1-f65.google.com with SMTP id t16so83383wra.6 for ; Tue, 27 Aug 2019 13:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=impKCbyAxRs9NFOM+DFGNElYKCV9PdyDQbIxJjFevFA=; b=IZ8u9uAFL6eeaolWlF3r1zEFQK00yXEBdd2GZo74Q8JnQOyj8Qqn+gA+mWHII+DL54 DcMjlaZ7nMoJaGTc2+D57TVEaEVpGGrtxnVmy3Kk6wH1p8tJvet9iZ2CFGYZCCOX4bN7 MpYeAvGyphsEom5+u/KfDh/WVySnq75jNo0QYLhFZupyfSAl4OsN06t2DHhz1XdsuCzk do/W5UtNiiG8d4RWw3OkZogNM0hFfbr03H8ijXSVsGSoDyBy4QxCDi5kvZZq5gfqlGsr 8bVp089gsGXHf11zwHf/2AHuLcNJl2gxEPv/gtiCHiUDoAeXFc2LrH6q/2/oiMDRxhkR fbsA== 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=impKCbyAxRs9NFOM+DFGNElYKCV9PdyDQbIxJjFevFA=; b=NDZqARQSeo9rsutK0e5onbeEb/PVkJOVdsGFHglQzfEtX6IntvDo2ZKQAV8OTGnN5G IpHlVtofE/+hBev84OcPWpd94qYjEQjc3xcOMiEYQ1tgPpAjnoSbIdj4fb8qXI8y6nEU Nx77duwMRTAx9lz/50IymcvrUYvT5zut99ucTGjGu6zIkNv/f72/1mk20JUHlWef5cET 40UlSUokpSLImq8gCLXE0n1dotqVfiXzi5pr+OXdx6ObXUNpLAAoIPYqk4JpoGxkNkid BzfX7xCf7zy7WZvaPVdNz+06PwXw9aD3MjKG9lWyyv5gNwb+63V0n6I3qmtpC2IAicb2 EK3A== X-Gm-Message-State: APjAAAVIOH4yGNr9ocaN+e3Hb6LI5guIyPFM1C4/x9DAXdRrfVKhB8pe PqN/4EUFELtZP8QDTLGsX+y5wAlcr5QmanTC4Dl/lw== X-Received: by 2002:adf:ba0c:: with SMTP id o12mr3100629wrg.284.1566936202247; Tue, 27 Aug 2019 13:03:22 -0700 (PDT) MIME-Version: 1.0 References: <20190627151740.2277-1-matt.redfearn@thinci.com> In-Reply-To: From: John Stultz Date: Tue, 27 Aug 2019 13:03:09 -0700 Message-ID: Subject: Re: [PATCH v2] drm/bridge: adv7511: Attach to DSI host at probe time To: Matt Redfearn Cc: Andrzej Hajda , Laurent Pinchart , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Thierry Reding , David Airlie , "linux-kernel@vger.kernel.org" , Matthew Redfearn , Sean Paul , "dri-devel@lists.freedesktop.org" , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 3:27 PM John Stultz wrote: > On Thu, Jun 27, 2019 at 8:18 AM Matt Redfearn wrote: > > > > In contrast to all of the DSI panel drivers in drivers/gpu/drm/panel > > which attach to the DSI host via mipi_dsi_attach() at probe time, the > > ADV7533 bridge device does not. Instead it defers this to the point that > > the upstream device connects to its bridge via drm_bridge_attach(). > > The generic Synopsys MIPI DSI host driver does not register it's own > > drm_bridge until the MIPI DSI has attached. But it does not call > > drm_bridge_attach() on the downstream device until the upstream device > > has attached. This leads to a chicken and the egg failure and the DRM > > pipeline does not complete. > > Since all other mipi_dsi_device drivers call mipi_dsi_attach() in > > probe(), make the adv7533 mipi_dsi_device do the same. This ensures that > > the Synopsys MIPI DSI host registers it's bridge such that it is > > available for the upstream device to connect to. > > > > Signed-off-by: Matt Redfearn > > > > --- > > As a heads up, I just did some testing on drm-misc-next and this patch > seems to be breaking the HiKey board. On bootup, I'm seeing: > [ 4.209615] adv7511 2-0039: 2-0039 supply avdd not found, using > dummy regulator > [ 4.217075] adv7511 2-0039: 2-0039 supply dvdd not found, using > dummy regulator > [ 4.224453] adv7511 2-0039: 2-0039 supply pvdd not found, using > dummy regulator > [ 4.231804] adv7511 2-0039: 2-0039 supply a2vdd not found, using > dummy regulator > [ 4.239242] adv7511 2-0039: 2-0039 supply v3p3 not found, using > dummy regulator > [ 4.246615] adv7511 2-0039: 2-0039 supply v1p2 not found, using > dummy regulator > [ 4.272970] adv7511 2-0039: failed to find dsi host > > over and over. The dummy regulator messages are normal, but usually > [ 4.444315] kirin-drm f4100000.ade: bound f4107800.dsi (ops dsi_ops) > > Starts up right afterward. Hey Matt, Andrzej, I just wanted to follow up on this as this patch is breaking a couple of boards. Any sense of what might be missing, or is this something we should revert? I'm happy to test any patch ideas you have. thanks -john