Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp28820pxb; Tue, 28 Sep 2021 14:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTQJpc+qK9Yd5DkuDBUyufCqOhBrpLckwL9cMhE0Zdwt54QSOBDqCZvnt32SmNAR0JBI+0 X-Received: by 2002:a17:90b:4b49:: with SMTP id mi9mr2425214pjb.79.1632865049621; Tue, 28 Sep 2021 14:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632865049; cv=none; d=google.com; s=arc-20160816; b=CL2+jxAisIy1jMMtJKO4BPVMN/EcUpYV1U/4BzBJxmzxGx4XT6888kqSZGk7rMZmDR 0gfyC++ygXg2jMVYrW6cs8sjgKBApqJGb6Be0VQucf6aVYsv6tpDRE9p+Z3S+EEmS6NF qr0iQkab8/rDsDiucU0MU9NWNcfw5YA38tEY7LK2jEsB4dFNuXG7C9d1r4WW9hULSBiV i2tOCsyo19QGRv7Bljj4tH+UMPckBOjs1UopzcwmN9O2zJC0MymXKDjI+yycNDVPCfUh XY6Tx+EjnjidKnQM1kN+x9E+O3UXwSqVEEc59oW7hmU4F0L26QqVGKIhxZhI19/XUo19 ndfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5lAhEZS11LpnIzc7KynPjRxiAb+PLMH/7bgGJPagJjE=; b=LZ3gDRT33QO0voNJvRtXPa4/C3Uc1Gpb0MaFTUFz2x4yWaTMcey+yxO9W601tUAPcv JLVudIKkNyExmFR9B9qJ1jdEBCV4GONUfdFuv1VYYaVL2aCU2MgyzSyDY5O8eVbEPkYU jPRYkyiSGTXLAu6Ib0KPNE7gTNBJMHRRYao9YCEyHqKdXr3XfCjtoYATSlZGTILAqXRu +ioREGH/iaBcuxdDg0+vzbsVZgNIOeFdmtvptBgwaxZdj0JMbM9caVn0oHBy+9Aul7qm 5CxqUuvIEmtzDWD3wAhaCI6AEnp3Ir25Qwt++dj6f6+stGNvAimxf94xSIEhRMZ1YbPp VXBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QdcmfJ/q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si407264pfc.220.2021.09.28.14.37.17; Tue, 28 Sep 2021 14:37:29 -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=@chromium.org header.s=google header.b="QdcmfJ/q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242936AbhI1Vhr (ORCPT + 99 others); Tue, 28 Sep 2021 17:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbhI1Vho (ORCPT ); Tue, 28 Sep 2021 17:37:44 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6AB8C06161C for ; Tue, 28 Sep 2021 14:36:04 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id k17so133667pff.8 for ; Tue, 28 Sep 2021 14:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5lAhEZS11LpnIzc7KynPjRxiAb+PLMH/7bgGJPagJjE=; b=QdcmfJ/qSoowWbOPbMWVW/bQNIsR4/5kP2vt1OphFKkG11kzG4kPRJldG1S2xUqt4G 4J5Hga2V7YSQwxs2qS+93eWwf2ot5DXO7ROHAwVwifmu7ZUjA/pZAMDpzIrJWfVQIDGL 1y2rm2Wiu89koEtTmWthN1Q1lK2gqElQoX830= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5lAhEZS11LpnIzc7KynPjRxiAb+PLMH/7bgGJPagJjE=; b=ZRDFC84rBkM5DfKb4AppTg/Q9yVZaF40ZGiUMSo1QQqgNqkkK9zUhvYikV6WEcTi1k V8yw4CL3JSdAU1q0ybf2NGOZbNdOP/wViqfRDGkpFSvhJxPo0mVXs1uLlSZ4aK4+6JBT QOEzDTfsr27xoKSQuU06rx7+tW1/L3SGiK5bjBlRHj21L42z4XgpK32NkF1npdLI1hU4 8Yh/zCXNpr5anxmaL+rQnEKLS06HH4CMC9OUcQ4oYfmePd/TtNqSP9JZOPPKA9BJ++Ig nRHXrD+lDTgKYXMM9bqzN+h8WW3+CH8XHxciHb3IJjDZF8Li+9M+ARc0RG82Lch1vUZ9 vuXg== X-Gm-Message-State: AOAM530+q590MdYlpuHJlN2s+fId06mjoNhyGKQHK8gO3Og6PQ9DcUNp ZS7s4r8tIC9Zcgd527/dQZdOnA== X-Received: by 2002:a65:5c85:: with SMTP id a5mr6559490pgt.126.1632864964181; Tue, 28 Sep 2021 14:36:04 -0700 (PDT) Received: from localhost ([2620:15c:202:201:d7ca:580:94ab:8af8]) by smtp.gmail.com with UTF8SMTPSA id z4sm108545pfz.99.2021.09.28.14.36.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 14:36:03 -0700 (PDT) From: Brian Norris To: =?UTF-8?q?Heiko=20St=C3=BCbner?= Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Sandy Huang , Chen-Yu Tsai , Thomas Hebb , Brian Norris , aleksandr.o.makarov@gmail.com Subject: [PATCH v3 0/4] Fix Rockchip MIPI DSI display init timeouts Date: Tue, 28 Sep 2021 14:35:48 -0700 Message-Id: <20210928213552.1001939-1-briannorris@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Rockchip DSI driver has had a number of bugs over time and has usually only worked by chance. A number of users have noticed that things regressed with commit 43c2de1002d2 ("drm/rockchip: dsi: move all lane config except LCDC mux to bind()"), although it was fixing several real issues of its own that had been present forever in the upstream driver (but notably, not in the downstream/BSP driver). Patch 1 and 2 are the most important fixes here. See their description for more info. While I'm at it, fix a few error handling and cleanup issues too. Changes in v3: - New patch, to fix related PM issue discovered after patch 1 Changes in v2: - Clean up pm-runtime state in error cases. - Correct git hash for Fixes. Brian Norris (4): drm/rockchip: dsi: Hold pm-runtime across bind/unbind drm/rockchip: dsi: Reconfigure hardware on resume() drm/rockchip: dsi: Fix unbalanced clock on probe error drm/rockchip: dsi: Disable PLL clock on bind error .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 82 +++++++++++++------ 1 file changed, 59 insertions(+), 23 deletions(-) -- 2.33.0.685.g46640cef36-goog