Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2574672pxb; Tue, 19 Jan 2021 00:05:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqeaGdEfpiesaMoRPVpaRLpcxHzuc0dbB1uidMeDEqCiYCdv93z1RoNfzEK4vcu67KaCHB X-Received: by 2002:a05:6402:5107:: with SMTP id m7mr402021edd.52.1611043523301; Tue, 19 Jan 2021 00:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611043523; cv=none; d=google.com; s=arc-20160816; b=xtkKqBudDg+iOPruFUvlgaViZbPyVqZ7atGKgs4tqog9CYZwH6cddb5/QX9vEmhWUY u1C8Slw8KbSYU+eqn3RUncf68galK40U0GGfMit4Cal2mJ36TafpvKKcEg3N28dykKW2 8b8Hp+9GNxbE0SlAbd8OEYktJfbnfBY2Y19Kq+4jpNH2oAxc+YdOOW+acUsRTowhR/lZ Nwlnq7jq39shmXb7fAXgsFev19pfWMasrXzDkoAUvJfZKt9nDh2MerHgrn7fUI+Z9iaL EXlmsdWPtoiDO2fZTKlivWc1ak575l1qVFAtJ+kszCkyLchcP4r+g7lI5415dVFhXjbx NohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=N3oQVFDD2OO6IL6zbge+VvrfxMcHQq0KNtK/qBzCFsc=; b=CR5sjuCXt6xG+CFdCgEhctuO+abR9Uxf1mr+r6Zg9dgd+n5i6Tb8Hw1u+mFks6/61S E35pjOvw5Ngj8vSlgMKWB4nzYHyDGTdbd2Fe4cuNsVItGFjbs7yvVGgcP6QugoOZl7UR BmOh7PrtwVOnKds8fpr4H4OoDJ4AJZhKvZZqRK1RK2DJOdQ9stM556roGI/Mq4PauGBM j4NtIbei8pPUR4qHB/M8PM1qfWXAuOkvltq2CNQ6loSz1U+6+LQ+sWSuO8IuYhxhv//I o1etYM7Au220lAd3DDOsEVsO65UAvLyL225OX7oeuuoKDHeIBM1yaDllqfRITlZDG6Xh 44VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztMy3qng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si159131ejj.71.2021.01.19.00.05.00; Tue, 19 Jan 2021 00:05:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztMy3qng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730000AbhASIDp (ORCPT + 99 others); Tue, 19 Jan 2021 03:03:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731011AbhASIAZ (ORCPT ); Tue, 19 Jan 2021 03:00:25 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B0A6C061575 for ; Mon, 18 Jan 2021 23:59:44 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id f1so6255121edr.12 for ; Mon, 18 Jan 2021 23:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=N3oQVFDD2OO6IL6zbge+VvrfxMcHQq0KNtK/qBzCFsc=; b=ztMy3qngkDrMUnpW5LjO0RrtrW1+iO2EdZShwfH9OGMSMH1DvX8DQl+t01HMwzpJcd zaDeTr+WAOP4d18I1QDsXKWPfXYmE1iXnTUigTuVREC3O0M4ZwB7Rih1hCaWxHh5eG6f 702D3bKFvM9Ra+N7y0Ya6uiUKMCrE30Bvq7m0Kf5hS9JkuoV5kN6QUBqB9krrrKcqEoE CYjklsphNbYBh4OvltSurGJ+9aJY1P2R2flzdNtQlXXee958kkQZjDGQTnZI8XGV4gCS 7BNaN8FOGIhMFLch9amf/WCo5vQ32KXDkNtLk8Nj5vZvB0ljyaNXyECurpaBjbxWfAhx NaCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=N3oQVFDD2OO6IL6zbge+VvrfxMcHQq0KNtK/qBzCFsc=; b=AqBoQd/R40B32N/U6Z6bHCBcDMcW/JxtjRIiLGi8PtiJFkL7/Tj8cNt4niRD3GEhkK T5oMQ2WYM+X8HgWPuiqE1yEPgf7FqeSVuWNLOrAKCpayYrTyIHZiarCT9nIkJQTYpw8n lopiTznPami8QacL6bVOJFZWClub+Vxcmi8cFo2h7nMDlLXFSzY/Lh1gShjGeyXsF1r9 afhb06Tf8Udk4nebopCKbgdbwxjTv8GjYXhFlmSAutoidoHTTe2R+Gv8ZQ2TaVtv1HwQ 2cgd1D46TCW0kjSqUCI2zGpSuteGPglTzqHwjxB6T/s9iv/wropocdnCjciR63i1YwZ4 GC6w== X-Gm-Message-State: AOAM532aw2x37jzLwdCj5hvM7vPV4y+Am7EKe+u8CQhXrIz102oW1RkX 9DSkxYQ+Z86qfEVCsQSY6UBzVw== X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr2445194eds.252.1611043182809; Mon, 18 Jan 2021 23:59:42 -0800 (PST) Received: from [192.168.0.3] (hst-221-113.medicom.bg. [84.238.221.113]) by smtp.googlemail.com with ESMTPSA id p3sm11731346edh.50.2021.01.18.23.59.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 23:59:42 -0800 (PST) Subject: Re: [PATCH] venus: core: Fix platform driver shutdown To: Shawn Guo , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , vgarodia@codeaurora.org, Mansur Alisha Shaik References: <20201221095820.27192-1-stanimir.varbanov@linaro.org> <20210119074044.GB17701@dragon> From: Stanimir Varbanov Message-ID: <72d85c1b-ec0b-3cf1-dbbc-6c4924e4beec@linaro.org> Date: Tue, 19 Jan 2021 09:59:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20210119074044.GB17701@dragon> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/19/21 9:40 AM, Shawn Guo wrote: > On Mon, Dec 21, 2020 at 11:58:20AM +0200, Stanimir Varbanov wrote: >> With TZ system reboot cannot finish successfully. To fix that >> enable core clocks by runtime pm before TZ calls and disable >> clocks after that. >> >> Fixes: 7399139be6b2 ("media: venus: core: add shutdown callback for venus") >> Signed-off-by: Stanimir Varbanov > > Hi Mauro, > > Could you help pick this fix up? Shawn, it is part of linux-next already. > > Shawn > >> --- >> drivers/media/platform/qcom/venus/core.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c >> index bdd293faaad0..7233a7311757 100644 >> --- a/drivers/media/platform/qcom/venus/core.c >> +++ b/drivers/media/platform/qcom/venus/core.c >> @@ -349,8 +349,10 @@ static void venus_core_shutdown(struct platform_device *pdev) >> { >> struct venus_core *core = platform_get_drvdata(pdev); >> >> + pm_runtime_get_sync(core->dev); >> venus_shutdown(core); >> venus_firmware_deinit(core); >> + pm_runtime_put_sync(core->dev); >> } >> >> static __maybe_unused int venus_runtime_suspend(struct device *dev) >> -- >> 2.17.1 >> -- regards, Stan