From d2791ff13198fd38bd8431b91447d2f89fd30173 Mon Sep 17 00:00:00 2001 From: Lipsa Rout Date: Mon, 18 Jan 2021 22:36:59 +0530 Subject: [PATCH] disp: msm: dsi: Update ctrl & phy refcounts for defer probe ctrl and phy refcounts get incremented even on deferring probe for display panels which need backlight through wled.As a result, while probing, it considers that the device is already in use. This change decrements the ctrl and phy refcounts for defer probe. Change-Id: Ica1f5712dd28ed4c635946f2ac89d5f4f074a4c5 Signed-off-by: Lipsa Rout --- msm/dsi/dsi_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index af405275e11f..63ba00ca1bd0 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #include @@ -5689,6 +5689,8 @@ error_ctrl_deinit: display_ctrl = &display->ctrl[i]; (void)dsi_phy_drv_deinit(display_ctrl->phy); (void)dsi_ctrl_drv_deinit(display_ctrl->ctrl); + dsi_ctrl_put(display_ctrl->ctrl); + dsi_phy_put(display_ctrl->phy); } (void)dsi_display_debugfs_deinit(display); error: