Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp463465ybi; Fri, 26 Jul 2019 12:48:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyF/kEsuHCjpo5FguOBDmpuMXTjHf5wdGzImWpbsK0BCeToAe7ohKRApNYj0Pk2Ob7pPEdI X-Received: by 2002:a63:dd0b:: with SMTP id t11mr52623564pgg.410.1564170536644; Fri, 26 Jul 2019 12:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564170536; cv=none; d=google.com; s=arc-20160816; b=a7yo1j2MMBohHu8UTQKtUpM+8y1h7Xv6zWRjczJ+bgM/twJe4Z1V3RZExHMVnXR2ok vBHJ7wrpfshXwSOwWvKl42LtfLzn94F1yo19FDKyxh+vt5Lpvt9zpZrCUaqKbMXcWb/J dscjEFfslI/S4/460LC3ExcYNZCg5rTahIC583XjM7Tjdc/dV7pjEJX/TZfrcEEor47q xKZ05+T+pXJehSJxjsuXw7uBfEuuaJaktnzzSlCXlZFa31Z9FGTHjQxLB1tS60pb/B8n aRZ9U4xKQjixKvA5MvdznYkwIKL62Ddb4xTfBG2l3t4116+ARCga6FEVcOcGHqcwt0z0 x4gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5Zxw6cAPqftdPJ6JuH5KAIsK0YxSkelx9nczvIdow+c=; b=Pwhj7uXMVreYnpcwruXfSpbsa2oNcRw0+Who6weC29bLK8ryyUdUDGG/T2KabsWlB2 xzHqFeDBp20mgbLwl4Z8yeQfEoBt7nIoR7OnPcHi0lr4o6xmeTt2i8nTItoK8I8c0m5Z I8cWkd1+G1LojNtjUftJ8SbWzMnq096nNLfqpca/eOz2zDAUf3cJAcD8061c3yGhEV7n KDhXSvImvxUupEbGzAsVJhh6kdXzFRu1GudY6nEsDsK5CZLrz1DGQ8PmCkeoo1mcjJY4 iJpASC5faH93kpKH5I9+uHNawHFU7DWtsxviDKZAuPO1B25rgzNsk1wJFaWBnfrHhhTe g2Rg== 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 b18si18667149plz.389.2019.07.26.12.48.40; Fri, 26 Jul 2019 12:48:56 -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 S2388098AbfGZSnL (ORCPT + 99 others); Fri, 26 Jul 2019 14:43:11 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:43927 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388035AbfGZSnL (ORCPT ); Fri, 26 Jul 2019 14:43:11 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 3F74320117; Fri, 26 Jul 2019 20:43:08 +0200 (CEST) Date: Fri, 26 Jul 2019 20:43:06 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: Purism Kernel Team , Thierry Reding , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] drm/panel: jh057n00900: Move dsi init sequence to prepare Message-ID: <20190726184306.GA14981@ravnborg.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=ze386MxoAAAA:8 a=pGLkceISAAAA:8 a=7gkXJVJtAAAA:8 a=VwQbUJbxAAAA:8 a=D0Xkq8Vs1On2DmSM1iMA:9 a=wPNLvfGTeEIA:10 a=iBZjaW-pnkserzjvUTHh:22 a=E9Po1WZjFZOl8hwRPBS3:22 a=AjGcO6oz07-iQ99wixmX:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guido. On Fri, Jul 26, 2019 at 03:14:35PM +0200, Guido G?nther wrote: > > 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 Looks good. Series applied to drm-misc-next and pushed out. Sam