]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Simplify the code to get the number of read byte
authorHai Li <hali@codeaurora.org>
Wed, 29 Apr 2015 15:39:00 +0000 (11:39 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 14 May 2015 20:57:25 +0000 (16:57 -0400)
commit48c2a461abcbde19efcbe2d099a4d0afaf3aba86
treeea983e4e0a0cd01ca1f057414f21f38e931f0a96
parentc6219c33a18dd979902512f7dd86d0fe246c91de
drm/msm/dsi: Simplify the code to get the number of read byte

During cmd rx, only new versions of H/W provide register to read back
the real number of byte returned by panel. For the old versions, reading
this register will not get the right number. In fact, we only need to
assume the returned data is the same size as we expected, because later
we will check the data type to detect error.

Signed-off-by: Hai Li <hali@codeaurora.org>
drivers/gpu/drm/msm/dsi/dsi_host.c