Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9668254imu; Wed, 5 Dec 2018 08:24:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/UNBTP3704id17GUjyBkZtQF9VHmYqk8InKxPkunBPNlow8b72KEgi9B3ngbBL1A2tzEmHI X-Received: by 2002:a62:5658:: with SMTP id k85mr24815367pfb.231.1544027072132; Wed, 05 Dec 2018 08:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544027072; cv=none; d=google.com; s=arc-20160816; b=S1mnFAQ4Dvcu6TX4gOu38T//uUs7wZHXmLQkftpaiRKDkI2gasg+LszzIXejtb9m8c He6i7ZTAECfv9uaOoy44FxN9zPISzvalxD5n5UoPc4cd/kTTD0mTwHK2EG6AkKfZtK7Y r5MPa9i3MBSjtslbfbbRLrLeZ/kU37KPp+X/jfcih7wx971hntboeF+38NEtzEjODN+/ ocjXjDsZRrB1XwLMkqTCvhmbaxve46NRG5p1zZX8Xs2gMvdJeJz5/5KpFZteYyBjkbQe 0YBbJWhaM9uVEjOPaeTxNo5z0Ouh06DD+7/b/iBC0N95i4I7pPwIklly13YGHBre5uMS Xuag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=hFoMTH7sG6EW2f+eY9RAVp9QRO6A7+Z7Y4txJhBp8DY=; b=N9e+v++TXsyPsS3sjYwCqo7A/817EHFLzi1k0XfZfXUejSXLAU5SCg8y4eDHKxJ8pd EfVtqPdfHwyInuH2IleMJZet+683FT2M8VAlk1BZsShojDAELPGl0EqRdySLmSPPsQU+ zrHHx92XIq4m/q9IlacP43nw7AMeIwjiQ1HCCjoQW6w5PSEWL7OBSgNXqU5Mx4aabiRp GPQfGFhUwaCK2vQgDY2CfQtkyqW79a79l1Lig/iHKMq3ou2koKtl2CBwIH8/MTSzfRPl gC+9MwKBg3cffqRMie+Fnb5hprx7lBfP6lRUgrtOj2x1Z52MTKPslkhwW/VPZ2LDdtDm WOpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZTOmQ0Qs; dkim=pass header.i=@codeaurora.org header.s=default header.b=JK1xGisM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si20057731plo.89.2018.12.05.08.24.16; Wed, 05 Dec 2018 08:24:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZTOmQ0Qs; dkim=pass header.i=@codeaurora.org header.s=default header.b=JK1xGisM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbeLEQWC (ORCPT + 99 others); Wed, 5 Dec 2018 11:22:02 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35294 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbeLEQWB (ORCPT ); Wed, 5 Dec 2018 11:22:01 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AF1E960C1C; Wed, 5 Dec 2018 16:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544026920; bh=kvCt3SuTMuZdWz/uLsRJirecDdhJBovv4uJKG7NipNw=; h=From:To:Cc:Subject:Date:From; b=ZTOmQ0QsAfOwP7C+qPgDtX+y++0xM6BnYhmFw+iXb2X6ykX50EwXSsPWiuK/1ek+t ategsB7hcTiOm6m8R2F3a1+ex/fzIF4RGJP3X9rJ2j6gF73umja488hOgJPbbZJ5ws mSyKlRynwRl3CkxdmlqSjlSs5nwycNrthriaOQPU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jshekhar-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jshekhar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 18E42613D3; Wed, 5 Dec 2018 16:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544026919; bh=kvCt3SuTMuZdWz/uLsRJirecDdhJBovv4uJKG7NipNw=; h=From:To:Cc:Subject:Date:From; b=JK1xGisMV10MCcHa8uj8XyqbdhPhcSaDg31efu7Q5lX5sckIGueC3UQ8ehH7hstYn gSPpio6hg56ZV6m9BeJozwGJmCxfkBfw66Sh0HysdAL1qUgBsCbiMLDUUqDpQiF3A1 9wkM6p0F5gbsv6eQa7CzxwazXQaMgDDX6PoBV6XA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 18E42613D3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jshekhar@codeaurora.org From: Jayant Shekhar To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Jayant Shekhar , linux-kernel@vger.kernel.org, robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org, abhinavk@codeaurora.org, jsanka@codeaurora.org, chandanu@codeaurora.org, nganji@codeaurora.org Subject: =?UTF-8?q?=5BDPU=20PATCH=C2=A0=5D=20drm/msm/dpu=3A=20Fix=20clock=20issue=20after=20bind=20failure?= Date: Wed, 5 Dec 2018 21:51:47 +0530 Message-Id: <1544026907-24267-1-git-send-email-jshekhar@codeaurora.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case of msm drm bind failure, pm runtime put sync is called from dsi driver which issues an asynchronous put on mdss device. Subsequently when dpu_mdss_destroy is triggered the change will make sure to put the mdss device in suspend and clearing pending work if not scheduled. Signed-off-by: Jayant Shekhar --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c index 2d66025..030229a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c @@ -191,6 +191,7 @@ static void dpu_mdss_destroy(struct drm_device *dev) struct dss_module_power *mp = &dpu_mdss->mp; int i; + pm_runtime_suspend(dev->dev); pm_runtime_disable(dev->dev); _dpu_mdss_irq_domain_fini(dpu_mdss); free_irq(platform_get_irq(pdev, 0), dpu_mdss); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project