From patchwork Thu May 9 21:20:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13660432 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29367C10F1A for ; Thu, 9 May 2024 21:20:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3021810F559; Thu, 9 May 2024 21:20:31 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Opa3lRJA"; dkim-atps=neutral Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by gabe.freedesktop.org (Postfix) with ESMTPS id 055DF10F53A for ; Thu, 9 May 2024 21:20:27 +0000 (UTC) Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2e3fa13f018so15603611fa.3 for ; Thu, 09 May 2024 14:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715289626; x=1715894426; darn=lists.freedesktop.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=K0AjYQgc/Kg6ymj2SYvFJcHrf+33vNVWmj+ECCE5Uk4=; b=Opa3lRJA2tyI9sQLL4JNLfQz4u8p715dnQd26hjCiZtzgkDif7hiPIeq25kvmy4MWE 6Rpokefs5C/rQtqAJPbpcdlXE4cKSIOj/Di/Q9KWkypDdUc2yYTsNMyPlK14p/GOezKM b32YOfhRfH8QglkOuhUhszKvRsjnrTx+9uN56JmtZnAKZ6+b3rhJVV/mTxR3Rtid9Kjo Ai6dZwSca6noBCLWjLte6G20Ir72I26NFurqkdDk03Kc532GPnHRrFR7y7r4LwPnucnR wy/lBQ88zA58HYIte5M3bMm5vkYHku++O2Wb4E6FkCDt2FqVqwugfROc8aoJIRr/aUGO QE8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715289626; x=1715894426; 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=K0AjYQgc/Kg6ymj2SYvFJcHrf+33vNVWmj+ECCE5Uk4=; b=ptA9kNBCTX6wV41rRtf8DSvyyMfv34E7w8vPinQem1/PfvQnAuS/Q4l9CTgWoaDvN3 CxtoYZ4bIWH3Q2/kslutegOqurgnC7YVWNn5kZEYYnSzHdOXQUcaC0TPtRHSUxMomH6J h1ujCubZLMvbTpZlJiG32ShmrKkIu0ymRltqesOxfhhDozVQtYIO1vY9ccy1PxdqNEXi P94lNKABPq7zBgnTSIiPi1CFl2b6Jjz1PNGwwOSL0A+f99o9ba/yAVnngP52KYmMLmn4 Y4YYJDZmNSkcc3N6gY6uztWfjo7FF1x1VIVkI4BSoljSrHWu/0vHq58cvBDKxIAVYnN0 VjEA== X-Gm-Message-State: AOJu0YzOs3ISlD7AosxIvgqvLDimnwsUkpg4Tm/07iXQ6ZON4N/RLjgp n+BfQivOk1EAjhTk9srluftdW5nCg4IboJ4e9an6u4c9zDfI4a2tk/NVSZvf9Uk= X-Google-Smtp-Source: AGHT+IGfXvgqsYlqWJKvA6gGWvMK2v5HC+TuvvP8p2JkYzfRGHQykildj77IYhfD/mCd8xaKabV6kA== X-Received: by 2002:a05:6512:3701:b0:51d:3f07:c93c with SMTP id 2adb3069b0e04-5220ff71d70mr332140e87.3.1715289625967; Thu, 09 May 2024 14:20:25 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d898fsm438832e87.208.2024.05.09.14.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 14:20:25 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 10 May 2024 00:20:21 +0300 Subject: [PATCH v2 1/2] drm/panel/lg-sw43408: select CONFIG_DRM_DISPLAY_DP_HELPER MIME-Version: 1.0 Message-Id: <20240510-panel-sw43408-fix-v2-1-d1ef91ee1b7d@linaro.org> References: <20240510-panel-sw43408-fix-v2-0-d1ef91ee1b7d@linaro.org> In-Reply-To: <20240510-panel-sw43408-fix-v2-0-d1ef91ee1b7d@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , kernel test robot X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=986; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=fJ1rFBZvq/u/ibZlYytLuo1NfFspyuxEibTUJ2GQ7b0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmPT4Xu19gIrEOfaCn3Nv8snYLMWWpmEo6Uppfa ZIvO2lCIK2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZj0+FwAKCRCLPIo+Aiko 1RSUB/9l96pY63NZpv3fzBCzZg3JjmqmQPyhZEoLIB0v1Epgo3eUl0eV+aUDC2NlkhHqksrZqGo jQmiwSwh8ZKgIOjXQFDekgIhL8x1fhjXj0c9g03H1UqXd7nsovDm2r00E9EhonIEQFGb6Ro1Fhz 8H/3gIa8JYIgDWosbN07hW8phuVPDf7YGXjrSvEDh07x1BVv1yrqTT1yhXwRE3VZ6czzD/bKDLo ljztotW1xDNh474V4GU8RJvJe3buA4M9edYtybFBw3GHpCfxxG00eMHM6t96HhtSV51indajJ0Y 9AtfJrktTVzNoGfO4y909b5KqWYWI0P6huGVDiEqAcLifedq X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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@intel.com/ Signed-off-by: Dmitry Baryshkov --- 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 From patchwork Thu May 9 21:20:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13660433 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55CD0C10F1A for ; Thu, 9 May 2024 21:20:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B52B10F53A; Thu, 9 May 2024 21:20:34 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="I2kHLeOm"; dkim-atps=neutral Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id A92DB10F53A for ; Thu, 9 May 2024 21:20:28 +0000 (UTC) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51fcb7dc722so1257577e87.1 for ; Thu, 09 May 2024 14:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715289627; x=1715894427; darn=lists.freedesktop.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=qSmAuCxNU1y3XahseuBRK4nFztnrZzASjwN1faGf/vg=; b=I2kHLeOmI1LISLM+3D26qTGpxXe1Huyjye5zmXtI3x3xs+NyIiXZfSjuhcbJLWPORw ftsgbiwCQbNYoGoRNQweKN4et3krZVxe5dZ051bhs7uIq7vILMkXYkd8RkrkD5q9JZzb 5GM0+FGy+LT675eflYT8xjo2A0wkDnJzodSVOYeemI1kcScUFXbEgC6hDgd6UhFrnX4U aZ519J7IFtGcgKrPE4urTpVZCZXRwL8di0S7JtUZMAlYyoy6HZN9Wd07gCusQKjKvUYF Zuyi5kQNVMCWXlWG6h2ZjpI/YZcuGG2IA3tk6FJOh7SgGvLJbzBpahknJXvh3JUS0/3u VJNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715289627; x=1715894427; 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=qSmAuCxNU1y3XahseuBRK4nFztnrZzASjwN1faGf/vg=; b=LQad60h9C9yyqCPccA8l9ifEGlmvQpXFGRk0FP5Ncj74Egk+afDT+JiYMYlNcu5jaw qwZ0/R55DHeEoxGPY9cbnwMFmdwyOl6vVFYuyPpPBxpmp0D1bhlOvuWCeCB7iNIafwaD gSsFp75GGpqwdOVRifR2GyFpMMhDKHe1avcrV2I9erZM1uWSYAEF06CUZiIDFddQZft+ rMRD/wqJ+jTi+7GkcFrqo+KFpsv2fP5okjbLZA2nPxCPxMMBXqN8njAIPtCQf3mpsDvI XsecwEiHXNmbEBOLv5wZfdAgZK5I+qCBCJFasIdWRWK5mLcnH4vQFKQxzYYJcMIixWsP z1aA== X-Gm-Message-State: AOJu0Yyp4k9rscGTlFpHXvTUn6CC0FPti3LfdrcTobfN6pUWn8OcmuXZ M1Q9Leq6wf6g2I6ukTW7KCuzcOiU06gGnCZUuLRnQ+yW6zT+2LHvt7NUZV+s0jI= X-Google-Smtp-Source: AGHT+IF3MbOHWe+Dd5cqT5itXTVz7GOfcbFYKIuZDqCR1HFSbb9PonNq/bo4qHWf+nls5HUXo433Dg== X-Received: by 2002:a19:5e5d:0:b0:51f:b3b:6373 with SMTP id 2adb3069b0e04-521e0c63c91mr1124319e87.15.1715289626701; Thu, 09 May 2024 14:20:26 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d898fsm438832e87.208.2024.05.09.14.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 14:20:26 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 10 May 2024 00:20:22 +0300 Subject: [PATCH v2 2/2] drm/panel/lg-sw43408: mark sw43408_backlight_ops as static MIME-Version: 1.0 Message-Id: <20240510-panel-sw43408-fix-v2-2-d1ef91ee1b7d@linaro.org> References: <20240510-panel-sw43408-fix-v2-0-d1ef91ee1b7d@linaro.org> In-Reply-To: <20240510-panel-sw43408-fix-v2-0-d1ef91ee1b7d@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , kernel test robot X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=982; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=9SBs1y5K2hzjnYPD9Ky3KqU2SZnDlGyGsApyJDQKsvY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmPT4XEcEqWGu8gIgOpNkqDt6I0aZl6LpNHXOET V6MyCND2Q+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZj0+FwAKCRCLPIo+Aiko 1fCJCACVl1Tw8GbFfpEssdYtGcEkG30m5raWG9Fh2513tdXK57a5ckqCyrL0UTfa9/a8hhidWFn cr/f22s7eR6cHMOArnoYrfA8LPtP+j5QNmGZpYd+RsBFja7fvTaS0OcfU72PPiGucFCdri3em1Q JuefnV2vAE55nQSfNzMwxyJb9b3QvZpAl7gkxQRRi4/PLrNQib0q4XQ7E7YTqKzEGar72mR58nr 9OwO46TWEVauAGhgvg2ry8FSWGSr+Lx8JmahgGJ2+znKRNmnJL2PS+Rvuv545LDxxv2dK1otRQm CAn8U8TiOFVBlinh5cl2ZBGjX5/NxLq80+OLy/eR44GeyqoP X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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@intel.com/ Signed-off-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong --- 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/panel/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 backlight_device *bl) return mipi_dsi_dcs_set_display_brightness_large(dsi, brightness); } -const struct backlight_ops sw43408_backlight_ops = { +static const struct backlight_ops sw43408_backlight_ops = { .update_status = sw43408_backlight_update_status, };