]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Get byte_intf_clk only for versions that need it
authorArchit Taneja <architt@codeaurora.org>
Mon, 12 Feb 2018 06:31:07 +0000 (12:01 +0530)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:22 +0000 (10:41 -0500)
commit92d6e2a245b4e747695c07b6ad44b81611eb2551
tree2863933fa68cadae2d78e7c95df9b272f4491ab4
parent7e5b4e77f0d5d02f5c4caa702e88390086f61e2b
drm/msm/dsi: Get byte_intf_clk only for versions that need it

Newer DSI host controllers (SDM845 in particular) require a new clock
called byte_intf_clk. A recent patch tried to add this as an optional
clock, but it still set 'ret' to an error number if it didn't find it.
This breaks the host's probe for all previous DSI host versions.

Instead of setting this up as an optional clock, try to get the clock
only for the DSI version that supports it.

Fixes: 56558fb ("drm/msm/dsi: Add byte_intf_clk")
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c