diff options
| author | Venkata Prahlad Valluru <vvalluru@codeaurora.org> | 2019-07-19 15:10:53 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-01-27 00:33:55 -0800 |
| commit | 54ba41b1e5d870b7d50396848bc1b32787d770c9 (patch) | |
| tree | 63f13afae1591307f78eb983573c6c8948102722 | |
| parent | f1a61bc4b50922e542f3af2d0325198268520884 (diff) | |
msm: mdss: mdp: fix parsing total number of displays
Interpret each interface of INTF_SEL register as 1
instead of respective byte value.
Change-Id: I475d9d7770ccfb444264d872f7b279b518e6c1b3
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c index a77e5c4435bb..98172233b5aa 100644 --- a/drivers/video/fbdev/msm/mdss_mdp.c +++ b/drivers/video/fbdev/msm/mdss_mdp.c @@ -1,7 +1,7 @@ /* * MDSS MDP Interface (used by framebuffer core) * - * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2007-2019, The Linux Foundation. All rights reserved. * Copyright (C) 2007 Google Incorporated * * This software is licensed under the terms of the GNU General Public @@ -3117,7 +3117,8 @@ static int mdss_mdp_probe(struct platform_device *pdev) MDSS_MDP_REG_SPLIT_DISPLAY_EN); if (intf_sel != 0) { for (i = 0; i < 4; i++) - num_of_display_on += ((intf_sel >> i*8) & 0x000000FF); + num_of_display_on += + (((intf_sel >> i*8) & 0x000000FF) ? 1 : 0); /* * For split display enabled - DSI0, DSI1 interfaces are |
