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 F27641474BC; Wed, 2 Oct 2024 14:32: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=1727879521; cv=none; b=eR5/OKCy9sruy9FAfwDu8QInP73LE/p6TIueWXfIpY7z33FZa49/aAYiCd+K8kGWy2HAgWzYzGIHblXYOirgTuHkz71PjVqA6fFYt/CO9j9ZwCDZNP0zEZ3vS7nnTijQe+HtGURVDvn4e9aSPL3ddYkMSqEG0JOUWLDQCMqoOQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727879521; c=relaxed/simple; bh=WXO4jqDAKemdx3OFJE3LLo9uQ3aNlsATwS5rLSy45Lo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QAVDGi3hu6mWYrLC2L8FeCrdiJLmZBzEasosvtO3FizDIzVdVWl+PJm7qLNWtnnJtqkag1Jv878yvweHcxQjGLTLZl9RYelDyCAmxo3aR4ja0oinru0tkRF65WvMs+uomELpVvzaAS0t8zps9ABG5nYH0bUiwu7MXlSWWuoP0lE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AcjEbCyb; 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="AcjEbCyb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D65BC4CEC2; Wed, 2 Oct 2024 14:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727879520; bh=WXO4jqDAKemdx3OFJE3LLo9uQ3aNlsATwS5rLSy45Lo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AcjEbCybmVhdMPSyWQb8USm7RGloqAs68QzsjrF67wZ/ZhMzfwAs/uqE2GAOOmfNA sW3RxuZS2PxhwXFqWDKhz2sxaSEFZ81l84N1Wi727NhRJk8idPhJPHxOzyDChgYCcG aqyBPncZUGwG4eK1+8vMay6+DG6/ePqfNueeQm3o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jonas Karlman , Heiko Stuebner , Sasha Levin Subject: [PATCH 6.6 147/538] drm/rockchip: dw_hdmi: Fix reading EDID when using a forced mode Date: Wed, 2 Oct 2024 14:56:26 +0200 Message-ID: <20241002125758.057111056@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125751.964700919@linuxfoundation.org> References: <20241002125751.964700919@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonas Karlman [ Upstream commit a5d024541ec466f428e6c514577d511a40779c7b ] EDID cannot be read on RK3328 until after read_hpd has been called and correct io voltage has been configured based on connection status. When a forced mode is used, e.g. video=1920x1080@60e, the connector detect ops, that in turn normally calls the read_hpd, never gets called. This result in reading EDID to fail in connector get_modes ops. Call dw_hdmi_rk3328_read_hpd at end of dw_hdmi_rk3328_setup_hpd to correct io voltage and allow reading EDID after setup_hpd. Fixes: 1c53ba8f22a1 ("drm/rockchip: dw_hdmi: add dw-hdmi support for the rk3328") Signed-off-by: Jonas Karlman Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/20240615170417.3134517-5-jonas@kwiboo.se Signed-off-by: Sasha Levin --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 341550199111f..89bc86d620146 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -435,6 +435,8 @@ static void dw_hdmi_rk3328_setup_hpd(struct dw_hdmi *dw_hdmi, void *data) HIWORD_UPDATE(RK3328_HDMI_SDAIN_MSK | RK3328_HDMI_SCLIN_MSK, RK3328_HDMI_SDAIN_MSK | RK3328_HDMI_SCLIN_MSK | RK3328_HDMI_HPD_IOE)); + + dw_hdmi_rk3328_read_hpd(dw_hdmi, data); } static const struct dw_hdmi_phy_ops rk3228_hdmi_phy_ops = { -- 2.43.0