Message ID | 20210320115603.183083-1-festevam@gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2124990jai; Sat, 20 Mar 2021 04:56:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9h+m8Px5lD3mcSwiqys3YtmpqlwPJjtQrDVWKe3+ifnu82G0BH09V2pvKuBU8Kzd6FW/y X-Received: by 2002:a63:5b57:: with SMTP id l23mr15414320pgm.445.1616241390556; Sat, 20 Mar 2021 04:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616241390; cv=none; d=google.com; s=arc-20160816; b=P8K3u92jYzBBtHRb0CTHQDRpMytoqF+hz/RkmErwNtCo6xNFVHwANs9bk428Rm9xgL XPOb4lndPpWt0XkJ5Ny4nxGFrEiTT4+kvv+OTIHLyJvoBsUncGcQTbtP0z4FiUJFcY2b ucwFAqFGgFp0inxXZ3pldH7+nxbjLhILMQKaUry1G3gsFvnvcg7VarL7ofaBik8JWGzk 2Gwp4BrKER3CmpQie70XlchoCefS61SuFmyXxRl1JPEYBiLg8dkmF3cVX9JNX0xM5B/G 9hc+ixhydAB71/2Xuwz4hMjoHG9PRr/FIg9/x68I88p5fSdzQaYa/3f1e+PPVE0aWEEz /OkQ== 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 :dkim-signature:delivered-to; bh=Q/NZKq9Gpxt8HkbRxjjUOAcX3Z4RVkRzdAte6KJW31I=; b=KD5OnrX0Mxhb+FstbA2t10ruGOcLfxKueaJ0aNBZi4Cp1pVg/5XuTEkGi+6VzmL1oR XLNe1P10RHIPmwOHACLhHqjCt4LUH8ZgCZvpkQuWZONworL3aWhVQC9xZMGsnmi9oC87 icDr1HmAKy4kzjkwBSlQjWcUfbKduFq0XoAF+31+QTfheiCRaoHMvsqvMECBGI+wk7lh EwwHRf0rLR8yU57bNxA7qvweDuC0gUg7b6rL1GdkMN2E4YnbmB9qr0BiwagdhvuPO8td gXVaFOWNaMqoYI7ZQrEvBhOMoXZh7RyvJ7f0mUpjvZF/MYtBrj23H4g+lho5Wf97W4wH OuZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="Dp/Z8+w+"; 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=QUARANTINE dis=NONE) header.from=gmail.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 l7si7964504pgj.479.2021.03.20.04.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Mar 2021 04:56:30 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="Dp/Z8+w+"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 145D96EB5B; Sat, 20 Mar 2021 11:56:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 960606EB5B; Sat, 20 Mar 2021 11:56:25 +0000 (UTC) Received: by mail-qv1-xf30.google.com with SMTP id h3so6371054qvh.8; Sat, 20 Mar 2021 04:56:25 -0700 (PDT) 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=wi+S5VMJREJDbl21ELqDJlUC16J30YLmvglN8TZts90=; b=Dp/Z8+w+UW0E+GsIVF9VOGLuq9p0CSrzNHBs3vYGqs2gG+u68PpNmH9toa3uuqBWoE ekRRwGTetcEK+lGLWaKBxQVo73LYgnlzvyV/zaWLGwN7f4najQR/KvR6uFTA65ze2Fz4 m3dFhYjJC3v8fdnC5W2+Z/8UTfoGvl2mY77aRorn7907vIhY+sdRUwXuPPOWibmO/6fF LGRV73rYUJAKct1+72yT8ZO0U0+doh7GV2BvuNpd1BLZTDFkusks7FM7AnVHVuLj0av5 +cAPFiedv0CsGhn4/N/nB981GaPeMfZQRN0I1lXFKDLdZRGo1aSRh8iTZVGiuOc0l/u4 iYEA== 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=wi+S5VMJREJDbl21ELqDJlUC16J30YLmvglN8TZts90=; b=Y+tiCZKq8rXlHd0Jnxr57g15tLXezaN582+icHsLsR9hO79qtVvxV7zQzRKW5JiGNG 3DXT1Dld51jBny5xThF1mp6A5RL0GAMzqKzGOkQml5qDdj96Blmu+mGTHdLbBk6tE4nE VrGbU02JWptwShjvpDTLQeGjYiTkyn6jA1koH2pOE0wfyZ+6Byd7CZ25C/2c/mvt26+G /c7QAAAHvCUBw31DJIXJ2+Y0VFuE8PsYdeDgBiXhSdNo3+yofVy394ObxNkiy9wvN8t5 OuUT2nUEu7WQeVMl0rq5SHvNUiAYyK/uWXReTtkTJLB8BQ9v0LUhvSqIcQiaaTTLqHGi 134g== X-Gm-Message-State: AOAM530bVKQs/V+Ah7N0Jk8qw9JayIxJGc6RlfEYgf1nrPXEXtriSjT+ +QiDeI53Cr0WowvquzNhvtE= X-Received: by 2002:a0c:ea81:: with SMTP id d1mr13497106qvp.57.1616241384563; Sat, 20 Mar 2021 04:56:24 -0700 (PDT) Received: from localhost.localdomain ([2804:431:d77f:dedf:c165:89a3:1374:f96a]) by smtp.gmail.com with ESMTPSA id j30sm5720233qtv.90.2021.03.20.04.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Mar 2021 04:56:24 -0700 (PDT) From: Fabio Estevam <festevam@gmail.com> To: robdclark@gmail.com Subject: [PATCH v2 1/2] drm/msm: fix shutdown hook in case GPU components failed to bind Date: Sat, 20 Mar 2021 08:56:02 -0300 Message-Id: <20210320115603.183083-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 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: dmitry.baryshkov@linaro.org, freedreno@lists.freedesktop.org, sean@poorly.run, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
[v2,1/2] drm/msm: fix shutdown hook in case GPU components failed to bind
|
expand
|
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 94525ac76d4e..fd2ac54caf9f 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -1311,6 +1311,10 @@ static int msm_pdev_remove(struct platform_device *pdev) static void msm_pdev_shutdown(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); + struct msm_drm_private *priv = drm ? drm->dev_private : NULL; + + if (!priv || !priv->kms) + return; drm_atomic_helper_shutdown(drm); }