From patchwork Thu Aug 24 23:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716845 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 342F9C88CB2 for ; Thu, 24 Aug 2023 23:57:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235342AbjHXX5N (ORCPT ); Thu, 24 Aug 2023 19:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237548AbjHXX4m (ORCPT ); Thu, 24 Aug 2023 19:56:42 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBF81BC5 for ; Thu, 24 Aug 2023 16:56:39 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso4816131fa.1 for ; Thu, 24 Aug 2023 16:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692921398; x=1693526198; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TD8UWO92SORs7p32tv6N7DK3UyRUfiGcxfa7tlZpBYw=; b=a8pCukFl7eG+Vb/nwewp2va+m5wRrJ5s8ShbgWtMpDGO4LuNWAOG8ItA+Zrbbd4wNH xdxRobZnNPaXaWbxm9ULMJIrjQ6SNQ/oVGmOH5EBK7XJ9JNynG8VTaWEwkk2Tlg08qNx RzQRWLyXW7qf/10rNgEQ5S5XG+8SRvPrubMoSbbD2xJYcHB5badu2XTfz9NKVoHI/u5w Bz3GHP8M6sYlRcwEWIrJwPS3WkpjHuOOad0SYySKKquBEwxBBNww1hQIxmtRp8RWlH+A oXJWn+eNRY8+9afu2w/ohRQsPRUn6gETC96UHegdzj0RtvGeB3hNsKRQpRYrfzoOCAJh TYww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692921398; x=1693526198; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TD8UWO92SORs7p32tv6N7DK3UyRUfiGcxfa7tlZpBYw=; b=SkWUlKUFCYreuA8FvIBrMy2DH1N/iebTcU0APWf8RoBBXFWZK1uBCzIuuUWY0+Rjg/ 8QzwRERw1B1HG5QJYTyjAUbb4jEY9hMhuk1tMdkXMHdurfWGKOUx1Hn7zoGbf1/epyoG +M5xkvGBkxQM6RaK+L3fr28WxWD3MdFIwonE6cBhg3fAhbMZnAGZou3psTc/35Mm4o9R O5HYvKzLq/dM2grz9/IqhA10GSi4ZR2g3LqI/8HjUeRac6mF+MHlTjHnt7Gk/1VqffHs 4ctUtzoyLR1JeKL9IdSikHZvpoTo9roWUsEG8NkRx+DixBhjuq+CRt0ZbtNvHoYaDimf PaXQ== X-Gm-Message-State: AOJu0YzTfMdNnCR/iUsviIur+FoTEBY96fmMHV0fCaNcbHFLEI09kzna Dh412Krkj9AzXX12SeT9s/Sgxg== X-Google-Smtp-Source: AGHT+IGyk/WN0XsmZwuvxJEVmOV2xPJ/f/SBynzEJljKTG/YFpOiRWHseqihocuDideMtROIEoTV6A== X-Received: by 2002:a05:6512:12d6:b0:4f9:6842:afc with SMTP id p22-20020a05651212d600b004f968420afcmr15403132lfg.64.1692921397540; Thu, 24 Aug 2023 16:56:37 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j15-20020ac2454f000000b004fe5688b5dcsm57900lfm.150.2023.08.24.16.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 16:56:37 -0700 (PDT) From: Dmitry Baryshkov To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heikki Krogerus , Greg Kroah-Hartman Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Simon Ser , Janne Grunau , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v7 0/3] drm/bridge_connector: implement OOB HPD handling Date: Fri, 25 Aug 2023 02:56:33 +0300 Message-Id: <20230824235636.1436665-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Note, numbering for this series starts from v5, since there were several revisions for this patchset under a different series title ([1]). USB altmodes code would send OOB notifications to the drm_connector specified in the device tree. However as the MSM DP driver uses drm_bridge_connector, there is no way to receive these event directly. Implement a bridge between oob_hotplug_event and drm_bridge's hpd_notify. Merge strategy: since this series touches i915 code, it might make sense to merge all three patches through drm-intel. [1] https://patchwork.freedesktop.org/series/103449/ Changes since v6: - Rebased on top of linux-next. Fixed the freshly added new drm_connector_oob_hotplug_event() call. Changes since v5: - Fixed checkpatch warning in the first patch (noted by intel-gfx CI). Changes since v4: - Picked up the patchset - Dropped msm-specific patches - Changed drm_bridge_connector_oob_hotplug_event to call connector's HPD callback directly, rather than going through the last bridge's hpd_notify - Added proper fwnode for the drm_bridge_connector Bjorn Andersson (1): drm: Add HPD state to drm_connector_oob_hotplug_event() Dmitry Baryshkov (2): drm/bridge_connector: stop filtering events in drm_bridge_connector_hpd_cb() drm/bridge_connector: implement oob_hotplug_event drivers/gpu/drm/drm_bridge_connector.c | 34 ++++++++++++++----- drivers/gpu/drm/drm_connector.c | 6 ++-- .../gpu/drm/i915/display/intel_display_core.h | 3 ++ drivers/gpu/drm/i915/display/intel_dp.c | 17 ++++++++-- drivers/usb/typec/altmodes/displayport.c | 17 +++++----- include/drm/drm_connector.h | 6 ++-- 6 files changed, 60 insertions(+), 23 deletions(-)