From patchwork Fri Jul 28 10:08:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13331616 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 010E5C001DE for ; Fri, 28 Jul 2023 10:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235150AbjG1KJD (ORCPT ); Fri, 28 Jul 2023 06:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbjG1KJC (ORCPT ); Fri, 28 Jul 2023 06:09:02 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 209532D67 for ; Fri, 28 Jul 2023 03:09:01 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fdd14c1fbfso3336626e87.1 for ; Fri, 28 Jul 2023 03:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690538939; x=1691143739; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/yDS6GJ77QbFwTMN91XqQ7OJgmLRybRbCpy7Yu02w1A=; b=rnjbWsI0m+4cAh+BrLKko6ztdnDcbo7mrJ5bAdWuHOmjMQP3zgR4RfnGL+IAmSH5e3 vD4JeZLgtwUkGNM6jK6JZF2M80aobp085r75R0sKwvbRdo5YCeSK92XwTzlnCWdEun31 uRpOUOoWDJRFdpAj3aW2CFInGVhQVna+qsxHtmFV8FpZDeCvZpT9xTaDrdp4IxDnB0k0 o+tQfsXhgIj511GAqJY3usY+3fiMqgSYDCaVwuqb1KolBfNOvY4s+76AMDGkFzRDXoMd /ArrlEMXJYHBjy2nS5JQ6LuwJF7v9PPTeuObHmvsvoacJbENlJz+zfyNiH2HnHTGNCbR 5d9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690538939; x=1691143739; 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=/yDS6GJ77QbFwTMN91XqQ7OJgmLRybRbCpy7Yu02w1A=; b=KEMre/Y5NzoHwYsHdjuyaeN6KyGN1KUruM1rLunAWJrBGHzATEdU9xQirMmDFe0YKn Ml41O0Je9/PLLK2P3d4aW3Mt45EdkY18qkf+qniFVSdQJP4kLandPcIKbcsIsFTdGdZE 6YQ43HJvxSF4SECNqJEPrQP1D5ZKO56nJRxBqqVbfk+h7E7Fvaz6U2ERMsaZrLuLVL7J h4ODdDcYOMt0+dIPFBF18XaJG7WXrSRqWSi26OepAwL3CPJV6QNPC4WwC24ByEJnTjqf 46KXvlhbo4ThV9LNlUswlS7NTx5FwIS2W7igWXWfyhmayHATlcNxMTnBAuH43oElN0QN 54Ew== X-Gm-Message-State: ABy/qLYRw0WDlk7ZR6gvUKDYIcFCkBo4oEGrQsWQMO8owfgNp7nQHPyi Gud6mSIbhbxhJB9kkJuN6B07jg== X-Google-Smtp-Source: APBJJlERWlYn1ylb2cFFDaSjXnIb9eeLCxv7ON82btxPoT7IgD9XqwCAzQJRqbGtXjJGrD0TpBjNsQ== X-Received: by 2002:a05:6512:2026:b0:4f8:5635:2cd8 with SMTP id s6-20020a056512202600b004f856352cd8mr1250200lfs.32.1690538939264; Fri, 28 Jul 2023 03:08:59 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id h16-20020ac25970000000b004fe0de39fddsm741704lfp.290.2023.07.28.03.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 03:08:58 -0700 (PDT) From: Dmitry Baryshkov To: Heikki Krogerus , Greg Kroah-Hartman , Bryan O'Donoghue , Guenter Roeck , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 0/2] usb: typec: qcom-pmic-typec: enable DP support Date: Fri, 28 Jul 2023 13:08:55 +0300 Message-Id: <20230728100857.471984-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 To enable DisplayPort on the platforms supported by qcom-pmic-typec driver, we need to register a corresponding drm_bridge for this device to be able to receive the OOB hotplug event sent to the corresponding DRM connector. Reception of the hotplug event is implemented by [1], but there is no direct dependency on that patchset. This series implements the remaining parts: registration of the drm_bridge and setting of the proper destination for the OOB hotplug event. [1] https://patchwork.freedesktop.org/series/120393/ Changes since v2: - Reworded commit message for the first patch to explicitly mention that the "displayport" OF property was rejected (Bjorn) - Removed several #ifdefs from the qcom-pmic-typec patch (Bryan, Konrad, Greg K-H) Changes since v1: - Properly handle CONFIG_DRM dependency. Disallow building DRM as a module if qcom-pmic-typec driver is built-in (Bryan). Dmitry Baryshkov (2): usb: typec: altmodes/displayport: add support for embedded DP cases usb: typec: qcom-pmic-typec: register drm_bridge drivers/usb/typec/altmodes/displayport.c | 5 ++- drivers/usb/typec/tcpm/Kconfig | 1 + drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 35 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-)