Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp184900ybi; Tue, 2 Jul 2019 18:45:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrl3Pg5iVXLBWRAhomWCPjxdrViLPn6iJJ02/Ze3WzQfzXPFQknYlf3crDH75Oj3rIZyQM X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr39796770plj.55.1562118348048; Tue, 02 Jul 2019 18:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562118348; cv=none; d=google.com; s=arc-20160816; b=u+QTPFuQjAuBSc8M0BGeYhQkUbkRQPPQR1/sw0TeJunUincR7n3YKH8yr8QpPmIjf0 QCZecUB46CArnrfG9W6HlxSgdnL3UI0T2tA6DHrAuognO5HTroNY0BAMDcunYfj4YuXZ LzSvAIYaGt+ECnTD7Icw3ZI5dwKSMgsfMpZ1EFyHkzdWE5NHtjhkUbrBz5EJMOD6rq9i vKlt1eDoF2oCsIP/888H4AByQcz3TrRrdSOLcJrgV4nboaC11qId3HRNRuLdSckYWm92 M6DT/oovOo0SvT9rumk1lH4iPFr3rqqCrUGRGgqtad1SBMSGA46b7jWp2HvuUUjJ6A7C du1Q== 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=e2dHY1JEDP4p/Iin7PE911+goagiVJlOgF+4JmS/qJI=; b=z9DTj+fKDMuMr9Y9jxBdribYZMJrzbYPNnv9bycbZYYQvYk4bAhxR8g1FgLabvzf9b TLFmKlPoULKI3FpZSjvVJndsS+9iq+2DglrHfsy7vaWjMLxbkNt9+Owjv62JgG5ZEkO8 pzCmUy+POujWbY3a/EIzv5XJs9L3xxR3qF9HDScpEmKAX2lAnNcG96qRNsSRV5XlNzwT HEOlb8+wNcifDri7BwHPgqMSmz6QJs1IOcDZnSjpcjFJxW1hBBQO9nbfZ5fUK0tgSqK1 rER3UC40xX/Tvg/xXyJKLc8kO/4r8kJ+elhIGehEOPWmsfPU1wSoofCuKkDE6wv3PX6Z gGfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fyZTRJk1; 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 z18si287107pjt.94.2019.07.02.18.45.32; Tue, 02 Jul 2019 18:45:48 -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=fyZTRJk1; 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 S1727069AbfGCBpJ (ORCPT + 99 others); Tue, 2 Jul 2019 21:45:09 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:45317 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfGCBpI (ORCPT ); Tue, 2 Jul 2019 21:45:08 -0400 Received: by mail-io1-f67.google.com with SMTP id e3so578184ioc.12; Tue, 02 Jul 2019 18:45:08 -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=e2dHY1JEDP4p/Iin7PE911+goagiVJlOgF+4JmS/qJI=; b=fyZTRJk1EU58W3X9rMzFfX/rWwLk6qDxZqQwcdvO1B+WhX5Ay/UJIb48NnkcP5NLcS ceblxUmOFxSPlx1GBeqmcDjUbH6sB6hrn9ORIMObg1R8IvxgkKwhM0eHPX8TqeaCFty8 N1KWPAjaJlmDjw1YCme0ht1QbwjJUJm/C7jaXTjMhpiThgVwTaGdpllJwhVOfBbta9Qe iEOIk5xCVFOv1RNqmaZTN85pB/FACzYDacf0MfBCtismFZAJ99Yag41k6NHrbx4zHk4l ARNK8o0PJYPNErN/pE8MUBWWxADpIOzOOzbW9BqxwCooNLIvnGGGb//TGKGEF4OATYas R7kg== 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=e2dHY1JEDP4p/Iin7PE911+goagiVJlOgF+4JmS/qJI=; b=oOOz2HUqFrPw/wteX/d3dkFmUpo31fqug9S9NZ0/kpIn2yfpB8KPAOaMSEmwVDUiZb ULrjoq28SJ7RVO7tdfbpe8jqFmCyAaVre0/RLIqOdoDNnIrzkNoKIy8g3dyJNZSY1lCZ X42QmC/bqv3gxpH1fJ1RkUEvHO9kXtm+jSMkRnr4x0U4kgg8nzEy7ZPSZ+sWmTnkAzWU 5lOWkDOrvpIgQCubD1QUjAEPYrDq0xrGBxX9tLu1gu+I9/I0pLqzLEg64fR1IDrlSQlk 8y73Vh2YKYKC8xUgpDivQKl3HbmSYjiqjm605kdJ3MWuIqSbZOth+wU+jbYPSaVMzajh qaiQ== X-Gm-Message-State: APjAAAX5cDPVTAkVXWbKHowTP9x2wMJdmi5H18I8Gtga0fgblGR+0WM2 9FyMt75IxS3FxZnvi0HpMIe4NTENa9Sb3KXK4K4hOXyl X-Received: by 2002:a6b:f607:: with SMTP id n7mr7314656ioh.263.1562099449824; Tue, 02 Jul 2019 13:30:49 -0700 (PDT) MIME-Version: 1.0 References: <20190630131445.25712-1-robdclark@gmail.com> <20190630131445.25712-4-robdclark@gmail.com> In-Reply-To: <20190630131445.25712-4-robdclark@gmail.com> From: Jeffrey Hugo Date: Tue, 2 Jul 2019 14:30:39 -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 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