From mboxrd@z Thu Jan 1 00:00:00 1970 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 E60CC131748; Tue, 23 Jan 2024 00:24:03 +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=1705969444; cv=none; b=F4bnZm4VHSzQf0yhkDc8ki/kQdNsc+BKWMAcpO2hY7/FWoY2/1JUZm5LxY65sN+orPt70hfjIXDHsJAGR18I1GCbcCEiS/EwcK4/fqUcZ06EWGpVlVnRq3iQlquKkzYiuMp9l9+fKFJtHUNCzwo/Q9EunGBmuHxYwO96kX3T+mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705969444; c=relaxed/simple; bh=E9cYmLNZNgXErXXJ1pf/dzhfXNM5gggswH3tMGvH6Ow=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qQQgqGRvxaWP0xQLR84afEvubzTcCKLoEE18Yq/xakCh8c6BeKLmeoJJXPchADbU3vxeGRlokcv7lRB/oLFvJXf/SQVQGiFBf3YYc1yfmIPJyciDKCi1PGKClTp+oScKvGXfaNobUG5S3scyVeQUviyAvMqL1FWCNmAs9mg4P8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KnPvzfJr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KnPvzfJr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC4FC433F1; Tue, 23 Jan 2024 00:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705969443; bh=E9cYmLNZNgXErXXJ1pf/dzhfXNM5gggswH3tMGvH6Ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnPvzfJrB523P8euMR5X61lj1+yP1GF0RDHokOPthP4gCMGmbIyWPPiqEik2LFtl5 ylV9+jAr6Rs/SiOvPI8jyDjf+gtr5Hk4iZvPe5uM2V9Hc1FAIQlqIyMQjjBL4Kw22i Q8SztvhFinHesKd51YSoXHj/io5e0EynPnod8yVo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chris Morgan , Jessica Zhang , Neil Armstrong , Sasha Levin Subject: [PATCH 6.7 250/641] drm/panel-elida-kd35t133: hold panel in reset for unprepare Date: Mon, 22 Jan 2024 15:52:34 -0800 Message-ID: <20240122235825.743413714@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235818.091081209@linuxfoundation.org> References: <20240122235818.091081209@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chris Morgan [ Upstream commit 03c5b2a5f6c39fe4e090346536cf1c14ee18b61e ] For devices like the Anbernic RG351M and RG351P the panel is wired to an always on regulator. When the device suspends and wakes up, there are some slight artifacts on the screen that go away over time. If instead we hold the panel in reset status after it is unprepared, this does not happen. Fixes: 5b6603360c12 ("drm/panel: add panel driver for Elida KD35T133 panels") Signed-off-by: Chris Morgan Reviewed-by: Jessica Zhang Link: https://lore.kernel.org/r/20231117194405.1386265-3-macroalpha82@gmail.com Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20231117194405.1386265-3-macroalpha82@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm/panel/panel-elida-kd35t133.c index e7be15b68102..6de117232346 100644 --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c @@ -104,6 +104,8 @@ static int kd35t133_unprepare(struct drm_panel *panel) return ret; } + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + regulator_disable(ctx->iovcc); regulator_disable(ctx->vdd); -- 2.43.0