Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp69303ybi; Fri, 26 Jul 2019 06:16:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyQH827VGrlWpfCT5Npt+QI7O0JunYkP03gqwoJNKm/xzNqJca9ugku1SEOoU4nSIK1fFM X-Received: by 2002:a17:902:7686:: with SMTP id m6mr96172844pll.239.1564147018043; Fri, 26 Jul 2019 06:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564147018; cv=none; d=google.com; s=arc-20160816; b=KM618oaAYKDHJQlPuux5jXstBswAlx4JVYrrYieI4eSd/vdDiBlfNrWkFe5Z4Y5LKU VeMxgvSNeOzHtFOHXzNhRZQblSiWb65xg5gm6ppu0cGSTBLvxdBsXlImf7snA4ucBbT9 WCsvKtW8Weyg5rkAO1ZRudsoRkA1pYTQPdcC8pk2ud1m4lq5BIYhHYKie2sjYr6CdFkx 2FtrunThLe+KXBoenznr1FNDgUoscoIsX67J6UgZZJ/eMvQ8wh8GN0hM8+v4Xrjj1IOA uraJ2jCa+z1Xi30cBJ8IxaH6EQqKNVzNuJAUC3Es5dAtdUowqDgDVApJcpKDj3TaY4/X ZTJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=F9dvKU99DQthdCL7YkyFcCnZ0awcHWhQGtEw+vwjJ7A=; b=n2cfZTsbgpvHn5Z65trWv0Uq+ia9w6NDH5NWaLDnnoVk2KAVM5VDLg0XQ44Ipos2zI 7eeHrQVXBvUTw5gR6n6XgO8m7eioIGcJUhgGuZYgPDi3yBRBtkfifgz6PO+/rPHSmzuB pJqAAN3BjEUqu1i4F4dCez8G3G2pCjIbyoZnqyNjCvLIlmlBUi92gYCaXNuQtgbKkvhj xvOZEybcZcnLjA8mtB8zFw00Z6yVjTVqM9F7lV3cMU0PoBdS7/qmiNOhi5r9ctVX2SgP Woiyb5cdgB6+el1owJJKN+zT4xJD9vd73yHsqknBpCAB4vwB0/4zTmMFrm55oJ5L+HI7 Dh7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17si22358244plq.138.2019.07.26.06.16.38; Fri, 26 Jul 2019 06:16:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbfGZNOq (ORCPT + 99 others); Fri, 26 Jul 2019 09:14:46 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36322 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfGZNOp (ORCPT ); Fri, 26 Jul 2019 09:14:45 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 2CC44FB07; Fri, 26 Jul 2019 15:14:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RdK5Fd9fsItN; Fri, 26 Jul 2019 15:14:41 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 0AE6046AA1; Fri, 26 Jul 2019 15:14:40 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] drm/panel: jh057n00900: Move dsi init sequence to prepare Date: Fri, 26 Jul 2019 15:14:35 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the panel is wrapped in a panel_bridge it gets prepar()ed before the upstream DSI bridge which can cause hangs (e.g. with imx-nwl since clocks are not enabled yet). To avoid this move the panel's first DSI access to enable() so the upstream bridge can prepare the DSI host controller in it's pre_enable(). The second patch makes the disable() call symmetric to the above and the third one just eases debugging. Changes from v1: * As per review comments by Sam Ravnborg * Ignore failures to disable the backlight in jh057n_disable() * Add 'drm/panel: jh057n00900: Use drm_panel_{unprepare,disable} consistently' * Collected Reviewed-By: Thanks Sam! To: "Guido Günther" ,Purism Kernel Team ,Thierry Reding ,Sam Ravnborg ,David Airlie ,Daniel Vetter ,dri-devel@lists.freedesktop.org,linux-kernel@vger.kernel.org Guido Günther (4): drm/panel: jh057n00900: Move panel DSI init to enable() drm/panel: jh057n00900: Move mipi_dsi_dcs_set_display_off to disable() drm/panel: jh057n00900: Print error code on all DRM_DEV_ERROR()s drm/panel: jh057n00900: Use drm_panel_{unprepare,disable} consistently .../drm/panel/panel-rocktech-jh057n00900.c | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) -- 2.20.1