]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Fix bug in dsi_mgr_phy_enable
authorArchit Taneja <architt@codeaurora.org>
Thu, 16 Feb 2017 10:59:04 +0000 (16:29 +0530)
committerRob Clark <robdclark@gmail.com>
Mon, 3 Apr 2017 20:09:35 +0000 (16:09 -0400)
commitc9ac9e7200dc5503fbb9b24bf02c02c3dd9d4d78
tree19553e8cd538940955c4187ce3cb34cf1e70edfd
parent846465951c1818ae3b81a8a9fe993dc11367d1b2
drm/msm/dsi: Fix bug in dsi_mgr_phy_enable

A recent commit introduces a bug in dsi_mgr_phy_enable. In the non
dual DSI mode, we reset the mdsi (master DSI) PHY. This isn't right
since master and slave DSI exist only in dual DSI mode. For the normal
mode of operation, we should simply reset the PHY of the DSI device
(i.e. msm_dsi) corresponding to the current bridge.

Usage of the wrong DSI pointer also resulted in a static checker
warning. That too is resolved with this fix.

Fixes: cf263b8d63bd (drm/msm/dsi: Move PHY operations out of host)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_manager.c