Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2566459lqp; Mon, 25 Mar 2024 02:51:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUb8Tj/OdNJLP06AkAVxkqsHnkGRHt9W+dG0SQpkxH2B6ZGhRoJI0hsBOdn728Mo8n4XTYd/aC1JpnxOBnZS3Slvve1PoLDScGpYZoRYw== X-Google-Smtp-Source: AGHT+IG963Lxx1Ho/J79aCZ/pjVOvPNMfmnY1BIF3OKjhUDZ9ZIlLSeKXJjzADd93iO4SlaMhsey X-Received: by 2002:a05:6870:5693:b0:221:dcec:fb7b with SMTP id p19-20020a056870569300b00221dcecfb7bmr6476338oao.6.1711360296418; Mon, 25 Mar 2024 02:51:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711360296; cv=pass; d=google.com; s=arc-20160816; b=iGfu4ld/lwxxfY5SKJJ+M77YR8gL/CltG+bwUw88o3fRwhd+FZLxLH0tS06vjoHQJe GtUyAjJDgpjUH6N/vqDOuckrFIdL5gIudR3FkH7gzTzJYrZ2FmLt+vB5V2YxzjQyi/6W iyg6X068e1Yp7LhZHYzvwgteYKA8eQRe6PN8jgCy0uw9KX8Kj+1zYN1638bEOfJ1OPDD 7QwKUWch2dve8r6QPsT/R+me76yH3sHNy4HRJJKZpdhSYyVupVuDpVTEMui+jeydKcBB 1dI5kDFCd7F15YKph/fPBJJ6dlS1pYWS1/4s8REdxc99taxn4sEyJNwZkX/9yGbV0C0J amHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4dX1t8v7PZtBKHyC/IpIkbocHUBGJc7mYGlqFbWw7iI=; fh=4RGyyjZTpuBUGR1TesKnLTwS9HCKIISg2vxTmZH992k=; b=1GRNit/xAGGrJ9VWOhOyc3DFk1g0+1eITghgUX4S0bDoGq3HWbb/mdNopJV5QiNJTG gbWr4LX2z0+4yt59NSJ4JWKZcvKYHvXc/03zr8yNLq+J3/5TRf6yo88VjRyxCu3s2aBR uf+3l1oeq9FhH6Kx90FmRdnxsWBPsXtztsuODoXLSVQsEg6M83c7aqxKQReV26C9U0rI OnFjMMnniYYmSdTAAN8OzLOrERNsh0XLhhQOxt1IXnMaHQQwTzTcGQ68xSFofciJvgec 44hUBoKsUShAMkRPUtAKolAvMeadIwqKqPg6MVx8hUYEWLSz7dtunODdYckvEIoRePH1 gk1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gEMDe3NF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v7-20020aa799c7000000b006e4d39b653fsi4886235pfi.243.2024.03.25.02.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gEMDe3NF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0CAD22A8451 for ; Mon, 25 Mar 2024 09:51:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C31C38F709; Mon, 25 Mar 2024 03:04:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gEMDe3NF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AAFB15B54D; Sun, 24 Mar 2024 23:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322161; cv=none; b=dylrF/M3I/6sD5Rbllv4XPoFXLzLhaKbRk+dzSGcC4RUJxU6Ppfy93wWOIrP+bXgA7rHeVHoZSO3LOB93rbkjIcOTdhb/WYSM7cPqZT+g02DtqvpAmh880A5tALjFsUhg9Ek99DjZkz/7d40GfsadR6hMNKc6z8S+z1sYP7I4iE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322161; c=relaxed/simple; bh=+ZUl4XWyX2TC41ftSNhfrfsALGaw+PtYVx7wA53zQtM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=usMN10OyYpr3su+/hAHfySSbI4kEe/oOANqnehFuDHOHhKsgyoyoIRYy8DwKQWCOJrFMpFZfAVdm/BtFRsArFdjGNEhwREaOqWU/MtqFrBiZi5bl9N3NoY9eYt3WW/PSDpBRQ8YbJxLGXR/0VIsKkWKgFHXSqzqGTMv4+bwqFnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gEMDe3NF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBACAC433F1; Sun, 24 Mar 2024 23:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322160; bh=+ZUl4XWyX2TC41ftSNhfrfsALGaw+PtYVx7wA53zQtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gEMDe3NFK33Ebmv4j7CYms3gSESiPoRC4WT8G4S+nupsq34vimJPNzX6GLsMfSCiY ty0jLHjlGm6L0hg74g4THf4jK2xPCSVf9TClYh4DjhEVi9Mlz6bCQnwPYbgax/Krpd SKWpaVFF7ygF52t2EFF2e1wBiH5jPjeViV1K1PhAsFQTfKj+fP+iiSlxDZyer5bnRr y2Moa+3iGsJBUsTbtuEZrBZp+OvjlGZ5XgR7S2BE2mMmMVgkDgk7Pz/nzQ44u92xGi I71vdJHPSE/oHtjdaIo8DQ4qQRQuj/Cjc9Z5V4/74PGPSvcim50oiwcxVgZiUZGnbz bkGcel4LgzM6g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Thierry Reding , Sasha Levin Subject: [PATCH 6.1 238/451] drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe() Date: Sun, 24 Mar 2024 19:08:34 -0400 Message-ID: <20240324231207.1351418-239-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Christophe JAILLET [ Upstream commit 5286a9fc280c45b6b307ee1b07f7a997e042252c ] If an error occurs after calling pm_runtime_enable(), pm_runtime_disable() should be called as already done in the remove function. Fixes: ef8187d75265 ("drm/tegra: dsi: Implement runtime PM") Signed-off-by: Christophe JAILLET Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/ee4a15c9cd4b574a55cd67c30d2411239ba2cee9.1693667005.git.christophe.jaillet@wanadoo.fr Signed-off-by: Sasha Levin --- drivers/gpu/drm/tegra/dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 815e32e05f600..7bb26655cb3cc 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -1665,6 +1665,7 @@ static int tegra_dsi_probe(struct platform_device *pdev) return 0; unregister: + pm_runtime_disable(&pdev->dev); mipi_dsi_host_unregister(&dsi->host); mipi_free: tegra_mipi_free(dsi->mipi); -- 2.43.0