Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp870922pxx; Tue, 27 Oct 2020 02:32:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6Dt7xYuEivpa4caQCFNsnG5RRcNnPBqkECQrieCUqYzG1M3Qq5CHVXqPMWtpLmwfR48XT X-Received: by 2002:a17:906:6d0c:: with SMTP id m12mr1482791ejr.498.1603791120167; Tue, 27 Oct 2020 02:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603791120; cv=none; d=google.com; s=arc-20160816; b=SsQ9qX82hZsKtdYsrxepZBTB7B5hWxFVKWuD1MEMJrs/15MzqXm+Q+bnjdNG7wgoLS eis0mFym7nfYDtGXO26P+HIbmE64G0LOTl5q5IiKnA2gCNN/QE+G2LzBb2bXEUZCXrnW APrS1i7A1jD3IKGKm8Z/+BI7Z7Yp2hgV0pEXu+jTxpl1euCW6NhFHRjkCUGJllljmVmG VJU8qSiXYl7bf3X2dqr2Vne87nbONK91vo0toJDPDuFFOP3p1idw8GYAzv2VtXBTEtHo KmzkigrZvZZYEUDbmkCzlczBQeUwgGqOVFCoD1kdXaQBrl4rAEhfrMRoZuESphIaqK4W Qcmw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DPQ65ZzSAIpqxk17kQ20n2IFEAeUJxeV2X7Vqh+bp78=; b=AAd8/Ghf533exKRsTOr2nucX8Q1mb2a/eGz4QOWoIQfysPrEDHMnILx6g1y1Tqcifz F9/uYhzk5OxVdorXbgtSjYq94XkNO1uRP+qQds3uyYuwNXbNARY58T81viTXFbtbraIc KEGuRmcVWYeJeWyY3c5q8RHfN/4gndbRBNHaNlm3Cmqb7B54NgwiFz71X0xt1wEu508h rJAWz39O0FIlShdQJDqAak1fH3rTZyVcQkZgNNua4peA4R94r4NFKtPCQB9R+SxzdwtK xWxVHJ1+/fqrHAaprvb5k+tK03cBxnbIZniqQJ3ShkBxhGnFK4sKE1EeCjzOKbzPMnw6 INzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eTztFtjW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si603359ejd.359.2020.10.27.02.31.36; Tue, 27 Oct 2020 02:32:00 -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=@kernel.org header.s=default header.b=eTztFtjW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409139AbgJZXue (ORCPT + 99 others); Mon, 26 Oct 2020 19:50:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:48540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408963AbgJZXt7 (ORCPT ); Mon, 26 Oct 2020 19:49:59 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D94E20872; Mon, 26 Oct 2020 23:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756197; bh=iWq+kWKnrKXiGx+p27rK1ZDgY1h1EZj7pDFxBn7JNGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eTztFtjWGJDkbWwn9csYADnf7ftcK0R/qMAP/eDST8Kh3bSXZOSv44gSJjZikcWD4 c5PMt2hYNIJ+ya6I/6dm8GZntlFcEFDYUdowp7lqV2R0fF1Frve86Kai6ff03XDQaF dY8ytqQeFCrxQen+dmpxKlkh8+2xEWRdQknurT2U= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Enric Balletbo i Serra , Laurent Pinchart , Sam Ravnborg , Bilal Wasim , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.9 041/147] drm/bridge_connector: Set default status connected for eDP connectors Date: Mon, 26 Oct 2020 19:47:19 -0400 Message-Id: <20201026234905.1022767-41-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enric Balletbo i Serra [ Upstream commit c5589b39549d1875bb506da473bf4580c959db8c ] In an eDP application, HPD is not required and on most bridge chips useless. If HPD is not used, we need to set initial status as connected, otherwise the connector created by the drm_bridge_connector API remains in an unknown state. Reviewed-by: Laurent Pinchart Acked-by: Sam Ravnborg Signed-off-by: Enric Balletbo i Serra Reviewed-by: Bilal Wasim Tested-by: Bilal Wasim Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200826081526.674866-2-enric.balletbo@collabora.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_bridge_connector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_bridge_connector.c b/drivers/gpu/drm/drm_bridge_connector.c index c6994fe673f31..a58cbde59c34a 100644 --- a/drivers/gpu/drm/drm_bridge_connector.c +++ b/drivers/gpu/drm/drm_bridge_connector.c @@ -187,6 +187,7 @@ drm_bridge_connector_detect(struct drm_connector *connector, bool force) case DRM_MODE_CONNECTOR_DPI: case DRM_MODE_CONNECTOR_LVDS: case DRM_MODE_CONNECTOR_DSI: + case DRM_MODE_CONNECTOR_eDP: status = connector_status_connected; break; default: -- 2.25.1