Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp128496ybi; Tue, 2 Jul 2019 17:35:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVoPIGTFNDXeoy8FkYkRLeH5oo01AY7na/hBuFgIzYOlNfP0VzSLkvVMsv8z73SbrEaW4L X-Received: by 2002:a17:902:22e:: with SMTP id 43mr31273772plc.272.1562114114590; Tue, 02 Jul 2019 17:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562114114; cv=none; d=google.com; s=arc-20160816; b=IfUQWnjr0TOPSIVRWvpKEUpuHcKsHifpsJDqZ0K3l6oG+pZ4+6bvv1qR/oQv3Zm9uU A+4ZaGe8AKoG1YFvJjgOGC3+ox6brztoVL86AKZejE+JsYgV4BB8wf3aT9hgE39M4eFZ ZTpjTRj4CB3HmwfpnIwwBnveZPVcdFQBz+nI5V8szsFHb2yd7MZoQKVyLaKyRuWf5fI6 O33L1vOq6Ub1eWpJpDo2lD/CODmpcZDpOdt7odV/p0E2RmyMCjycbX7IciSHvVv2WnZw kf/t8l6w6alzacmvCCFqX7EefK4H5tVX1J1ZaNKY+is6ozjBpZq1E8D/WXbE6jCsB2j4 eaFw== 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=I1EqOkAJ16JrzJYbRJsKM2M5z/cziA7sysWiFBw1wCQ=; b=hafKqM4PtkHDkKoUrgObsDpqy7rhPcobezND7CdPthCFLgC6uGYWzzUN1y4TNjfz9T Cis5MFn4UhykEBeeX0xT+A1NY6A/zZSvLexpt13mP1I8q+DTh76COKV3Rb1rz/qXdS3J z7ZwfIhRF5rtM+/tcO1ozf+jO8qOquxFlsWDJ9br3uKYNxgUtAYPid50Db0Tb8cyvxxt hXVNpv4kCFr30LXT0+fjaQuf3hrBggXlvoUMe0Qy2s5hT9cXcfpsn6XvQK6jvsPfefdz KjOg/esSyrjIcgfjRgMp+JzvRO0ajWZ1zfs0ozAc9E4ttMtKtLQkoP2JY3eyznkSvAfT FHkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cHbuCUvN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si302235pfb.176.2019.07.02.17.34.59; Tue, 02 Jul 2019 17:35:14 -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=@gmail.com header.s=20161025 header.b=cHbuCUvN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727249AbfGCAeg (ORCPT + 99 others); Tue, 2 Jul 2019 20:34:36 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:40599 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbfGCAeg (ORCPT ); Tue, 2 Jul 2019 20:34:36 -0400 Received: by mail-io1-f67.google.com with SMTP id n5so676221ioc.7; Tue, 02 Jul 2019 17:34:35 -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=I1EqOkAJ16JrzJYbRJsKM2M5z/cziA7sysWiFBw1wCQ=; b=cHbuCUvN+s8Lxw2Gyg3gi4DFYo+F4B8Y2Kkpc1I2sZAekDpolXvsjxL2vCLw+zBEqh XqJBFdv4ZmCJk7ExnlSoa231CpUFJrcpmHzSb6QDviDzMXT80sTIefoueo7dajOTdTbi aSPGfyYr4g1yfJTGDte3QRKpLEKt1aqtYlMj+ltHYK9bVYthpd6JxS8HV8gAdXOBjeLa uTskqhloZdHDc8VdGHBGGTqQcEBxsoj4u5Nv/wU43dV0lo6VBVMpKiI5X6sDz/w7Ybgg oCN/1Oo3aDlnsbAFjFi5ldNCfMPtrnA2qTcQ7ew+gfk4C/znPwGU2nex1jNx62tD5fmB J9iw== 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=I1EqOkAJ16JrzJYbRJsKM2M5z/cziA7sysWiFBw1wCQ=; b=SU6OceEQM4IhouTK4HKhjslxEWRHAF1qrvr9w3/5SGMIxSnF2UgxRlu3d8lj6qq8dB OgyiuRS+k11Poq7aDnyVCoQm9OkdvVfVWfgJOGXlbXjUiChdxbrBgikkIMOU/Qu029aJ a9ACX3jr46sS/sGYlZWE+YNNzJ5e7+yqQGbgc34Urk7tftd8GziorjFH3ESdyeuX14M4 +d8D2C5hPW5kc+0/ZT6/aNp+4O+pDcv8ifxFcmke/Td6GFS87518EUHBidWHHoA+JHDN Z3LDnEhMsy+wpl9/bldazeM9790vfNcfsRDGqo5vmnQYZ6xcokboCoYzn6tileD7QyNc RGPA== X-Gm-Message-State: APjAAAVn2NugxIQlKqr6V4ApAi4P5+DMqebtDhd+HEDV2pQcbOzOlHtG CCL2D9D0iHNMMnYOQZOLM2p/al1yJimGaC4vnNEPyA== X-Received: by 2002:a02:ac09:: with SMTP id a9mr39228087jao.48.1562102997246; Tue, 02 Jul 2019 14:29:57 -0700 (PDT) MIME-Version: 1.0 References: <20190630131445.25712-1-robdclark@gmail.com> <20190630131445.25712-4-robdclark@gmail.com> In-Reply-To: From: Jeffrey Hugo Date: Tue, 2 Jul 2019 15:29:47 -0600 Message-ID: Subject: Re: [Freedreno] [PATCH 3/3] drm/msm/dsi: make sure we have panel or bridge earlier To: Rob Clark Cc: "open list:DRM PANEL DRIVERS" , Rob Clark , David Airlie , MSM , Jordan Crouse , Abhinav Kumar , lkml , Sean Paul , Sibi Sankar , Daniel Vetter , freedreno , Chandan Uddaraju 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 Tue, Jul 2, 2019 at 2:30 PM Jeffrey Hugo wrote: > > On Sun, Jun 30, 2019 at 7:16 AM Rob Clark wrote: > > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > > @@ -1824,6 +1824,20 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi) > > goto fail; > > } > > > > + /* > > + * Make sure we have panel or bridge early, before we start > > + * touching the hw. If bootloader enabled the display, we > > + * want to be sure to keep it running until the bridge/panel > > + * is probed and we are all ready to go. Otherwise we'll > > + * kill the display and then -EPROBE_DEFER > > + */ > > + if (IS_ERR(of_drm_find_panel(msm_host->device_node)) && > > + !of_drm_find_bridge(msm_host->device_node)) { > > + pr_err("%s: no panel or bridge yet\n", __func__); > > pr_err() doesn't seem right for a probe defer condition. pr_dbg? > > > + return -EPROBE_DEFER; > > + } > > + > > + > > Tested-by: Jeffrey Hugo > Reviewed-by: Jeffrey Hugo Actually, I'm sorry, I'm now NACKing this. Turns out this prevents the panel/bridge from ever probing if its a child node of the dsi device, since mipi_dsi_host_register() is never called. This probably works for you on the c630 because the bridge hangs off the i2c bus.