Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2381393lqp; Sun, 24 Mar 2024 16:55:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYh4C/P0O8sQq2vuWHlMJo3MnQB31GZF38XdxdcnIXnUUPtypHwjtM8RwUbp+FbxkbttZWaMXaIk+whd/AjqCWRyFy5IX6dAynaSbGLQ== X-Google-Smtp-Source: AGHT+IEo3lUFnTKfatJYFTxP+NVkSA+AYWwQdonvC5keKFEzzQ8uo2qYar6jSf2M4yNzTgSmJ2YP X-Received: by 2002:a05:651c:1501:b0:2d6:c001:d87 with SMTP id e1-20020a05651c150100b002d6c0010d87mr4674504ljf.8.1711324511399; Sun, 24 Mar 2024 16:55:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324511; cv=pass; d=google.com; s=arc-20160816; b=HMGwum5kJSQedj7hCJ98RsaZGS2Q+p2jhgoyyi9k4EGYBjPUnX6MzZuNojo/IBG+ik HLR0zHo07zdI2ewxbN4kZrYNbjwipnraNS23/QIDMvc6i3dIzWGeQDn5YgkMCmBg8wJk QCHFZotwTHehxHQWev69KBXQ00u6ROhaKEnr2f2mzPkwWSuZF1h79gK7Sn7c3VB0Mpm/ x5deN0fuI0laiDvMTWFjM2plWcNmzqn9/NIe4hShin3VdgCtqK5ZgS+rpCBWLe4Ky2r+ PJZutykwSf3NNbwCFd4cw6LEMYandN93D5MseH9SpO5fUZMp2Mc2elDBVqbCuurrsbp9 6Q7Q== 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=x+k2prBW5sVd5r0Ls/MLKPP/oJ3eyhaKOOy5aA67kpE=; fh=RqiOOiqHt/Y7vdNfPBMbf/1w5FNZ5SMNivpvlvj4mb0=; b=sTrJu+NSZ1kqYL3SnUEX0sb6st4a4WkRJQ3OuLgaO6ewj9tYhVvPl/DYlAW1UGRaEA KdDA1P9fUa8wE65UgHHQw3KgTfEC/Ekkm1OqBg//OnMITpfMOTbrzGB7vbHI/u118AKT o8nrEYwMPEf35GYK0fcboWt4UzDWeXhYAomI9rpxmZreQXeAeWZ5HBdbB58jAfIeFU3u BHtMISqW4Ts630jwzuNdjRoIQH5V9hi1YlqBNj1gK7jUWPvQNhcDfGgWOnQI/KZkcAri k0WF0iKV5nDkRVAq2LhbFzalR1rh2Ui19dr9mwVoWjpJd1PSSGnieIN5TFIiNrCZRP+/ mK/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6r9Cwkx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z4-20020a056402274400b0056b9eb5124dsi2122144edd.371.2024.03.24.16.55.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B6r9Cwkx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113255-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 20ACE1F2237C for ; Sun, 24 Mar 2024 23:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39A93187E7A; Sun, 24 Mar 2024 22:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B6r9Cwkx" 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 555791869EA; Sun, 24 Mar 2024 22:40:55 +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=1711320055; cv=none; b=CvJjZbZu19BcZRONtDiVeep0tjlbM7vUeXPPMmI1e9PkmP+NH5uCXkHRS+Y4bePh8S3xHeCvzNy8J2Km5oLgmWCiRDPmz55QiuPqZcGnyDyhnK8ryAzjCAhUvyZ2Ng50hFln3QnFKKIe7Uv0J5XsEUu8ybF7+0rjy7OHWnOk0ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320055; c=relaxed/simple; bh=XU6/lcTte6ODVuLBpwKzor3DKbsMmnjicRqB6FkGGXY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZWUTCyJKnH5dp+S4kGK59adUqNY+0JoPnfG8yL5JoDBM8c+wvjc+Gn5Bsg2psiYAZW3df3DYLD9uKiklaEEvwcBw7OhvwMDyihfXnetXcf4Uy2Kb+X2lOiCgahns958gRPzQk+BUl6sr/W3q04lcQIjGDcuGkOA3P2AbKaZbk4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B6r9Cwkx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49854C43394; Sun, 24 Mar 2024 22:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320054; bh=XU6/lcTte6ODVuLBpwKzor3DKbsMmnjicRqB6FkGGXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B6r9CwkxvmnjqNMK2IKdoAF0itjo8EfOMEDKHJHqgeAQKSfHTLzaj25pTYXJlF1II sN00Gy/dTNJyCs0UkXe7xHYPtfkWwwxAZ6znwfPC6pPPWBeeXbmSzBS2IriDeRXcY0 wxNtiQ/eCXTx6y4NEy+bmLQvWbp72Vvtwa7VNZjWfIYCfZ9+YUOcwjXBYaEynccznb 30G1NsOwbvFJL1NTVeoHBqtIbMbC6p7/ErAVKdHh6mijj49vhHLoXkeJdr63c7rx94 lykm3HHjdItQov5SQE57p/RJ+Ofyk5UhC9AJo4GSbHIQgywolnkexNXhs6stt2oMrr idTKElqlVyUiQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hsin-Yi Wang , Douglas Anderson , Sasha Levin Subject: [PATCH 6.8 364/715] drm/panel-edp: use put_sync in unprepare Date: Sun, 24 Mar 2024 18:29:03 -0400 Message-ID: <20240324223455.1342824-365-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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: Hsin-Yi Wang [ Upstream commit 49ddab089611ae5ddd0201ddbbf633da75bfcc25 ] Some edp panel requires T10 (Delay from end of valid video data transmitted by the Source device to power-off) less than 500ms. Using autosuspend with delay set as 1000 violates this requirement. Use put_sync_suspend in unprepare to meet the spec. For other cases (such as getting EDID), it still uses autosuspend. Suggested-by: Douglas Anderson Fixes: 3235b0f20a0a ("drm/panel: panel-simple: Use runtime pm to avoid excessive unprepare / prepare") Signed-off-by: Hsin-Yi Wang Reviewed-by: Douglas Anderson Signed-off-by: Douglas Anderson Link: https://patchwork.freedesktop.org/patch/msgid/20231220221418.2610185-1-hsinyi@chromium.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-edp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index a0b6f69b916f9..e5e3f0b9ca61d 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -413,8 +413,7 @@ static int panel_edp_unprepare(struct drm_panel *panel) if (!p->prepared) return 0; - pm_runtime_mark_last_busy(panel->dev); - ret = pm_runtime_put_autosuspend(panel->dev); + ret = pm_runtime_put_sync_suspend(panel->dev); if (ret < 0) return ret; p->prepared = false; -- 2.43.0