Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1941426ybt; Mon, 15 Jun 2020 13:33:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybrUbfYlPkfXFQ7rJQ1rs8u6S+S7RzN3SKqGz/5JMMeeTIs3+UcGXw1xbus/ben84qc5sZ X-Received: by 2002:a17:906:695a:: with SMTP id c26mr28212021ejs.214.1592253229014; Mon, 15 Jun 2020 13:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592253229; cv=none; d=google.com; s=arc-20160816; b=S9dKlkA/LJij1ezzNeBRGkkY18g6WbF01pMMbLufC/PvrT+iFjbuPa+fzBnX9ip2cZ Ir3cSAhp4g09X/LfmiWkxT4yz2nHC+Az55mS6h2eKEyydwHL/5Sj0OnUrwYMZM6KkyD8 tsHoF9WTatoVhUlHe2l8xVr0+5yUxJSfjfBeOECGUtyEvBcu6yIS6PUhnoI13/9j9a/J +8SyOiDQ25MlCO6LwyIf5JBqVku+txXW81KDxnDWui5jL550QLCIbIpHdB04VJ+UTunr OXPZpp53u6figiMZLED1+RRWHFnn91acPPVqutRbKVCBV2kFhRagzKH1uMa5qxkJsySR gp5g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JSzDI3Y72NgsDDxZJ1/+1nZzInc7IQlezigFEn1E4+o=; b=q8/Kn+3M40A2nA9OSaaqo1BkHmOpX6LQS3h8y6f8YBhacSypKPFeHki2EvZC2Ml/Cb LNET/nhi3o6kwNgwPBdOw5s2CXK/MOafwvUV0BSTw5/lkMsqkb96XaCSvfs1/0E2X/gd qRqUOwZK7DsLCnxI+5+uNBw6A8zNBcPpqr6k4Jwkatb+UDu3hJJThok+bYGvJNeOnKwG ZHWUrPdWjDtc/PKCBtReQWUkYaMSzFjJi7yOY+e+kk/lzZ9U2vMFV+IFBKUqRkHq7MQI X17gqtMnRHtWVD54D4tZ4O8XIwIFjRqAJEUxqceLA2jtEmcpvw7u1V2Nz0CE4HGxHPQh z12w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si9270829eds.47.2020.06.15.13.33.27; Mon, 15 Jun 2020 13:33:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731484AbgFOUbZ (ORCPT + 99 others); Mon, 15 Jun 2020 16:31:25 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37108 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731447AbgFOUbV (ORCPT ); Mon, 15 Jun 2020 16:31:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E36792A2CF9 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org, Collabora Kernel ML Cc: matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, laurent.pinchart@ideasonboard.com, Sam Ravnborg , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [RESEND PATCH v4 2/7] drm/bridge_connector: Set default status connected for eDP connectors Date: Mon, 15 Jun 2020 22:31:03 +0200 Message-Id: <20200615203108.786083-3-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200615203108.786083-1-enric.balletbo@collabora.com> References: <20200615203108.786083-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Laurent Pinchart Acked-by: Sam Ravnborg --- Changes in v4: None Changes in v3: None Changes in v2: None 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.27.0