From nobody Sun Dec 14 11:55:29 2025 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7C74172BDB for ; Tue, 28 May 2024 19:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925164; cv=none; b=WWlFCqVoloxxTQlz9l4dVgBix65E4wTPZc3sMwkJHN1enRDXb8pmPUOKEuNA5RuM9Ey+2FvdZro9mQ1Z/A9mdzoA82PLit3tS4+fgdZwT6At4pFiZFVuKjTrfckIeGoTtZi2rU2IJf3jXOZrXUm+3OKjXKp5/po6/XlnAiBQB7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925164; c=relaxed/simple; bh=JpBownv2A/v5s9u+r2T7bmswrFK7bcF3CJY4XHaV/rs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=As4cBl0ToDZTrNt7GA0JAmqUn2JVyJUoReFEN6/GZGZABB5IUElNrQmdvhBAsUIDPFTCDXbmHY7DGZm7Uhap0wkq/8TzGs4Dr6lF3sTQoC98Aklfb0yONeZvORlL046U+5cL8bsvFdfCq5C8jqqpPaeKcIXL53w9a5PWOmBF7eI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=n7vk3fRU; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n7vk3fRU" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52a54d664e3so72927e87.0 for ; Tue, 28 May 2024 12:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716925161; x=1717529961; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OMzDrUPXBetRBxhwNhxvFwAUk90y+ybpda/UwhIo+Wg=; b=n7vk3fRUxPu7g9bW9fCzevvKqsReTNA35k9QvFKUV5eu3KCw7uGGLvVPbuWACT3Gn+ z+fDGep77RNN0f6tK7CgOfX59YEPTvpnCzshidvQtOh5o+eXXdJTvtPxNaxZ9iduGXNT uaz9JnRZLm+Uwij+I0PWdlVtZPJ7j/Co7bcp6tnkB7ySUBD3Dyf9I1pr7yn7XDA1aSeb GUfyHnLruXqSEIhE1pau/VRqK9XuZLhSwlgGaNEF/Jn8RRe+S54FVJhMTvtUw1+H6cR/ HyWkU62KyUlGS/84gxAjP4KGZjPBusrd8hXix4iyNPWBYyw/PTclqvj59fd0PxhpfaRe Tm0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716925161; x=1717529961; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OMzDrUPXBetRBxhwNhxvFwAUk90y+ybpda/UwhIo+Wg=; b=TlKcHtzoueVvU1/nvGYMZSr/JMeHy8pno9PSh9KhHn1kQO24yhgTSln28nC84rA1zE /XcdooAtslI4qI4kKlR62PC7iWrO1u9YH5fb0FismykDkYh+XsdlsMEwoV+Hexg9Bo9G 28YOmkTHCuKNhr8Sq1AwIDbvReN1ZzLTX64CG9tgy1Cz/8mzJTXR1hItEm6/O/8dOOOd Lxu7brCsFSneVE9eRjtXQg5pqxtvdMIkIVrBiLPq2z2lr+i61i6F1t7tTMncjMqf5PTr KAZOmijVPsGeEE9k1oyNGifZqeILPOAyREG4I0hBLWFK1JUXR2YzjpAZ4YayKgu1eN+3 6yvA== X-Forwarded-Encrypted: i=1; AJvYcCUPeABwMLV1Gc093v2WTWhrkr/UnT8QT0UgDiJdej9tKVJr1Y3ovwtVYLvzF4ZefV5Jfjv8FwG9axrQfWj72UicHsto6xmG/Y+I1iQm X-Gm-Message-State: AOJu0Yyb+tvhDgsDXyp8V2+I4mO65MjvGAJT1G+z4BkA88hTtThaM7r6 F2WL8hjJWAAHuOmS7gWLKu+5PKiHfBPH20ZTmFinKsnKo0kOO7pvu4rAzPD6PP4= X-Google-Smtp-Source: AGHT+IErWuce9aRTgzYsOItaSivJAYEUeHJGEILEAjjDTx4aWbFd8+75S49CKu4CNqVt+Ys3JPc30Q== X-Received: by 2002:ac2:561c:0:b0:523:88aa:237 with SMTP id 2adb3069b0e04-52964caab7cmr7869500e87.33.1716925161160; Tue, 28 May 2024 12:39:21 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529711f96c9sm1045234e87.245.2024.05.28.12.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:39:20 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 28 May 2024 22:39:18 +0300 Subject: [PATCH v4 1/3] drm/panel/lg-sw43408: select CONFIG_DRM_DISPLAY_DP_HELPER Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240528-panel-sw43408-fix-v4-1-330b42445bcc@linaro.org> References: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> In-Reply-To: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , Vinod Koul , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, kernel test robot X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1108; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=JpBownv2A/v5s9u+r2T7bmswrFK7bcF3CJY4XHaV/rs=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmVjLm9PT4rgSufs1N1DQ9nR+ydH1+hIK4hVb0O UFdMizG9E6JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlYy5gAKCRCLPIo+Aiko 1WTGB/9oJhsxnoP8SaNvbslvwO4vwB8P5YM1pgHeTK4f5awBy1BrzWHcn24PItaIkNG3cJQ9C6G Aq5N0gZ+eFpDMlgog7O6er+IxajzglH+FexACjtnCGhtaLUCCEXIYcxfO759My0X2E7HlKY3Ytb S7Ba3tcWJMb1w0kWduqhEKFVogO0HzdB8tpoLvGVdtS2tkTnGFy5sHGgFZbGfdABLI8ifeddA9D SuArUCPBtWwPNypPH9qgK2zNjOase6dyf2pswXwVuUbrIUPZ5frqzOQSGmqcizEZS7GbM32Z8DN it0a1IQmiGb7yAC3rakxmf03wLnnLWjvrp3WUKIoeZs+0Tra X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A This panel driver uses DSC PPS functions and as such depends on the DRM_DISPLAY_DP_HELPER. Select this symbol to make required functions available to the driver. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404200800.kYsRYyli-lkp@int= el.com/ Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver") Reviewed-by: Neil Armstrong Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- drivers/gpu/drm/panel/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 982324ef5a41..2ae0eb0638f3 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -340,6 +340,8 @@ config DRM_PANEL_LG_SW43408 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for LG sw43408 panel. The panel has a 1080x2160@60Hz resolution and uses 24 bit RGB per --=20 2.39.2 From nobody Sun Dec 14 11:55:29 2025 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5C57176FB3 for ; Tue, 28 May 2024 19:39:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925165; cv=none; b=U6t5hqjtNAAtQKUCcMRILq3nuOBlee72sfxUWeoDcvozeXw9X5zAgb0/1RIa487AQcCm/9OXxtC+hTRWkJPvoAPPh7ckizjFVxEH/K81HPgJRDNu1AcWN+IGzCKUVVmilExySGTi7aJZTnQbO+bqw328f+KgIgstt8wqknCmdJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925165; c=relaxed/simple; bh=0ZNKdxQ3JQtZLj0Gm+s5zrogyXn00ZSW+UEFR2j6wX0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=obpcL+59lnTVKfZ81ak4v6Ip1GmD1/t9s43RB6un81nIBM1jM9xDP0zB/4ie3//SlbmewcAVKJnevaOuHRmPXKYX7zYYgI+MMKduZPaFRBx3JZ3PaljbTgeK0G1W19tPuwU2TY1TdHzWzI166/qunV6kkpzMCh5rFJGUwRWKpr4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=YMFqTRkR; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YMFqTRkR" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5295c65d3fdso183777e87.0 for ; Tue, 28 May 2024 12:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716925162; x=1717529962; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NAWjwCLmat0Pt42wss/KcevTPw7T7NPDEdWBIi4Ib0k=; b=YMFqTRkRMZ5xDwhYxyMdbxJ/MPz1HkfXEB2tarwH6kxuLeIGudwIZPP5vqYgxmnFkW az1MXD1puKJdCQbMuOoYwNoAp4+iqT+/LT264u8P95ZAwjBdnqnVBekB5gzg9abHlZGO 75QIPzctPG5DvrqdQbNwMxs5In7jH1oVeoaGEgwGOjRtymZwEpAbJWjCEePLr3Ebd+qT JYkVX9IaEmpbOM7yZaBcym/tpDGSLWbQ0nOHO2T/TxugsTu1SPesYtVDY7rkx5otWiZN e04uNMtrDBp66mI6hjuEfOy6aex9wHwpvvRlv7VL+bGijM3gMQwc1MUee62L/yos79Vt WJLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716925162; x=1717529962; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NAWjwCLmat0Pt42wss/KcevTPw7T7NPDEdWBIi4Ib0k=; b=bEVJlIGm2k57T6camhNO1HpY9aiSVq7jqe7Nlc/4hI83GfuXpPJYB61rSrPV5HEtWC GsjAOUSC+5TQRMg4xgfiaSM6Hi55PRbL+XSOAySL8wEF/qcswtHy87BsJgS1VQi9RkgX +X/5q7wylZO4b8+waVI0LsEEYzea5sbMWpwES13zJ927AWzCcWF5VvU560xkwzWWoNr3 C581ViIDVj1CAzUIJv8jnwJWCvlgo08UPFfQGSTnPcc8AiJn3g7vUjoZ5CmLIGCM2zQt ku/qqeDOoCdQSyOULTcmpObHaIqu5MqniAL9sHYC3EVkm0H3kbLimcG9rchZh8PJxWxU N3Kg== X-Forwarded-Encrypted: i=1; AJvYcCWPCVzYbwpMKXYurE4x3vpe5Lezew51cmhx2GY9t+Nt+6n++ovPIJ3v9pUJi9cw9/Kqh7oRauHp2ti9P1q/8sKL+fxY+yIkk2PC9Am1 X-Gm-Message-State: AOJu0YycybuJox1G1ASll6g1ozbjeQLSM3NdPrq8DmUlXH8XO2X+2CeS p9GIxrap4N29B2CMDdOarbl39/sWHDraHE3RCfAydamxwqlXF+Gs2Z/XwXqtPCE= X-Google-Smtp-Source: AGHT+IFEcfUebNH9/3F7+tMGSmm6idGFX/etBkGLAL2JYR2M63YeQM1oJ70p2YpisBnpaZawk1xktw== X-Received: by 2002:ac2:5181:0:b0:51f:9a88:be2a with SMTP id 2adb3069b0e04-52a829140ccmr9443e87.23.1716925161963; Tue, 28 May 2024 12:39:21 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529711f96c9sm1045234e87.245.2024.05.28.12.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:39:21 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 28 May 2024 22:39:19 +0300 Subject: [PATCH v4 2/3] drm/panel/lg-sw43408: mark sw43408_backlight_ops as static Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240528-panel-sw43408-fix-v4-2-330b42445bcc@linaro.org> References: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> In-Reply-To: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , Vinod Koul , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, kernel test robot X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1104; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=0ZNKdxQ3JQtZLj0Gm+s5zrogyXn00ZSW+UEFR2j6wX0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmVjLng5Aeh5SVikvcmyAnRHw7p/ThlBTJFm122 2UcNeNowKyJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlYy5wAKCRCLPIo+Aiko 1fYqCACDlxEKTIMf+LG30I/ejey3MLX/dYsOzRn50AnSqjNYVvRap590vVb8JCAO/9+j/KSr+8d T4DAgUGFxwq6LDitmxf+/oQ4ADKYaCLCsnn3jAxJI5DYvDiKXYnXY6Rc3IcjzoQ6bz6mL7/t1wC mwRLcPAI/PJdLSms2esDsB98guDvQBNqsRnbpkwPHHwHdukZGq1onHOffn+Duuo69584l9r/zoQ JwEJltht3UiIiCeKyZ+MiVA1pViV3CcXIq/yBwiGuqewvjMtDg1sMBCatIlpaTAAX4CtHutzAEu SGFXB8p+FvwgGpODO05RIYqS5nLSPhZxdGWjx1coXC+42tjK X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Fix sparse warning regarding symbol 'sw43408_backlight_ops' not being declared. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404200739.hbWZvOhR-lkp@int= el.com/ Reviewed-by: Neil Armstrong Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver") Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index 115f4702d59f..2b3a73696dce 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -182,7 +182,7 @@ static int sw43408_backlight_update_status(struct backl= ight_device *bl) return mipi_dsi_dcs_set_display_brightness_large(dsi, brightness); } =20 -const struct backlight_ops sw43408_backlight_ops =3D { +static const struct backlight_ops sw43408_backlight_ops =3D { .update_status =3D sw43408_backlight_update_status, }; =20 --=20 2.39.2 From nobody Sun Dec 14 11:55:29 2025 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 869D84CDEC for ; Tue, 28 May 2024 19:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925166; cv=none; b=AGTHV6qQhsJ24Olda09HQLpTHKTZZLmhMynMVuS5s1OTvEc4m7uZMwCDgwNmKe4bUdRtngB3ngO8f61ARYTR2uIuVqrrHJeERyoi14zlY3BVXAbimsMw55Zyl6rK/PYS1wyro2+8L0KWWJrnbSk+/4nt/t7gfUuJXCYM6Ru97hY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925166; c=relaxed/simple; bh=++B7C+LJPjhNPbyQwixveMzfLgpLwRSPYkfF+FF6az0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DrWlGBSS7v/CCTdK5o/GRWIh/z4QGAbwD8GojKrcL/eziapZelsa17buMsAbFQU/oS8KH0ILKy8UP1L42uXs/fgCffwXiE+e5XCwWjd7LTjyh3GQHl/TG3RHgrgunrnn3k1+qsCWyuInAHF/3EzaoygbGbtBFABIIY0bifLmS0U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iuyLYi3c; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iuyLYi3c" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52965199234so1436062e87.2 for ; Tue, 28 May 2024 12:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716925163; x=1717529963; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dQZO5S8pgY4BnNrxpgnMhoHNDTox+OXu9IzRX/Zms64=; b=iuyLYi3cipwt5vuYYoUs75oXOWJFWV4I4CWo9a8bZszZSEP2flNf+g45gIzA/vHupn 0tWyiJ+xKRZArh3GYDIqGgOEImzt0TcHzmxyRrxC+1dZMrnnr29h8p0QSdmcaYsISSRJ rRw7FysarjoF/wxCHY7sG13aTOhs82FvAV1HkjYvli28PZvZlZmuT3/CWVlQnPwr6wPh q470SylSUak7L6w1DK6lI62BBmxeecHa85Nj0SRchRFzaZv+qX4YBa6wbTna7ZktXCoN S87aYBx0adzhezssGfHd1brNJ65RpstWHWBmLrkOGCb5kzcXoEybiZVN2/ygjTamXMLQ xl7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716925163; x=1717529963; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dQZO5S8pgY4BnNrxpgnMhoHNDTox+OXu9IzRX/Zms64=; b=FPsHuq0U2uDPJM2muzPvZczNbmkCAmmbUUtQ1oBWXs3NpA5sKfXYtAbRaCLwBv+Js5 T/54rKfcKflgV5GgmriNhJFi5pgpml5hD6+aBjLsuzyUS9B2oaBFmF6447EXRfkeTqxq 3c2suO3PtwSz7I2/1SeVmdDbtOigxC5TsjnFzLTQmV3lPrBS98ksJnIN22K2hQP81vv8 Kh+y64XN+fgixkCYyatxfX8yPjH0oVaVn9vSliqqayO4ZbaPXwEgHw0dgzK1BrtI3nyS 7FH9+94sCNA6ekJpzJ78Nm4CA/xFYiVRWFPOui1EabohncoP76xn0x8SbGkbwvvAs0mm oj3A== X-Forwarded-Encrypted: i=1; AJvYcCXTSmNeAzHK0d6TXaO1UVURmt26E/uMrEVXKypM5TpSCGk5HjWBKhgLeuGSFRhvdosyjbcRCib17YerEYmIBZSD264GJ6eoytLhW6hb X-Gm-Message-State: AOJu0YzcF0JlU8dlCsqfs31QTfDUmIN3xyXW+WJyLQDOfatAmeJ+kk4t fNrURuXsaRxDo2UUxrjQ8vZFHOMjC1ugW8Swu1w5QtA3sMLHRo7rp1Cbls/FCZs= X-Google-Smtp-Source: AGHT+IFzVkivM0pRCEKZghv4XGnWwGA0mQiuvUyi6E1/QDpYYlIClbXtlMaW/XW9dA6Jnk5pUgBkZQ== X-Received: by 2002:a05:6512:388b:b0:523:aac1:b559 with SMTP id 2adb3069b0e04-529663e6304mr8034729e87.44.1716925162743; Tue, 28 May 2024 12:39:22 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529711f96c9sm1045234e87.245.2024.05.28.12.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:39:22 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 28 May 2024 22:39:20 +0300 Subject: [PATCH v4 3/3] drm/display: split DSC helpers from DP helpers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240528-panel-sw43408-fix-v4-3-330b42445bcc@linaro.org> References: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> In-Reply-To: <20240528-panel-sw43408-fix-v4-0-330b42445bcc@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , Vinod Koul , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4246; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=++B7C+LJPjhNPbyQwixveMzfLgpLwRSPYkfF+FF6az0=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ1qY0fPHnO5xiWeEW+I+fDaU8Na0PvviwqHK8n3TTG7K+ VmWdYp1MhqzMDByMciKKbL4FLRMjdmUHPZhx9R6mEGsTCBTGLg4BWAiyoIcDHNiYj7J+75/vG5v yAX1ddUtC3avmR0c/0zV/vPzSr+r+VxSi9k6v3dXzX2WaXYlw67ZzmZpd5Ok2xuNUo8XJkGG+sF 6/qZv/luu2m0eX5bR1DFhcgHDe+OT+4rrp2TwTexMs6oTOFjo7cFbrXqC5ZzN2kM+iyQ3Tl25Pf r5GymFiea9b52273zBsnhj1EquOrlzLF0a74RuS5smXUnpDShefPJ6zfkHbzMmRTNc3r7IVccmg TP7IrdrX0rg1+rVp0v8Lvkqc7imMz19Hc7uwsrvvXDnYbulvJeC2Lc6tO/+FfD0tn+euf0EcUmN c/O+cJ97M1FMqy735ImQFslQ47otxb/Xii28zW1lNZcDAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Currently the DRM DSC functions are selected by the DRM_DISPLAY_DP_HELPER Kconfig symbol. This is not optimal, since the DSI code (both panel and host drivers) end up selecting the seemingly irrelevant DP helpers. Split the DSC code to be guarded by the separate DRM_DISPLAY_DSC_HELPER Kconfig symbol. Reviewed-by: Jessica Zhang Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- drivers/gpu/drm/amd/amdgpu/Kconfig | 1 + drivers/gpu/drm/display/Kconfig | 6 ++++++ drivers/gpu/drm/display/Makefile | 3 ++- drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/msm/Kconfig | 1 + drivers/gpu/drm/panel/Kconfig | 6 +++--- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgp= u/Kconfig index 4232ab27f990..5933ca8c6b96 100644 --- a/drivers/gpu/drm/amd/amdgpu/Kconfig +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig @@ -6,6 +6,7 @@ config DRM_AMDGPU depends on !UML select FW_LOADER select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HDCP_HELPER select DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/display/Kconfig b/drivers/gpu/drm/display/Kcon= fig index 864a6488bfdf..f524cf95dec3 100644 --- a/drivers/gpu/drm/display/Kconfig +++ b/drivers/gpu/drm/display/Kconfig @@ -59,6 +59,12 @@ config DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG =20 If in doubt, say "N". =20 +config DRM_DISPLAY_DSC_HELPER + bool + depends on DRM_DISPLAY_HELPER + help + DRM display helpers for VESA DSC (used by DSI and DisplayPort). + config DRM_DISPLAY_HDCP_HELPER bool depends on DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/display/Makefile b/drivers/gpu/drm/display/Mak= efile index 17d2cc73ff56..2ec71e15c3cb 100644 --- a/drivers/gpu/drm/display/Makefile +++ b/drivers/gpu/drm/display/Makefile @@ -6,7 +6,8 @@ drm_display_helper-y :=3D drm_display_helper_mod.o drm_display_helper-$(CONFIG_DRM_DISPLAY_DP_HELPER) +=3D \ drm_dp_dual_mode_helper.o \ drm_dp_helper.o \ - drm_dp_mst_topology.o \ + drm_dp_mst_topology.o +drm_display_helper-$(CONFIG_DRM_DISPLAY_DSC_HELPER) +=3D \ drm_dsc_helper.o drm_display_helper-$(CONFIG_DRM_DISPLAY_DP_TUNNEL) +=3D \ drm_dp_tunnel.o diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index 5932024f8f95..117b84260b1c 100644 --- a/drivers/gpu/drm/i915/Kconfig +++ b/drivers/gpu/drm/i915/Kconfig @@ -11,6 +11,7 @@ config DRM_I915 select SHMEM select TMPFS select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HDCP_HELPER select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index 1931ecf73e32..6dcd26180611 100644 --- a/drivers/gpu/drm/msm/Kconfig +++ b/drivers/gpu/drm/msm/Kconfig @@ -111,6 +111,7 @@ config DRM_MSM_DSI depends on DRM_MSM select DRM_PANEL select DRM_MIPI_DSI + select DRM_DISPLAY_DSC_HELPER default y help Choose this option if you have a need for MIPI DSI connector diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 2ae0eb0638f3..3e3f63479544 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -340,7 +340,7 @@ config DRM_PANEL_LG_SW43408 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE - select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for LG sw43408 panel. @@ -549,7 +549,7 @@ config DRM_PANEL_RAYDIUM_RM692E5 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE - select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for Raydium RM692E5-based @@ -907,7 +907,7 @@ config DRM_PANEL_VISIONOX_R66451 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE - select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for Visionox --=20 2.39.2