Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88354C54EED for ; Wed, 25 Jan 2023 21:11:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236160AbjAYVK7 (ORCPT ); Wed, 25 Jan 2023 16:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236150AbjAYVK2 (ORCPT ); Wed, 25 Jan 2023 16:10:28 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823FE5AB77 for ; Wed, 25 Jan 2023 13:09:29 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id b1so19458579ybn.11 for ; Wed, 25 Jan 2023 13:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=XIlJ/2ukO6pHCtcdtpAJK3BuzsSI7aObU3Ceo8jzibo=; b=hew6/wHKEd2bSIYdB1oHJMVs4Dh0UL2iunLR9fGVFeuNT9f+eNsW0gL1ll0pyq9X8j 2alTe/LUx9cu6iTqeImb7gXJrLJk1wR1mGBNQnYh+S6JH2al1ZmeMV+MkLs/xYs5v6tQ 7FwZzHh5Y5CpCVIkujsvjAHRu/VIhC+qT/G5G9UKyXPgoZJdWr3TXEBsvMNDYpAbtWzn u0F0BzqV5cL/amlthcvrEZEP1PkzDsI8bo++CKYyjy24F123kDayKBnG9K/ukDUJjdJl q41rS96FN4zKqzITWnzfo4/6Wb9n6UxAKFF+mVqlXSPdwvK12glyXIi/roOK2dIROrZ9 5oVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XIlJ/2ukO6pHCtcdtpAJK3BuzsSI7aObU3Ceo8jzibo=; b=l2DstRXZHqa2t1YkK5jtm3aBCNkgZ6XM9o1dbPKLzVfzbsUNvDbzbIGTgghK78LB9A pvDvVLEIjbprgVFaDiHhp9q6LGU3meHRtRx5yMc7OocxDIqk7vQYEhJKa3qYZb6KEBW6 0ruNB3DALAQarHffzjh+hTfBZNdZjcDiyWUq80qXL68Hrkbp5Fc/M04ocXm2aT9Uz9cf s/ZUUZY70z48/k8bv8roQtih/Y9Gv8CbH74534M5DkTVoonenEBWCb2tkgHvI9xjLAXw PJwSMb1aj9QxijBrfIgOuDDEYEIS1Xd5+seWzUPRfvwMnmeKJ2/CjH1B8UfR2h20engx jPCw== X-Gm-Message-State: AFqh2kor+qml8NlEXwu5YPHxEsEvjHfErDDKQBrpdCgGxvD1mziLF5Hh 5rH73Wkzm1mArGSr9W9Z5hDwcA== X-Google-Smtp-Source: AMrXdXuwelH5a8jOV8LQT5Lv8Wy+AN1a2r4YXqXenm+tK/4agPeqKvYOSp87jnGCYes7X1ENx66aKw== X-Received: by 2002:a25:4d55:0:b0:6c9:c534:d91f with SMTP id a82-20020a254d55000000b006c9c534d91fmr20790518ybb.10.1674680961086; Wed, 25 Jan 2023 13:09:21 -0800 (PST) Received: from [127.0.1.1] (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id q196-20020a3743cd000000b0070736988c10sm4177090qka.110.2023.01.25.13.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 13:09:20 -0800 (PST) From: Jonathan Cormier Date: Wed, 25 Jan 2023 16:09:11 -0500 Subject: [PATCH 3/4] DRM: BRIDGE: TFP410: Fix logic to configured polled HPD MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230125-tfp410_i2c-v1-3-66a4d4e390b7@criticallink.com> References: <20230125-tfp410_i2c-v1-0-66a4d4e390b7@criticallink.com> In-Reply-To: <20230125-tfp410_i2c-v1-0-66a4d4e390b7@criticallink.com> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Tomi Valkeinen , Jyri Sarha Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Williamson , Bob Duke , Jonathan Cormier X-Mailer: b4 0.11.3-dev-d001f X-Developer-Signature: v=1; a=openpgp-sha256; l=1011; i=jcormier@criticallink.com; h=from:subject:message-id; bh=8yPmLc4MapEEF5TA4azj668v9knGK86XMIMeNijF8zA=; b=owEBbQKS/ZANAwAKAdzX/S4LNuuqAcsmYgBj0Zp7jQtFzb/QD4rwpxlFkn3rgUOVtazLT1vpJcQy ZQGYCw6JAjMEAAEKAB0WIQT/MozqCeZtYxNnVN/c1/0uCzbrqgUCY9GaewAKCRDc1/0uCzbrqv/ZD/ 9d20xQAe/I+AxKXbgTpc3ZqHdekbCzul+TQfOMxr/CXNaJoL0quQlxyo/HkWH2N8iJE7juctDYyvek DpWpBtbJDip3JmPY3zPMwo4vXSYz8ClK0rm7QrbgbjnE2P7HtAr/z4Ra6LrqwETr8KN9dOSQU4UtWL R1w48hMc7B8vGcdbKDIp1Eh4eyh1glKqeoIShAWxqOpbZh0pYhweUH8/bZ+nXuVEfbUSWhLOWYda0S XSW51z5ESc+oYrh+qMdrRstQDtOK98AWPjiP3uiIrNeVYzhx5QSNvq6DCcF1tYvoCTW2jx3WJQWFht 6e6hYwGwrMy2VIKJO6HJNvIZUf62nGYhFHCLIa+pm9LWQZgQWBmbA+KJ0jYgbAKUGPOj5kuoV4iy+k OQQUO8mnN5BG/iEPEu7BJsgzk0jl8/5bFYwZM5zFny/piLG3FeBmXGWfU9GIPwRDE5PBHSiHiab0+L ykWUisXADPOmgKeJ6t1F9mCOdYYFVtFs81u06yPMh1J9SZjxo0EA7F2wq6mVFDgFbnOZwMzS4s1xMb uOBEQ9bJ/Y3QuhTPl6+Dol6DK24NskNAeyeoD7QJkB5eOTUxhsmS+eFY66nyhjD+BsHL4IIosdLbFg seWimd7mB/SKtNpL2tVb7/byl9Tkyvwi/JU55FQEXfMcUVHkYXzBEMwbzRrA== X-Developer-Key: i=jcormier@criticallink.com; a=openpgp; fpr=FF328CEA09E66D63136754DFDCD7FD2E0B36EBAA Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Williamson The logic to configure polling (vs async/irq notification) of hot-plug events was not correct. If the connected bridge requires polling, then inform the upstream bridge we also require polling. Signed-off-by: Michael Williamson Signed-off-by: Jonathan Cormier --- drivers/gpu/drm/bridge/ti-tfp410.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index 323a6d9ed188..837e1f81a0ff 100644 --- a/drivers/gpu/drm/bridge/ti-tfp410.c +++ b/drivers/gpu/drm/bridge/ti-tfp410.c @@ -155,7 +155,7 @@ static int tfp410_attach(struct drm_bridge *bridge, return -ENODEV; } - if (dvi->next_bridge->ops & DRM_BRIDGE_OP_DETECT) + if (dvi->next_bridge->ops & DRM_BRIDGE_OP_HPD) dvi->connector.polled = DRM_CONNECTOR_POLL_HPD; else dvi->connector.polled = DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; -- 2.25.1