From patchwork Wed Jan 17 07:51:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1887262 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=LPeI2/Kt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFJ5B2m2Tz1yPh for ; Wed, 17 Jan 2024 18:52:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A125879EE; Wed, 17 Jan 2024 08:52:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LPeI2/Kt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D74E879A3; Wed, 17 Jan 2024 08:52:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9A25876FC for ; Wed, 17 Jan 2024 08:52:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d5ecea2e46so9676025ad.0 for ; Tue, 16 Jan 2024 23:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1705477939; x=1706082739; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l236HdIEw2Gj6YnaoCn15Mekmd9lvlrckksuEPkeWPw=; b=LPeI2/KtqH3ie1uAAXgwdGzO1kNr5sYR7xohjJCf51ieVvbww+Wh+k86s/3/8sMxm7 8fihvp0uhMkGnYTlDGny1JfZ9djrqty3+Hc9A/DpOyLjum3Vrg70iLNx0T4/m+NgI7Tj J4qtfez3RNSZcshveu5NJogIvzz2TPpaWYqpo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705477939; x=1706082739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l236HdIEw2Gj6YnaoCn15Mekmd9lvlrckksuEPkeWPw=; b=EZtzTBNfMjpZl1XJaHUIv45Ipxsc3MP+mue8KDPthwRDbON1L3OVqgRMKjt2Vm53ea 7DnRWOAsWG8g4c6OSDpM93ydjDqhO7dnfFwikkTvZ5BwUmdFJ6iAhnDi4wZOpHOew5Hg VgGB7mBMhLbfdahScTpFEqEVAh17MHUgir5oZCXlnwobblzrOEa7YwoGH9i+iZhDhFVb VIaCSYNou8FgoiyEOAHLYJrCkgrX2KOTjz6+OYPvzYLSCCjlFTrorDZP70IrBjn/OrrD ELfiqIphIWXh2OomhMqWkzqpPhIkcfuWsCh14V1CMl4YoomX7mrEU0dyklFNAwu9r/SD C1XQ== X-Gm-Message-State: AOJu0YziqTGD96WN6YArFfTBYHsLK5P6ZwZjICJbgQ2fXA1gI+9JsBae kdI6FqjJVXagAKQHLBEWD42odQ7TrBPEzg== X-Google-Smtp-Source: AGHT+IFOfMlpZRvRaYUba5DPoGBBZDrMAq1EBEZkt4RdQyr01dEBXx7yMwbCTAjE3MudWuDmLyq6VQ== X-Received: by 2002:a17:903:2444:b0:1d4:1f71:8fcf with SMTP id l4-20020a170903244400b001d41f718fcfmr11716241pls.59.1705477939189; Tue, 16 Jan 2024 23:52:19 -0800 (PST) Received: from localhost.localdomain ([183.82.41.50]) by smtp.gmail.com with ESMTPSA id e10-20020a170902784a00b001d5081be740sm10718624pln.62.2024.01.16.23.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 23:52:18 -0800 (PST) From: Jagan Teki To: Anatolij Gustschin , Neil Armstrong , Andre Przywara , Kever Yang , Simon Glass , Heiko Stuebner , Andy Yan , Robin Murphy Cc: Da Xue , u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v3 01/17] video: rockchip: hdmi: Detect hpd after controller init Date: Wed, 17 Jan 2024 13:21:38 +0530 Message-Id: <20240117075154.58747-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240117075154.58747-1-jagan@amarulasolutions.com> References: <20240117075154.58747-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Jagan Teki HDP is a hardware connector event, so detect the same once the controller and attached PHY initialization are done. Signed-off-by: Jagan Teki --- Changes for v3, v2: - none drivers/video/rockchip/rk_hdmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index 8dcd4d5964..b75a174489 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -112,14 +112,14 @@ int rk_hdmi_probe(struct udevice *dev) struct dw_hdmi *hdmi = &priv->hdmi; int ret; + dw_hdmi_init(hdmi); + dw_hdmi_phy_init(hdmi); + ret = dw_hdmi_phy_wait_for_hpd(hdmi); if (ret < 0) { debug("hdmi can not get hpd signal\n"); return -1; } - dw_hdmi_init(hdmi); - dw_hdmi_phy_init(hdmi); - return 0; }