Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4242486pxv; Tue, 27 Jul 2021 02:22:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg1PG/TpsaqKZ5BzQL5Ye4K2rcdL3/DkVNJmv85Z3z6zxOd2kjEH6UVJrYQV/PC/d1Bei9 X-Received: by 2002:a17:906:c7d6:: with SMTP id dc22mr21201834ejb.517.1627377757887; Tue, 27 Jul 2021 02:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627377757; cv=none; d=google.com; s=arc-20160816; b=SLReBgRN+F5F0BrbgtQMeGe/4pN5dd5fzBae9Y9wE2wNrdz7CFHbT0bdRcJK3zMxq9 wplNru9SezGSWKuPiArk2RmSHEhtGxBcHZ+TQNCeor/JnjaJBTV7qLwXQlIyDNkWSvJo mXRIs3KuKmOTTyVmnsm7k0AIVUUZZhhgvwhEhEMcW+smUXlsF8ioRyQ7ed2QfWpHmLaD /D4ttnqK2OfMuXRL53A81uc4wR+aCxqS6xr9R1HAWPJpilfel73UfLGJVIfzZi3napHR GOb4b1okHRuof0YKlWry60b0jntp3wn85CEXtEpqi6QKZSjlj7/BUrA1+U9Fg0NPD4DU lFBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Yvx7FUb+PO9K9tu4D9agXVqaQ0PZBo5xaT5yPpMKIms=; b=JpDW0BCYYuHntgZUl3INK5bbD/5wbhFDI5e0qabaMSFTt1McbgMqAMzKFySc0oXkL2 zNBYIgTl4cKzlcV4Usjd/81CP4BPYVWzJ/Hn5JdDHLuodE3ZMcHFt/tHFiESqbqj0+FY vkeJ0BXjg2A4MxNIL6NWIUK9tvK3W+lcl6HGutFd96xhkXJdbqA1FtO4kEHb7p//hlyV vqt7FbfKfMX1CLV8/mTiVvD5GGtHhUISR4Nc+ozpLRGxvQ+SuKEeVCOY7tp4iqB6m8BJ Cd+OAuLAwSZTebSIo9s5HBIK1blCpyoG7OpcfmK/cX54i7jVB7aa6GhxHIhHB/jmF0Jt nWQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=SIunivkJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si2255544eja.548.2021.07.27.02.22.13; Tue, 27 Jul 2021 02:22:37 -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=@ffwll.ch header.s=google header.b=SIunivkJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235970AbhG0JU7 (ORCPT + 99 others); Tue, 27 Jul 2021 05:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235897AbhG0JU6 (ORCPT ); Tue, 27 Jul 2021 05:20:58 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF10DC061757 for ; Tue, 27 Jul 2021 02:20:58 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id b128so7088652wmb.4 for ; Tue, 27 Jul 2021 02:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Yvx7FUb+PO9K9tu4D9agXVqaQ0PZBo5xaT5yPpMKIms=; b=SIunivkJ3uBUWFL+MmqRwoRt2Ec13tI5ReuRrYPHU6v1ozJHB0RqmiXR2kJtHg7UkK kQHeIhOqy40affcu0iFYZjipx4Rj7mvXor6+msSm/jLTCD0shhRncWpbA8dQZkMdDKxG CY2f7wiJ4ZZW/66YmNtctsKo4S5yBfyNtbbac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Yvx7FUb+PO9K9tu4D9agXVqaQ0PZBo5xaT5yPpMKIms=; b=ih0wWU2iLWHUmmvo7NAKfae4wPXmDeX7GKrWOM4ywBB4H5ZD3zdptiUB0zE1fgnxTh BNyGinjrdjzUyIacigz7mt66Xs4vzTNFFsPYwS3asm4r1xJwrsQyfprk+G7KprQ93PyS II5TJXnfSOth5PhJsS+3r8FtnHftZoz6plIKIiqPU6pnuwEWD+Sj56CBzDgGo8OgUWkj zZlsmr6p1sE3kVYvTnvevFX4bhTHZBPNWXg1/WrqM9vdpYQklmJvWbWyqQL9JCUeLSJS 53L49rXN1H8G/BYResVloz14VQpJ+WWqrW+LYDAhFGy2MJWm0E0UIaJ8sxkMwy2KI/nV +5UQ== X-Gm-Message-State: AOAM532zQ2uVmgIhehgE5TNSm0SVtrC11u7XVpFxX+dLbMv5JTG4QZvx FD3+Yw9X/V0Cm/vv35z5N4b4Yw== X-Received: by 2002:a05:600c:1c0d:: with SMTP id j13mr21332335wms.34.1627377657192; Tue, 27 Jul 2021 02:20:57 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id q19sm2002588wmq.38.2021.07.27.02.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 02:20:56 -0700 (PDT) Date: Tue, 27 Jul 2021 11:20:54 +0200 From: Daniel Vetter To: Maxime Ripard Cc: Robert Foss , Andrzej Hajda , Daniel Vetter , David Airlie , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Thierry Reding , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 04/10] drm/bridge: Document the probe issue with MIPI-DSI bridges Message-ID: Mail-Followup-To: Maxime Ripard , Robert Foss , Andrzej Hajda , Daniel Vetter , David Airlie , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Thierry Reding , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20210720134525.563936-1-maxime@cerno.tech> <20210720134525.563936-5-maxime@cerno.tech> <20210726151657.c46qmkdvqfhlg6ox@gilmour> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210726151657.c46qmkdvqfhlg6ox@gilmour> X-Operating-System: Linux phenom 5.10.0-7-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 05:16:57PM +0200, Maxime Ripard wrote: > Hi Daniel, > > On Wed, Jul 21, 2021 at 02:05:01PM +0200, Daniel Vetter wrote: > > On Tue, Jul 20, 2021 at 03:45:19PM +0200, Maxime Ripard wrote: > > > Interactions between bridges, panels, MIPI-DSI host and the component > > > framework are not trivial and can lead to probing issues when > > > implementing a display driver. Let's document the various cases we need > > > too consider, and the solution to support all the cases. > > > > > > Signed-off-by: Maxime Ripard > > > > I still have this dream that eventually we resurrect a patch to add > > device_link to bridges/panels (ideally automatically), to help with some > > of the suspend/resume issues around here. > > > > Will this make things worse? > > > > I think it'd be really good to figure that out with some coding, since if > > we have incompatible solution to handle probe issues vs suspend/resume > > issues, we're screwed. > > > > Atm the duct-tape is to carefully move things around between suspend and > > suspend_early hooks (and resume and resume_late) and hope it all works ... > > My initial idea to fix this was indeed to use device links. I gave up > after a while since it doesn't look like there's a way to add a device > link before either the bridge or encoder probes. > > Indeed the OF-Graph representation is device-specific, so it can't be > generic, and if you need to probe to add that link, well, it's already > too late for the probe ordering :) But don't we still need the device_link for suspend/resume and module reload? All very annoying indeed anyway. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch