Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1361575pxy; Thu, 29 Apr 2021 05:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyykeeUblAkp9y5eYcRSuxZkSJdnbmW08KLPaAj2qQDP9qOBy5yNDGhBlsZ4tutbD5Qy1+e X-Received: by 2002:a17:90a:ca97:: with SMTP id y23mr31239198pjt.230.1619699952137; Thu, 29 Apr 2021 05:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619699952; cv=none; d=google.com; s=arc-20160816; b=pHnrPoDKHcDxulerVmbfMuK5oSt7S3T91OsU5fsR47ZNwEABW7WkTWTuOQcWENNSLm 8U7si4XEbg6vq1zq1yHcISVWrI1y8TSmFiR258vq22Rn8PrRWS0jdT6doyrBy73H9pcA BgS+CsHWvTWmc7ys1t18paKR96EK5ZtpJrl/NAF4J9VE0BVu/nMVCHMJLRpE1NVBgemC MtSgenvrTlmB3VJgeg8iepSb+Hjji1Qk7eZ7Nj1PomMqUGn0X+XgDera/YQVloK7rTZ5 AhQBzryN4yz33IKdIBwEEpuryxwmaLVC2OPY9Xwm1E1wh6gZC7/wWkT4O5oLiDEd0wT2 q2iw== 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=C9ADd+O1J2g7WPah5TPp1y5aPWH188p57AR71wN8M7Y=; b=WQ8WkydXl/Vlt5B8S8YoOxps0mLRSQ0qwQAqIsr1asunaRuG3itw4mC04RmJ8y/DGt eMzbZh/XNzQ/zNYNIoqhixcyMZsAeWHE+4LJuuWwxU+kxqeGPpcm9kf6NH1h/iJv6kQW 3r/lzi0/0BfAomHjMJObwIedgyr2C3tZJBpDxIv9+YSW9cyBCY6TmmgxATFw9v6GkP9P q4lSL2AZ715EMWwGlLDwquK2MqLmSehf70HC/sNcPD6KxlEFmgfvZau71ToKXdvievIx Pn4c/PHzZf5MNglGjxhcBWwvtD4IM2YMWgy42ePX2x0RZvZLr0FbOvikaGq7+42sQ8h5 MMhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jNb3LRND; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si3401640plr.95.2021.04.29.05.38.58; Thu, 29 Apr 2021 05:39:12 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=jNb3LRND; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234525AbhD2MjG (ORCPT + 99 others); Thu, 29 Apr 2021 08:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbhD2MjG (ORCPT ); Thu, 29 Apr 2021 08:39:06 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B54B5C06138B; Thu, 29 Apr 2021 05:38:19 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id b21so3762335ljf.11; Thu, 29 Apr 2021 05:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=C9ADd+O1J2g7WPah5TPp1y5aPWH188p57AR71wN8M7Y=; b=jNb3LRNDZRY9dtWQ93oZg3Us255+OUEcb5r+MjK5sgkqGm7K9ak2patahQ6FZcQ4SG 28gHOMaQhLQK4D5cZpgiMVK1xT5XaPCU5pkFtSOVIMAZQ9BBiOgPnc/cXivzWcDrNz2i H9506pQwYfGU9WiNOhZ3cIL0FTWvHooUSMBpK5u6BPyF2ggTLCQG09bdSv95I1JnkX3g nh3pI0amvi5YoTJBsug51S7QoV+mrkdy5sDhpRttOD/vmKonfuRbaUBS+GKkabP6a7Az uTEygRG6Qdg7dwzw0ebu4kUpHrNm2Jc9NyFuOLXfFVRJyurvbkzpJUP+ZLKUZztvchJ2 eX7Q== 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=C9ADd+O1J2g7WPah5TPp1y5aPWH188p57AR71wN8M7Y=; b=Mm9rHTI72nTTyaQzdJGEmKuoNrI/jp4EG2F7DanwU9C+0/F+sQBAk/Xf1clfXU02X/ +l8H4sKrAZvMPMofSR+4/fGpeNBMuemSaYoxa8J9+aP20lz+F+mpk8Jwe8t+XtxyNmtF xOR8CW3Sp8WLF+oPxl1m8nmM5Vu6xISI/Dwhov619MZF36BqEQaCS1uOn2A72blmFrW+ A03w+1PDvX06uY5iDGJjTY5KVWIquZpgGCXxq7rJ88M3Gv4Y0piGe7XfY8bdQABppbmB ntswtyKkpFgypWAoB8B8m2nwGVytgl6orrj0lFoIXwVgnM9V56M1VyvsXHvHE03MzG9I y5iw== X-Gm-Message-State: AOAM531Xb1KTWqW1fdbWLTTHfNpBSwFHLXeEnGjj9hvKIZ4q6kvANgFV gXOkDwtyTPW+lZdlstvJmJcHF5p3tcI= X-Received: by 2002:a2e:140b:: with SMTP id u11mr24386345ljd.125.1619699898040; Thu, 29 Apr 2021 05:38:18 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-102.dynamic.spd-mgts.ru. [109.252.193.102]) by smtp.googlemail.com with ESMTPSA id v130sm515026lfa.262.2021.04.29.05.38.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 05:38:17 -0700 (PDT) Subject: Re: [PATCH v4 25/79] staging: media: tegra-vde: use pm_runtime_resume_and_get() To: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Greg Kroah-Hartman , Jonathan Hunter , Mauro Carvalho Chehab , Thierry Reding , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org References: From: Dmitry Osipenko Message-ID: Date: Thu, 29 Apr 2021 15:38:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 28.04.2021 17:51, Mauro Carvalho Chehab пишет: > @@ -1069,11 +1071,17 @@ static int tegra_vde_probe(struct platform_device *pdev) > * power-cycle it in order to put hardware into a predictable lower > * power state. > */ > - pm_runtime_get_sync(dev); > + if (pm_runtime_resume_and_get(dev) < 0) > + goto err_pm_runtime; > + > pm_runtime_put(dev); > > return 0; > > +err_pm_runtime: > + pm_runtime_dont_use_autosuspend(dev); > + pm_runtime_disable(dev); > + > err_deinit_iommu: > tegra_vde_iommu_deinit(vde); This is incorrect error unwinding, the miscdev isn't unregistered.