Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2317674ybc; Sun, 17 Nov 2019 18:49:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxzyRtakKClGg5889vwJWxrzQEVKGU03/hbZ5d4XXnCCzeDfZIBFoeK4alX4s8YFFdvQb5u X-Received: by 2002:a17:906:69d2:: with SMTP id g18mr22477031ejs.153.1574045384057; Sun, 17 Nov 2019 18:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574045384; cv=none; d=google.com; s=arc-20160816; b=vjU2YPF0uPfp172mM5wuiw1v/1EKdVC3Zk8EvSKrv/Qwp0wYni7ScnR0SA+OKjPwv7 H+OGBx3jpCYBr9cX/VvfnzcgwJHccMqqSA3ohgsmyznZOuQamqRZj29lzI9gfrayBVo1 CXqMAcatYojZAs3itb49lGgYY3thBCkvVlscs03c8yuDS5oAUwOjTS/7676H1FntkzEV DohAmonsP0nw9QS/ahV/iOpBK2JKFRfa7IZA7eh+FzXYq6xFDmrGFbg8e0GaFNRhx+rl tcoDwsH5ywcXw+IUEYkU613brrZNb4EJ06sIvvyAe/TKQxY/Hbs4hmUQDAHodCuRzq6X B6CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=3kl5ahZw2sQnevip0m9byS4aFaaYYEpVFO0JkWfU568=; b=SoW0+JgjSMLndeWGP4MkJLdZItBzTROHydNAQJrKRzx12gtpcpd+CT9m7OP2qUhRAj l2EgL6rk8JHDpK0/dobDGkaQqlAnjhwIl9A5wdNiMOTRVlTCEOI0hjvomJ3wAgL/jKEX 3m2MDVSIpb+i8Rf5FDpRFIUhbqqhXxmWbQgD3QZU9nDh7InaSCX1e8GdZoCmRnVWHals XIVqzx9k+Pgkw729XeVQmvc/41GOaB8iAPSXu6nUCJSp9ZT2jo1iPDlfnZuB71a1L88I h3kU2y+eO4d55LFyaldusX5pgyY3rkHpEGFDj2AY/cZqI4bpWzrV8J63Ffr7/Sucb0vr 9OdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tub8CI3C; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x31si13027263eda.334.2019.11.17.18.49.20; Sun, 17 Nov 2019 18:49:44 -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=fail header.i=@gmail.com header.s=20161025 header.b=tub8CI3C; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726481AbfKRCsF (ORCPT + 99 others); Sun, 17 Nov 2019 21:48:05 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44872 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfKRCsF (ORCPT ); Sun, 17 Nov 2019 21:48:05 -0500 Received: by mail-pf1-f193.google.com with SMTP id q26so9591399pfn.11 for ; Sun, 17 Nov 2019 18:48:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3kl5ahZw2sQnevip0m9byS4aFaaYYEpVFO0JkWfU568=; b=tub8CI3C2kZF7VVfdEZdXWUm8Dt6YYRt0JM2LJ9MVDoSYCQ7LSblnmcfTyOsaR+qGW h8JhSZ1pG97f9SiDEf/aiJXeni+wSrKf4hl371gAT1eEdthYNLPeJ98HkQjsFIp1FUU4 RcjXEPXWFyZg0LvuhJV5AcB8xVfB8qv0jj9xR8A8Jtk6F79yHorUhwlWKHSB3sFErJLq r7MP4nPkmgTKQgzksGYYBeUZVnCiqS0IHcqdSAVGlZ1s/QATv6gdp3+lkE/cV7YlvIyM aVoF91H0071Idd+txdFXk/z/n245IoNWUSHFHoSylBTKDZKBXLNEFBu76uTntAUv47la B35w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3kl5ahZw2sQnevip0m9byS4aFaaYYEpVFO0JkWfU568=; b=JcVywas9D3Eqin6Mw897BItFv5gxB2EDxgXGNO4IAOloRCdDy3wrAdEl75AUqtzZWG Bx+I6pED9bCftRJYIpfMXyJzscSAGnhuaXGfrKBbKncukJnCblKuVLKlBU5S9Y1haOX9 FBjGyekZuVH9Gcht5g9dpl2u7x/Ecn105OWJTFRnoeI3Wa4GcYzAhvvpRsMcmVZy43em uoRBeLxp5wBLA4/a9Dk1/EkcMz37czf9/oy5MdgQPs/pEVThlvAmv7Mzun9Oceat1Ck1 0HLmhpfbNE6VqN06/fJMmU7R33vJ/iurmL8YTqhKgftV7zrqcc5B6081GYaRh/zjaQzt MpeQ== X-Gm-Message-State: APjAAAVJ2GxiqQ1diZ2+gdhrcyf5cOeZOQ1eA3IE5/8XYxzuwaWB9ias QJmaN5H8TBWddyw13cahTfc= X-Received: by 2002:a62:7643:: with SMTP id r64mr30020700pfc.191.1574045284995; Sun, 17 Nov 2019 18:48:04 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id r16sm15576124pgl.77.2019.11.17.18.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 18:48:04 -0800 (PST) From: Chuhong Yuan Cc: Eric Anholt , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] drm/v3d: add missed pm_runtime_disable Date: Mon, 18 Nov 2019 10:47:55 +0800 Message-Id: <20191118024755.21456-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver forgets to call pm_runtime_disable in probe failure and remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- drivers/gpu/drm/v3d/v3d_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/v3d/v3d_drv.c b/drivers/gpu/drm/v3d/v3d_drv.c index 3506ae2723ae..e109bb8cd67d 100644 --- a/drivers/gpu/drm/v3d/v3d_drv.c +++ b/drivers/gpu/drm/v3d/v3d_drv.c @@ -333,6 +333,7 @@ static int v3d_platform_drm_probe(struct platform_device *pdev) dev_destroy: drm_dev_put(drm); dma_free: + pm_runtime_disable(dev); dma_free_wc(dev, 4096, v3d->mmu_scratch, v3d->mmu_scratch_paddr); dev_free: kfree(v3d); @@ -350,6 +351,8 @@ static int v3d_platform_drm_remove(struct platform_device *pdev) drm_dev_put(drm); + pm_runtime_disable(v3d->dev); + dma_free_wc(v3d->dev, 4096, v3d->mmu_scratch, v3d->mmu_scratch_paddr); return 0; -- 2.24.0