From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384295; b=FblY5CSzDupeM0MRMlKjwnqicamadnux9+qxFp89xUQAtqDylqpxv/DT1Whi/KYHKOk2 gcfks6G5h4QXwPtHK9qbS2iTdScBSKndYQP+nWmygmG3T+FwKG00xAI2B95WfoZ0L/kiE bZpH/4cBcDPg0iVhcbr4CIBMwRxpFKlLW5StBF7X1/KF/vCHlsCjnRxdXMjlNX0/CxqRH CbNZqSGTuUI3UcOLRfvXOhciTY2UwdcNDqQP1bTLDUJRjiOowi0b9UQvDlq2HwBX3W4+o +RLZFilm2M/pHHOL7PZV/oaUGNOAUbW3J4qHYKgtRY/CcosTqL1IuoYNzLeHOl71vUQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384295; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=2+f9odLCJK2TlPI3Aq8sgcvl0QGsP7Yqmt9oaLhcOFg=; b=1jJ0PFP9YatmhVa4gFdQPKEdqEXKf1wT9jbTbZuL1nihdRp1IFRrfMl48kFMUCHsnF/m KHN0HE8Z/vHiipXgbZcjskWjzpzqLGQj0SkrONGcue/ot5hxnBNwo2AfSvpErq8HIEcB6 DHQGgkjLhmMQbTVTU4rhbmXyM21rSVI8HSEUhFZ792guxRXtet4q0c1DFMSdml241tYK6 hgqTX3Squ1syZUB+Re5EuYtvmL26KSn5xOKSEfsL4gwO7gClQeMvwbxT/hOgoxJ+sluZr 0/FiGixtgEtGewAkUR1mDPLpSVQBjKLRzIHgZlKbyvdstQFOWGsZVXty8U8/WnLdYrA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=png4VV8a; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7AC0606A32C; Fri, 4 Dec 2026 11:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=png4VV8a Received: by smtp.kernel.org (Postfix) with ESMTPSA id 621B11F000CE; Fri, 4 Dec 2026 11:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384294; bh=2+f9odLCJK2TlPI3Aq8sgcvl0QGsP7Yqmt9oaLhcOFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=png4VV8aQ2HKfAQhSy36G6mPrbSxu6nITCBvVadbkGXjIEqBs+1qRJAc1NAg56+XB wSlmZnWXacb4AnDoD869SRw8KbAVc5KPJO/3TJWYgtJIL+o+ADhwkxObQ57YSfSPZU 1G7MC4wOhYF4usxIY9NyczUp3tf3BhMS4jIrf4EU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vladimir Zapolskiy , Neil Armstrong , Sasha Levin Subject: [PATCH 6.6 0090/1167] drm/panel: visionox-r66451: Send the brightness value MSB first Date: Fri, 4 Dec 2026 18:51:57 +0900 Message-ID: <20261204100704.441979062@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vladimir Zapolskiy [ Upstream commit 00fe6be187ffde738fdb71ea7deb671fc939e583 ] The panel expects to get two bytes of the DCS Set Display Brightness command with the most significant byte first, and it uses the lower 12 bits of the value, use mipi_dsi_dcs_set_display_brightness_large() to correct the programmed brightness values. Tested on the SM8350-HDK display card, the display brightness increases gradually with: for v in $(seq 16 16 4095); do sleep 0.1; \ echo $v > /sys/class/backlight/ae94000.dsi.0/brightness; \ done while without the change the display is dark during all writes. Fixes: a6dfab2738fc ("drm/panel: Add driver for Visionox r66451 panel") Signed-off-by: Vladimir Zapolskiy Reviewed-by: Neil Armstrong Signed-off-by: Neil Armstrong Link: https://patch.msgid.link/20261101212458.2431191-2-vz@kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-visionox-r66451.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-visionox-r66451.c b/drivers/gpu/drm/panel/panel-visionox-r66451.c index 00fc28ad3d07b..5df24372d510c 100644 --- a/drivers/gpu/drm/panel/panel-visionox-r66451.c +++ b/drivers/gpu/drm/panel/panel-visionox-r66451.c @@ -270,7 +270,7 @@ static int visionox_r66451_bl_update_status(struct backlight_device *bl) struct mipi_dsi_device *dsi = bl_get_data(bl); u16 brightness = backlight_get_brightness(bl); - return mipi_dsi_dcs_set_display_brightness(dsi, brightness); + return mipi_dsi_dcs_set_display_brightness_large(dsi, brightness); } static const struct backlight_ops visionox_r66451_bl_ops = { -- 2.53.0