From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEE42C433EF for ; Fri, 22 Oct 2021 17:25:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A1A136121F for ; Fri, 22 Oct 2021 17:25:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A1A136121F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eZa1UEQFI0A/wQzubCugxBi954j6r2DJ8BF5mRjcLTE=; b=28SRIGnZWFiaRb BXlszx9oDJyg8hf0WbmpFkVhBpxLbl/t5QfssRU2H36BLxpe6X2KUSD8Nt/TySKPCwjU4C4ah083t 6OH30bnFegWnNHtuabLyh3u23r2Q0NsBtgcIeWpxCfl5C+KTjWL/7ElO7fZYKw7ljjIHsMAZ0veNC Iz2s+f4jR82golDcc34hJ3jGNf7e8tUnnbclu6FXeef628cjtVvvcC2kvfiscMGTR9zogQ1UmiZZq JUdiY6n9NE0mkp1j9e+err9d91RKPNuhgyS4LVFmPVRudMohG1q0DZzQfvJ0WzrxNXiXaNQV+mCbB Ibs9rHf77FKCkJfi+png==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdyHJ-00Bcjs-Aj; Fri, 22 Oct 2021 17:24:25 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdyHF-00BciH-1z for linux-arm-kernel@lists.infradead.org; Fri, 22 Oct 2021 17:24:22 +0000 Received: by mail-qk1-x72f.google.com with SMTP id g20so5402503qka.1 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=RYPU10tpZFxnbiOGK3orCQrYITTfVvWBvU/8vokuU3QZLib9zmoDDU8AQ9F49Y7mij FmUSYWJIOzTxmY9exJq6Eps2VX2CsK8kFQmufvhga1wr9VGtr19k63uiQxf2I1RmgBTI ZRZCpACwx3sneECw8I3+/wnRM1igZRAwQlfqX99hz7+s4pT05vQZ/5+lBenIhfDXNMvi GGj55+BCuPsC2l/FVWBG4I3IUY+/12MU5QFZmgGdDLwUSQhP9tv5dCGUV7bmwYgE36hY SPgmFPwEWvB/+bi4KH7OumfFePkMjIYrbzMf4tPohy4iEziPZflpL8YZtTcaoqy803F7 tYuw== X-Gm-Message-State: AOAM530YEoceArxZD/jLKo32ncq6j03VqEbM8rR3sEKJ41fZDIerCmK4 H+B/fuiHdTUzBSb+tOb3GrP3EA== X-Google-Smtp-Source: ABdhPJw5+Z3gbQpB89P9MYXrYchvZhhA7n6NVaZf4RXniPOT8qvw6+uopCRuEw1xS7/oSzdg0o1iFw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211022_102421_170176_EC8AC69D X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel