Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1938228pxb; Fri, 22 Oct 2021 10:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG3titKtkKEarq2nN/vkLNRcrFZlecaogwJmqJOvMCko9suetnytSJ/o4HzYn4kLFPByIS X-Received: by 2002:a17:90a:5d89:: with SMTP id t9mr1324972pji.21.1634923592215; Fri, 22 Oct 2021 10:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634923592; cv=none; d=google.com; s=arc-20160816; b=O4jEOZH8OaMCC1vuNyiFQEZSfNfWlpo9AQnvTKqzzf7BK6Y7ZJaH/hTcB81kCo5GeV cF0OVWwBhLzrM4/bm18v8E6NFrJ4QcW7DYr9bRPyRMehzZ1iS8TYUicEA4ei3hK8CD/Z ptXAk0aI1D3KpoatWwyxCjzj2cOM0aRo7SueQkKg2kC1Kyov8vU5g2C2DKnpNmckm/uO BhlSZvWgjL5wPeOA/Efts99GQzwTUpJDBDn89etPqqSiwPuQDc7imjpzYBnvlCaxO5Bg VAhKK2NR6y+a8JCuNgaxCqp0Z74xkFlT/z7R4kRI+igSIR14RzVeA8CQPfib4zn2U/vs NnhQ== 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=bhRqLM6yW3BElMhr6p8JxBlLhkjCyrvm/fO8BA6PxAc=; b=Ba3YgU1nSQrmWVQFSF/AkjU/Qv0txQ0Lz7+yeq7iz/yjwApU5mpKpQIyxQLxI3Xj+b dOx9652ee5/3pEg83HjFG56vRYLc5AVbO/zWdS/TwONaody9EsVIeBOw6CT0nSFqldvO 7ebX1ypz+k8PW3+kJ5nIAfvtz7e9i0C0DynfZgqxeUExIXGnPk4PaRXaIa3kOHTeyMsv 8OMwN7w8liNzp+OSOab3JzyDlIe/3iQH+Ar9uc4jknBRHqcMU/FB7/DaoyJdCY+4UJfW x6Y4ax887aG9l9U65ysmG7LT9qUDvW+mV+uEsMAFxnx+ZeW3wgGWPy2psZWFuAw9+Ote T3YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=n0REBVug; 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 3si6813575pgl.23.2021.10.22.10.26.19; Fri, 22 Oct 2021 10:26:32 -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=n0REBVug; 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 S233648AbhJVR0j (ORCPT + 99 others); Fri, 22 Oct 2021 13:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233630AbhJVR0i (ORCPT ); Fri, 22 Oct 2021 13:26:38 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3D7C061764 for ; Fri, 22 Oct 2021 10:24:20 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id a13so5178464qkg.11 for ; Fri, 22 Oct 2021 10:24:20 -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=bhRqLM6yW3BElMhr6p8JxBlLhkjCyrvm/fO8BA6PxAc=; b=n0REBVugNN6h/yPp0kthsRhifZEkvICP1H0DNb4lHJcDlVhDv7nMaKJ2Vhs+3mG8wb P+9hayC3ZcaTRQbQ6Yg/emEujycTI0bGB0+E/8Au1iQ2EaTxB9N8pARvjQsu5l7fjzyx LXthrCGguKWkBeGh5u6EqjmXuYKmprV7mEMPQ= 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=bhRqLM6yW3BElMhr6p8JxBlLhkjCyrvm/fO8BA6PxAc=; b=jG7x+Zk8pjJLzXhPKobDjyG2nZXTnUXQXnMRxrwomId4Rsjb7j3nDt/hhNBM+irszz ifrlAnPYIP3745ERvzcoMcUzmT1GtRuvEdbBPpa4TNhT3zMz+ynPayEZZHoyHYY9Kl4R AJ1cf6sHtlP29ZF4yxEkkDVOMy6US0zEnjQ/aPbeAVuGs2nzqchX69T1sjrfqtKAOFm/ 8/oHQr7uc+DBac75tpmTokYcN20lAAl3cuLQAG7/tUVFo+wLOpOlzdAPu+6z20/ZkiMj y04kLqrGsQPBNfTT8WI5cwekq4rUU+HU10yl/+HlA65XcnQOo6hG/yd2pRhvqv9dT9SR vjaw== X-Gm-Message-State: AOAM531JVXA76yC/3fhQ3MauTyQ9FIkSNokpJLvvQJOl4ec3oDwAL5zo JOVYCaBPUVs+mUNrkZ8adAhVZg== X-Received: by 2002:a37:a2c1:: with SMTP id l184mr1122332qke.71.1634923459566; Fri, 22 Oct 2021 10:24:19 -0700 (PDT) Received: from markyacoub.nyc.corp.google.com ([2620:0:1003:314:6c36:8d9f:c50a:b0f0]) by smtp.gmail.com with ESMTPSA id m17sm4607611qtx.62.2021.10.22.10.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 10:24:18 -0700 (PDT) From: Mark Yacoub To: linux-mediatek@lists.infradead.org Cc: seanpaul@chromium.org, Mark Yacoub , Mark Yacoub , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mediatek: Set default value for Panel Orientation connector prop. Date: Fri, 22 Oct 2021 13:24:03 -0400 Message-Id: <20211022172413.195559-1-markyacoub@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Yacoub [Why] Creating the prop uses UNKNOWN as the initial value, which is not a supported value if the props is to be supported. [How] Set the panel orientation default value to NORMAL right after creating the prop. Tested on Jacuzzi(MTK) Fixes IGT@kms_properties@get_properties-sanity-{atomic,non-atomic} Signed-off-by: Mark Yacoub --- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 0ad7157660afa..b7c2528a8f41c 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1039,6 +1039,8 @@ static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi) DRM_ERROR("Unable to init panel orientation\n"); goto err_cleanup_encoder; } + drm_connector_set_panel_orientation(dsi->connector, + DRM_MODE_PANEL_ORIENTATION_NORMAL); drm_connector_attach_encoder(dsi->connector, &dsi->encoder); -- 2.33.0.1079.g6e70778dc9-goog