From patchwork Sun Jun 30 13:14:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 11024325 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ACAB014C0 for ; Sun, 30 Jun 2019 13:15:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A02E828725 for ; Sun, 30 Jun 2019 13:15:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 942992873F; Sun, 30 Jun 2019 13:15:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D71EB28725 for ; Sun, 30 Jun 2019 13:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726513AbfF3NPE (ORCPT ); Sun, 30 Jun 2019 09:15:04 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40584 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfF3NPE (ORCPT ); Sun, 30 Jun 2019 09:15:04 -0400 Received: by mail-qt1-f193.google.com with SMTP id a15so11716046qtn.7; Sun, 30 Jun 2019 06:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=riq7pIWvMTDPqVqjETndidX913621E7xFA3bRlBlSUg=; b=h4XpgKT8JcW4J5Duus56KZ5uReiYiL1HWSxE0n6TomvnmrzHCCC1U96N8RS5AiiIZm i3Xt11sdsQ05Lv1j0YGULZjOBm6LHhO30TmZgXf5CaAHZ7pszm4mAfSmtza8NdlAp84s aifK1YPoxJrAGFbpE1dt9oGmXdeDbzzHLwIQCN57/FBhpYtZ6O12asZ6yzHllSIuXKHA DV5wDIcRiqTjfObes56x/qf2wpi5YFWEMDWQ23klhbgFiYAeD12K0u7M65vyGaISzcUM f0gNYP5XhltyyUeZJs3Rc2ma3Daupjh+VRpu4MW3iItnz++kDUE69CfJvpCeBFAOQAxh a6dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=riq7pIWvMTDPqVqjETndidX913621E7xFA3bRlBlSUg=; b=GlQ03BFB+HIwDZ3WJEV+K7609QSB4EdN98ol/LEHjFWEfM6GC8XfsxAsd7M0OmVRtM bXh0vWwO7GWB6TsJOrJp9AQmpZZzAUQEqqHnBrgnMe/wQ8eaD6fXlAGCgQroRfxt/AZX A3tqS/CQACethkiik93Fgv1pppvW2PVC/J4PvsZ3hnprGOXtDW0SH4WbHMXDchoU20g4 2fr3x/TT121NTniMjhvFGBPUWE0z+WGKXYEY0hEN1pX1U5Ohjlq/unel/YFT7zOBKDMl MDSkjoBYY8dy9E9ahpx28y1ZptbXmG6oudwD7j+f4IfcEq67XRzGiZYgL03zV7E3B7Zc EpxA== X-Gm-Message-State: APjAAAVcCbYgSZstz4JMVudrYMgNRbv5PQp5PuGhvgChxGzZ+eD8eGCi cu226RSHg4iPA2ruFOtlxz0= X-Google-Smtp-Source: APXvYqx7b5A+sDjJlT5l1rlIsq1Vay1GNZmKba43BBQIDhD4gh2+LZZcRKttP5biv/PTNpxePVeh1w== X-Received: by 2002:a0c:d4f4:: with SMTP id y49mr16784207qvh.238.1561900503111; Sun, 30 Jun 2019 06:15:03 -0700 (PDT) Received: from localhost ([2601:184:4780:7861:5010:5849:d76d:b714]) by smtp.gmail.com with ESMTPSA id s130sm3656117qke.104.2019.06.30.06.15.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 06:15:02 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/msm: don't open-code governor name Date: Sun, 30 Jun 2019 06:14:41 -0700 Message-Id: <20190630131445.25712-2-robdclark@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190630131445.25712-1-robdclark@gmail.com> References: <20190630131445.25712-1-robdclark@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Clark Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/msm_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 0a4c77fb3d94..e323259a16d3 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -106,7 +106,7 @@ static void msm_devfreq_init(struct msm_gpu *gpu) */ gpu->devfreq.devfreq = devm_devfreq_add_device(&gpu->pdev->dev, - &msm_devfreq_profile, "simple_ondemand", NULL); + &msm_devfreq_profile, DEVFREQ_GOV_SIMPLE_ONDEMAND, NULL); if (IS_ERR(gpu->devfreq.devfreq)) { DRM_DEV_ERROR(&gpu->pdev->dev, "Couldn't initialize GPU devfreq\n"); From patchwork Sun Jun 30 13:14:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 11024329 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A289E14C0 for ; Sun, 30 Jun 2019 13:15:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91DCD26D05 for ; Sun, 30 Jun 2019 13:15:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83F09271FD; Sun, 30 Jun 2019 13:15:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D38726D05 for ; Sun, 30 Jun 2019 13:15:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbfF3NPn (ORCPT ); Sun, 30 Jun 2019 09:15:43 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42681 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfF3NPn (ORCPT ); Sun, 30 Jun 2019 09:15:43 -0400 Received: by mail-qt1-f195.google.com with SMTP id s15so11693036qtk.9; Sun, 30 Jun 2019 06:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mEzPtMffhPHV0FxDwTzEclet158kha7XkJ5YHK6YGrM=; b=d+kYvh8Xqr+lWHcL4DtqWWfN1709bXLKGGulNTkdMCjBSUfDOWICNG7i8GxwmUv/HX WZz3Yes8gDkloACATjJ3MwvmgsXcGUxkdTLUccfui75XYcMs4OJcJ3EVbkhiT5Yzp+p6 oEgIBXbAzwkGyzixeEv5y0KLo9LFUkrkSh4lR4erSkhGGh8wmG0PRhfr7RXo56RSgl22 5JKNfuOtdwg7tLaHkKLE63qAXkyUnkB2NsQd5kb/j3BRkoYBKacDlbQ3d4nS8yBm0qr9 8xy3bE3KOhmlLkqJJeU3BjnxpTTaUBd0I4UOYRWtbSVUNBPC7heU+BcNNDC3co+J7EyU KQDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mEzPtMffhPHV0FxDwTzEclet158kha7XkJ5YHK6YGrM=; b=e0wLkHV2/uof1B+pDzDclzHF7N9+XCwmcirVf4lNakbbsn6TRthbB3OM9l/oecj9Nl JpANlFRWEoOXLSbLaHsx6WAkiehyo1DvB2R5qjrWHG3f2voboiyzP7Hof5dRxrPtLkKG lSPgXx60NBG/klSDb0VwN+9i4wFTpPeIEFzqaFDB8bjB4JfRXHbYhqWI3oPlQ6YGeZ2u 2HAhGgYZoK43rqdYLUJ0sKiGoANzqXT8w7Sw7KraiBdsDDTmA2xkv2CN5HAOG0JuDFe6 jOtAdqtB99fPPYK9sOyWakqiE3Pac4eRs+XsdDnL0QG9upro97bprLWsV49/IC/9WGrB XUfg== X-Gm-Message-State: APjAAAXcfS0u+g9fqwjGITfPiB1Xntc03CqzvIdwiGvMoS9ic73VWutG ehrSTf1g4q5WiUoqQcW+xOPaMDGAmPc= X-Google-Smtp-Source: APXvYqyDq4MvjL+oGz+qUyrAIGQgTbk/k+i9zOPhBNpiznZsapMswdBFKWUry8EmSqHa3BJzQDhSuQ== X-Received: by 2002:ac8:27d4:: with SMTP id x20mr15644764qtx.138.1561900542179; Sun, 30 Jun 2019 06:15:42 -0700 (PDT) Received: from localhost ([2601:184:4780:7861:5010:5849:d76d:b714]) by smtp.gmail.com with ESMTPSA id j2sm3739582qtb.89.2019.06.30.06.15.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 06:15:41 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jordan Crouse , Jayant Shekhar , Abhinav Kumar , Stephen Boyd , Jeykumar Sankaran , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm/msm/dpu: remove dpu_mdss:hwversion Date: Sun, 30 Jun 2019 06:14:42 -0700 Message-Id: <20190630131445.25712-3-robdclark@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190630131445.25712-1-robdclark@gmail.com> References: <20190630131445.25712-1-robdclark@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Clark Unused and the extra rpm get/put interferes with handover from bootloader (ie. happens before we have a chance to check if things are already enabled). Signed-off-by: Rob Clark Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c index 986915bbbc02..e83dd4c6ec58 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c @@ -22,7 +22,6 @@ struct dpu_mdss { struct msm_mdss base; void __iomem *mmio; unsigned long mmio_len; - u32 hwversion; struct dss_module_power mp; struct dpu_irq_controller irq_controller; struct icc_path *path[2]; @@ -287,10 +286,6 @@ int dpu_mdss_init(struct drm_device *dev) dpu_mdss_icc_request_bw(priv->mdss); - pm_runtime_get_sync(dev->dev); - dpu_mdss->hwversion = readl_relaxed(dpu_mdss->mmio); - pm_runtime_put_sync(dev->dev); - return ret; irq_error: From patchwork Sun Jun 30 13:14:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 11024333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF04D1510 for ; Sun, 30 Jun 2019 13:16:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0EA928725 for ; Sun, 30 Jun 2019 13:16:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9347A2873D; Sun, 30 Jun 2019 13:16:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1394B28725 for ; Sun, 30 Jun 2019 13:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbfF3NQI (ORCPT ); Sun, 30 Jun 2019 09:16:08 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41206 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfF3NQI (ORCPT ); Sun, 30 Jun 2019 09:16:08 -0400 Received: by mail-qt1-f195.google.com with SMTP id d17so11720687qtj.8; Sun, 30 Jun 2019 06:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tU2QjlplILF/dSwxFDxnwqJmz4lOyuJ9m7+FabAB1TM=; b=umgpvucg5VZShrp5PSpC9dvsc75qP858M/zMR+GQN3iy05FW3gMeOsPQKRagKs74JB S71vE+eQvwM15M5hNZPq8iw7IkZlmTeUs3GDuZO0lHh4+TB0X4PhQ0Zg5a9NNPZYlYDl a5iubN/yE1fnk39HOgrk5GGpv/8RDlVu5IfRt9EGd8JIL0NInLSpOspXY3ujxn52suu5 7BamjYtEf9OkpVw9DWGkWzHfAEyQDwecwKkWSlXLhNmVzG0gEuC8N+kOA/4e4y2qX5B1 7jKGSBDRJ0xkbhnFSYI7ewsyQgGKpoK6m3LAgWu0E1OgMvSKtPOeFYNsBVjff5m7Jtpb fQOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tU2QjlplILF/dSwxFDxnwqJmz4lOyuJ9m7+FabAB1TM=; b=K3xMFpWHy8ML1qdJ3H9EMMvb+4EUM2SMJTGhL05Eo0nMjJ6mDLmlNEI7SZmktUcq/S zQciDSUDMZie6oiMt2d+vIUSVbG1qwba8Ip2p8vyQbyTEfUIF47B1OVwjA+CC+CfvTXA k8HzPUx9IW9+oPJE4pVkYq0+Vf36bGzEAxgdA9l2bxrIOe9xTBbeMBPLUKR57ipjhiUV NVWl0b+B/Hs7vRjp43F1XBcYE3OUQsQCJ1ZUaafU1aiIIFqmQPqGcioh3wRgTPECW6jZ b+GkLkmsZmzcQf0idT20j2Tqe2m5PyuOjlPLZf4/7WBHl6qXSmFVzn9UQ9QSytknXkJY 9Egg== X-Gm-Message-State: APjAAAXTv5MYvbgI2PQ6GJbUK885H0nl21vZNZG8Qw5wIt5kMnEL38jG V3iqmjLO6xpS16WFS1kJeXM+4HcgG1g= X-Google-Smtp-Source: APXvYqwO7sW3wpg5LURjILC5Z3weemfzsZ/DWUaABvf+rrgN/vo/Lh9n08WNd6xIZ2wcJwkEuNaDOg== X-Received: by 2002:ac8:18b2:: with SMTP id s47mr15559015qtj.75.1561900566858; Sun, 30 Jun 2019 06:16:06 -0700 (PDT) Received: from localhost ([2601:184:4780:7861:5010:5849:d76d:b714]) by smtp.gmail.com with ESMTPSA id l6sm3643043qkf.83.2019.06.30.06.16.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 06:16:06 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Sibi Sankar , Chandan Uddaraju , Jordan Crouse , Abhinav Kumar , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] drm/msm/dsi: make sure we have panel or bridge earlier Date: Sun, 30 Jun 2019 06:14:43 -0700 Message-Id: <20190630131445.25712-4-robdclark@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190630131445.25712-1-robdclark@gmail.com> References: <20190630131445.25712-1-robdclark@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Clark If we are going to -EPROBE_DEFER due to panel/bridge not probed yet, we want to do it before we start touching hardware. Signed-off-by: Rob Clark Tested-by: Jeffrey Hugo Reviewed-by: Jeffrey Hugo --- drivers/gpu/drm/msm/dsi/dsi.h | 2 +- drivers/gpu/drm/msm/dsi/dsi_host.c | 30 +++++++++++++-------------- drivers/gpu/drm/msm/dsi/dsi_manager.c | 9 +++----- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi.h b/drivers/gpu/drm/msm/dsi/dsi.h index 53bb124e8259..e15e7534ccd9 100644 --- a/drivers/gpu/drm/msm/dsi/dsi.h +++ b/drivers/gpu/drm/msm/dsi/dsi.h @@ -171,7 +171,7 @@ int msm_dsi_host_set_display_mode(struct mipi_dsi_host *host, struct drm_panel *msm_dsi_host_get_panel(struct mipi_dsi_host *host); unsigned long msm_dsi_host_get_mode_flags(struct mipi_dsi_host *host); struct drm_bridge *msm_dsi_host_get_bridge(struct mipi_dsi_host *host); -int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer); +int msm_dsi_host_register(struct mipi_dsi_host *host); void msm_dsi_host_unregister(struct mipi_dsi_host *host); int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host, struct msm_dsi_pll *src_pll); diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 1ae2f5522979..8e5b0ba9431e 100644 --- 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__); + return -EPROBE_DEFER; + } + + msm_host->ctrl_base = msm_ioremap(pdev, "dsi_ctrl", "DSI CTRL"); if (IS_ERR(msm_host->ctrl_base)) { pr_err("%s: unable to map Dsi ctrl base\n", __func__); @@ -1941,7 +1955,7 @@ int msm_dsi_host_modeset_init(struct mipi_dsi_host *host, return 0; } -int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer) +int msm_dsi_host_register(struct mipi_dsi_host *host) { struct msm_dsi_host *msm_host = to_msm_dsi_host(host); int ret; @@ -1955,20 +1969,6 @@ int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer) return ret; msm_host->registered = true; - - /* If the panel driver has not been probed after host register, - * we should defer the host's probe. - * It makes sure panel is connected when fbcon detects - * connector status and gets the proper display mode to - * create framebuffer. - * Don't try to defer if there is nothing connected to the dsi - * output - */ - if (check_defer && msm_host->device_node) { - if (IS_ERR(of_drm_find_panel(msm_host->device_node))) - if (!of_drm_find_bridge(msm_host->device_node)) - return -EPROBE_DEFER; - } } return 0; diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c index ff39ce6150ad..cd3450dc3481 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c @@ -82,7 +82,7 @@ static int dsi_mgr_setup_components(int id) int ret; if (!IS_DUAL_DSI()) { - ret = msm_dsi_host_register(msm_dsi->host, true); + ret = msm_dsi_host_register(msm_dsi->host); if (ret) return ret; @@ -101,14 +101,11 @@ static int dsi_mgr_setup_components(int id) /* Register slave host first, so that slave DSI device * has a chance to probe, and do not block the master * DSI device's probe. - * Also, do not check defer for the slave host, - * because only master DSI device adds the panel to global - * panel list. The panel's device is the master DSI device. */ - ret = msm_dsi_host_register(slave_link_dsi->host, false); + ret = msm_dsi_host_register(slave_link_dsi->host); if (ret) return ret; - ret = msm_dsi_host_register(master_link_dsi->host, true); + ret = msm_dsi_host_register(master_link_dsi->host); if (ret) return ret;