Message ID | 20191023120925.30668-1-tomeu.vizoso@collabora.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp626670ill; Wed, 23 Oct 2019 05:10:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbglwRx52R3alK+Rt9f25ajeZnGsRdkfzsJ3wXacM01E2TCWo92ApifaEI4IA7rMwciiHp X-Received: by 2002:a17:90a:a00e:: with SMTP id q14mr11414293pjp.132.1571832605003; Wed, 23 Oct 2019 05:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571832604; cv=none; d=google.com; s=arc-20160816; b=OAghkBpewoHz8j47/WWV9bGpzLYni/Ywi4XusAjYGgNvDc0XrBWUhXwtrmmDzU7S2p ULS1qTMWOyASWoziUkkRa2jb2LJL30Z7c88Q+3w2+RBJ9qg47UHoGWaaxuU3+DCcQlRy kaDypRI3VAPFTBSurykYy47Bq824RuHQ83EeSqmIGUHurivWcIA9RAcn+jI/9xf58bKA 0tWwmGEDWZjYwF6u/sO11yL9Xpkct2Acf4+RI/2wiTxHViSWLbNE+NwRnruH2su2DKFc L8uVD6v20gSWymMpDk4w6jM24dqFzWvN0gnYRIdQrXw3o/XD2GQpUMhOQvxx2hOOLI5k j34Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=SlO9II7erjdwHY7N41leKOJqoM3KRQncuRhEjCfrY/M=; b=xJFtswyJXqqIbpBxH6o3PK7Sioj7GLQH/HsoVCW6E5TCXgEz9yStI/pq0tZc+DNF4t 3sJC39EIaAIaQPWY4qqJKvPV3eUy5SPdcJDvpt4sFMzS+T+kgjsV0BUNtvnAalXAh/3V c+DuRCZNMzq9gAso2X4k+TcIl7kdibLuD2eBuVVpvSn0QORWWM4jx4efa7nai8RWkejp r+sMTxvFI5GPlthGDe3NsLe6t29CmqrIfE5DI0HuFoAclLqjdvTErZ9m51+UMs9e3+0j f+9hKtH1abScI4aM2UEG8Kesso0/LgbQJeof1BYX97z5C4B7sLUxFSFp4DrJEU5D6ToJ cYQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c34si22170885pgm.423.2019.10.23.05.10.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 05:10:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ADD4F6EA5C; Wed, 23 Oct 2019 12:10:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id DFEB46EA5C for <dri-devel@lists.freedesktop.org>; Wed, 23 Oct 2019 12:10:01 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id c22so10307870wmd.1 for <dri-devel@lists.freedesktop.org>; Wed, 23 Oct 2019 05:10:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=GCCFnxfgctiR7ujkuq6S73RHOtLBZpaj2MQBUfolKvQ=; b=ho2Gi5YaNiWDETGtExxCtpCL4O80KaNsr2zTR/JIiZERymXmfE7nTR+NoEpj72sUNh +WA26v2x6Vmt1Svfbh2dS+NN0rjTCCmL1mgIWayMWMaVAlM8ahEa4AaST0XBJxfr/N00 FFNnJop7HAG34rC4QjG6POAMg8CdkAeVxLyk2dhDFyH1sBeKSPuvCQwLb8i/U5n08aGn oFN56pUVuO2CE+jYBS7DwKPj2E4/kQIW6vKKzG+9vknUzYwUL/tUCmaRHd/OlbozKSgB lTDGIpV14rV/+aRr5aTHJHQvW2oELD3u8ZVw/i1ewCm+7Xa3JXq6jR4p+grv8BAX88Jk o8TA== X-Gm-Message-State: APjAAAV2y3/oQjOZkETTw8lhX0Ex7cGwpYG3nbQLBUlzgYQxYWWq4vam h58VrvibMywT2h5x0fCrAyg= X-Received: by 2002:a7b:cf30:: with SMTP id m16mr7709573wmg.89.1571832600353; Wed, 23 Oct 2019 05:10:00 -0700 (PDT) Received: from cizrna.lan ([109.72.12.196]) by smtp.gmail.com with ESMTPSA id r81sm15016575wme.16.2019.10.23.05.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 05:09:59 -0700 (PDT) From: Tomeu Vizoso <tomeu.vizoso@collabora.com> To: linux-kernel@vger.kernel.org Subject: [PATCH] panfrost: Properly undo pm_runtime_enable when deferring a probe Date: Wed, 23 Oct 2019 14:09:25 +0200 Message-Id: <20191023120925.30668-1-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GCCFnxfgctiR7ujkuq6S73RHOtLBZpaj2MQBUfolKvQ=; b=uWe4GxxaDPldHT/awU5IWmMXWiJX9zobzCZrqq+ZyDgb8jfdBUOR+PX5YFHdwI5/lC wNpaXg392Vm9jbCkVRfCu90EPUw3QQyy2Ow8C+AlRv+LtV+WVRkv6x/6LrOJr3mL/p8i k+O5wtlrs7XawlVq/0CbZKOc2Csr/QHg9ZqoZzPmac1Moazeg85zhHVWOpabc5VYPTpS R0weZTve0KM/FeioqgXhcJSzVojaVzAWoWKNRSZzVKSS2QdDbHNbaTC9wRwa+vDjDy4b J/vkMN7tTgDu/j6WkExePmXeAWgMxXVGkYUH7BMapWPdxflWaLJ8pBMUvMUmk7ZxTVuJ eRog== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>, David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org, Robin Murphy <robin.murphy@arm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
panfrost: Properly undo pm_runtime_enable when deferring a probe
|
expand
|
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index bc2ddeb55f5d..f21bc8a7ee3a 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -556,11 +556,11 @@ static int panfrost_probe(struct platform_device *pdev) return 0; err_out2: + pm_runtime_disable(pfdev->dev); panfrost_devfreq_fini(pfdev); err_out1: panfrost_device_fini(pfdev); err_out0: - pm_runtime_disable(pfdev->dev); drm_dev_put(ddev); return err; }
When deferring the probe because of a missing regulator, we were calling pm_runtime_disable even if pm_runtime_enable wasn't called. Move the call to pm_runtime_disable to the right place. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Fixes: f4a3c6a44b35 ("drm/panfrost: Disable PM on probe failure") Cc: Robin Murphy <robin.murphy@arm.com> --- drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)