Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp226052lqt; Thu, 6 Jun 2024 01:29:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVriszEY78rlXY/P3bWj6LQKwzf+EAY5s+GlKScdMxa8DlG3ujWNorH4eJgirPf2fZPsSTKgz85nGmThJzcqWrSMjOrmjTTZlpPxv2rrw== X-Google-Smtp-Source: AGHT+IGZVqCN3uJAh4V9yr4T/0mxqyOK0RjYzQLol6H/eMZStihjfYctgRJQW2JvFjC1xMVkf4DM X-Received: by 2002:a05:6a20:1590:b0:1af:dc40:bb34 with SMTP id adf61e73a8af0-1b2b6ebace9mr6360673637.18.1717662543413; Thu, 06 Jun 2024 01:29:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717662543; cv=pass; d=google.com; s=arc-20160816; b=sPAP3pv/eeAAJFWnXce7csVUbggV/7neFoD7kvDxuBPtmbgdE5PwAZ+U0j/DtL0hF2 92K6Pv02tYLMOqf/c1xSyOxFBuSJ4WcwW6dDR8pdlyBv8nPKZphTeOhdDFbmlOKBBER9 A4oegBKwXTYXxx+mUU2O6b73ZnSdOfKND1bx/z3ypgzZ+dQFBBussdZOzCLvnP+VJVOW 08LmGxbopDeqXJYVZ6a0jCs7MqjZBC/8cq3x35ZecHYrxpV71y7VguLdKupVg438lzGL MHsmftKbDJZLG8fdC9ulL04/MiK9qtKPXiD9Vxc0c9iFnyBjCaaJcxYqCNr108seibJZ wBEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=x2+y0ipvw9/Vy2jDpbW19iXnZKhk5ENbIrkj5TxdUAo=; fh=deZW8EIlUGmehXAlvhDp+gBQ4pE+9DzNo3UbA4Q7JUc=; b=Nj9ffLmFO/D1+0ctwBJ2+JE2x2bdYc1ZPy72loFVmFKP3a393woIVQiVLJNCXEYffm t417QwPh6Xudulw2FDne1Uf4zl0KeLawlMkqUXg2QHC1wlDhCyn86F067qf0aFAQE3EF rzdc97WCOxFRj5sXEj1hf8wAY+9DRWt4Kka3thyejgOvYyGgjN/ggY8YBFecwcqdY2tx Uh0gGCp9L+Y0zhphdPAzh9IEWkCKhrGmJK66okx//RYNcr0Xr10Rz3Dzor7kZgTw7LQ8 nk13ihODYwHwDhiIyrs00QwocqdHcaeNBhiBzUcfvKqoo8/f+6nIQw511y67Rv8tkgZe MXnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=a1wc5lvj; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203825-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd3b362bsi118944b3a.120.2024.06.06.01.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 01:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=a1wc5lvj; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203825-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 13AF92857B4 for ; Thu, 6 Jun 2024 08:29:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C32D13C67E; Thu, 6 Jun 2024 08:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=norik.com header.i=@norik.com header.b="a1wc5lvj" Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF4C5199A2 for ; Thu, 6 Jun 2024 08:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717662536; cv=none; b=GprQ+SsK7JAJTwJkAYkS+0QF7s+mnZX0WNU2Tl22OHJpFVRlCRoAojBEdNXKNhpHCskHxd4SybngLh8nGr9Pg/urCaCklVXu6GLB0TEkK+i+bZF3j2hhG3l73q4ET+atjnFTcOezpyOI10rif0F0uIi9krvL8GZYUAUDbAlGR6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717662536; c=relaxed/simple; bh=5Ys8iQVTydCi1EldwvCjBJXP9wRpAX7anX9XZCbGrW4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qZn1kFDV2MUByV3K7hd1VXXf9dTWm3lFF2i2m4/oTYVv+hcJKhraG31KqFDucc+EzjUrcgB3UkC+wNyqLALuKWlTv7sAAkYE4O+pgbPohcg/uhHeEEatukaBhYoaG1hiDWwEICRSZ4qDKTENLgY7L8Rjo9uiWt943X3hTWjGsCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=a1wc5lvj; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=x2+y0ipvw9/Vy2jDpbW19iXnZKhk5ENbIrkj5TxdUAo=; b=a1wc5lvj/qqWeL1mcBgtu/fUX8 9dfM5CxAFBm7zIHLyMs/dNaUjhFFEuE6VC7cze0+rFogayNd44qpV8REmAsMa2VHCIS3N6RTRW48Z 3c3WE1gnaVe8I/yMNJTFnooerwgpC4f2YT2z2j8Jaq0uj19GDwrs2AU1Kn7NOAjveOezgVdaulXgi Zu50CX9ZiM2B/2tdGMwEpbo1fByyczgEddfAo5FProzQl78feIk4ET2UG3srCEXkWdtTeyJP7gSds FeqccFMlFvPx4rXm9f+zHNMeC+f25Zm2vmvv6MQ5rDKPxz7Hys9jB2pj9ieZH9iulJ3Q9oKEEDQwX Oov2ifQQ==; Received: from [89.212.21.243] (port=59706 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1sF8UP-00BbFF-2Y; Thu, 06 Jun 2024 10:28:53 +0200 From: Primoz Fiser To: Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Andrew Jeffery , Douglas Anderson , Rob Herring , Primoz Fiser , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: upstream@lists.phytec.de Subject: [PATCH] drm/omap: dss: Support all VOUT ports Date: Thu, 6 Jun 2024 10:28:50 +0200 Message-Id: <20240606082850.3746052-1-primoz.fiser@norik.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Allow function dss_dpi_select_source_dra7xx() to set the channel in the dra7xx DSS_CONTROL register for any VOUT port, not just VOUT1 (port 0). Signed-off-by: Primoz Fiser --- drivers/gpu/drm/omapdrm/dss/dss.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 988888e164d7..f5a484ef0f48 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -796,7 +796,9 @@ static int dss_dpi_select_source_dra7xx(struct dss_device *dss, int port, { switch (port) { case 0: - return dss_dpi_select_source_omap5(dss, port, channel); + if (channel != OMAP_DSS_CHANNEL_LCD) + return -EINVAL; + break; case 1: if (channel != OMAP_DSS_CHANNEL_LCD2) return -EINVAL; @@ -809,7 +811,7 @@ static int dss_dpi_select_source_dra7xx(struct dss_device *dss, int port, return -EINVAL; } - return 0; + return dss_dpi_select_source_omap5(dss, port, channel); } int dss_dpi_select_source(struct dss_device *dss, int port, -- 2.25.1