Patch "drm/bridge: anx6345: set correct BPC for display_info of connector" has been added to the 5.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/bridge: anx6345: set correct BPC for display_info of connector

to the 5.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-bridge-anx6345-set-correct-bpc-for-display_info-.patch
and it can be found in the queue-5.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c96c1c88e14bda56156e8e05211389d0cc740c15
Author: Vasily Khoruzhick <anarsoul@xxxxxxxxx>
Date:   Sun Mar 29 15:22:53 2020 -0700

    drm/bridge: anx6345: set correct BPC for display_info of connector
    
    [ Upstream commit 1e8a6ce9186dbf342eebc07cf14cae5e82164e03 ]
    
    Some drivers (e.g. sun4i-drm) need this info to decide whether they
    need to enable dithering. Currently driver reports what panel supports
    and if panel supports 8 we don't get dithering enabled.
    
    Hardcode BPC to 6 for now since that's the only BPC
    that driver supports.
    
    Fixes: 6aa192698089 ("drm/bridge: Add Analogix anx6345 support")
    Signed-off-by: Vasily Khoruzhick <anarsoul@xxxxxxxxx>
    Acked-by: Jernej Skrabec <jernej.skrabec@xxxxxxxx>
    Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200329222253.2941405-1-anarsoul@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c b/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c
index 526507102c1ea..8d32fea84c75e 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix-anx6345.c
@@ -485,6 +485,9 @@ static int anx6345_get_modes(struct drm_connector *connector)
 
 	num_modes += drm_add_edid_modes(connector, anx6345->edid);
 
+	/* Driver currently supports only 6bpc */
+	connector->display_info.bpc = 6;
+
 unlock:
 	if (power_off)
 		anx6345_poweroff(anx6345);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux