Message ID | 20230728110942.485358-2-dmitry.baryshkov@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp389344vqg; Fri, 28 Jul 2023 05:13:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxulNL82CYxbzHHL2h3Fn6WGoOpAsOB63KC8kttJQlhFKrkTzRVmP2JusFTjTxMPNd6J90 X-Received: by 2002:a05:6a00:1797:b0:682:4e4c:48bc with SMTP id s23-20020a056a00179700b006824e4c48bcmr2199171pfg.21.1690546419700; Fri, 28 Jul 2023 05:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690546419; cv=none; d=google.com; s=arc-20160816; b=Qmd6jZppVSpWmCQYM7EbV7MDM9dwy2sfuhaIKNarlqSdy6AlJ/9WU2HCGtaRcRLB/V EUx96Wt8KYngMkx7eBSn12ctNnmvyYFAqg37ojA3IQNJNiK+u6Bl+XOcFre0rKX2ddnl 053Xi5c68VdU+pVkNf0VeqOP+Da7cnirpAYBrJgcQx+BbLnaVUukdu0FZCTA0kfqAkMN c8jvCFC9EX+yuCqH7+nHnfE99sWwvFg6ixoxdEJqB2/5nt4gx27mqM9lgRlifXlDCqYc VHGTOMAZHRxu+d8Gr8ILxmwxVgdavp0cUy4u7RMhM+yrJBjdcKUFCgM49yNAUojb0Utv CGpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CspJ1Q+2LosEzKqDlXYExoY3sG/z+p7xYAQPInOGC34=; fh=e86DAimGadUEah4YsEZw9dwrhmQ4PbY0xaNPVeYNNKE=; b=B3UkxwTrbld4S3T/ApYiM68YsD6NGwsmRJdnCKa6LjjDmYCq+j8XSAIXo96bW3JiEy uV7Ztp4+npI+RUXqz9ZR8evYfv5SErx3GE/3hdnjIJRetso3lmrvyuE+ZyAJ1fn8yNxh 1BxkRKNF01GiPOee5X3V7iSCNAl6HNdJSpyARhbZOgcZQsORTj2/gm5r1W1eYXObrtV9 8qfH5hpvhnKAF/VJFtjMIU9IIQCAaRxkz+hfhFT7v9cG3z3ifBWinfx9dPMk0wPD4yao Cvygus9eYqyQoO0/HXHux4nD99tAuDaw3MBhDai9kc1MXbzh2A3JnfThbRft8SA096FM VXSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ewdWI7Ht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y36-20020a056a00182400b0066883879b57si3133090pfa.51.2023.07.28.05.13.25; Fri, 28 Jul 2023 05:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ewdWI7Ht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236164AbjG1LJv (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Fri, 28 Jul 2023 07:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233269AbjG1LJs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 07:09:48 -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 F285B3A8D for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 04:09:45 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe0fe622c3so3369932e87.2 for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 04:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690542584; x=1691147384; 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=CspJ1Q+2LosEzKqDlXYExoY3sG/z+p7xYAQPInOGC34=; b=ewdWI7HtFVt+Vy3k+KCOVsfT0qkmuc5UXfntmc/5BhslLaNuno1VvpEbP79UDK0TEN KJ1N3MOh8yDj+6EGxDIeCFdSV9RFXP+Nvs4V2MITJCQgGsYhXZi1reHyaaTAnjXN2aqC xQBwToefEKB9ixgrIBHbG3Zxr17l0JBcRD6VyoePM9Mcr/25SGdFkdt8lG9JDfcbzU0h A0QO6OoiT0kxf20TPL+7NshxoQfznsElCJ1gN+bh1KLSBc30hLe56MmKyg1gxCTeUoTL unZLYPpA4NcbKxtlsffAHw23rN0Fj/kiAxq2qMi3/ptBoU7zcs/7KvuJUpGEl+Xq5mNH VBgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690542584; x=1691147384; 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=CspJ1Q+2LosEzKqDlXYExoY3sG/z+p7xYAQPInOGC34=; b=NSx+yUbuMdDBogQpZTI5NPiLD8QxGM9P0AiECPuqcDuUA8u5V69ptzE2PxbueNThaP +GKxO/dfe7lvnvH66ofSmBGwUMVCVvDzEt2nsP4vsIyzx/nqCQMUMSHSwJ5RcNLDI+kk quFJZ6z+yuJC0OSQEXZpMXRHUoP36LkfTB41GDK2EZm9sXNlD78ptNGy6Cl6LXGdvc74 yof2K5IU1DgkoQnPbaSJYe3wrGrsDtYkHKaDccP/VXUxZXO0wb+e/2hJMaJZUphvxFef 940GntnN6OmyMObT+82GzTP+NVYFSfqDQD3AL+6a3Z2yz2WOqryhSAiZqGryR/WU82Yr WJGQ== X-Gm-Message-State: ABy/qLapXJyFpG6nx+geUvZF6yeS/HmOSgE6Cn9FZspuGAj38CUw/sEl CZ+99y130KB354snLPiOvHbO0Ps5o7Yun3z2FyI= X-Received: by 2002:ac2:499c:0:b0:4fb:242:6dfa with SMTP id f28-20020ac2499c000000b004fb02426dfamr1328866lfl.57.1690542584328; Fri, 28 Jul 2023 04:09:44 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id v11-20020a056512096b00b004fdc5557a70sm759854lft.141.2023.07.28.04.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 04:09:43 -0700 (PDT) From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> To: Heikki Krogerus <heikki.krogerus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Guenter Roeck <linux@roeck-us.net>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v4 1/2] usb: typec: altmodes/displayport: add support for embedded DP cases Date: Fri, 28 Jul 2023 14:09:41 +0300 Message-Id: <20230728110942.485358-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230728110942.485358-1-dmitry.baryshkov@linaro.org> References: <20230728110942.485358-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772666402168706656 X-GMAIL-MSGID: 1772666402168706656 |
Series |
usb: typec: qcom-pmic-typec: enable DP support
|
|
Commit Message
Dmitry Baryshkov
July 28, 2023, 11:09 a.m. UTC
In the embedded cases, the DisplayPort connector is handled by the TCPM
itself. It was proposed to add the "displayport" OF property to the DT
bindings, but it was rejected in favour of properly describing the
electrical signal path using of_graph.
Fallback to the controller fwnode for HPD notifications to
support such usecases without requiring additional DT properties.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/usb/typec/altmodes/displayport.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c index dc2d3a83dc26..76c3e2f8e117 100644 --- a/drivers/usb/typec/altmodes/displayport.c +++ b/drivers/usb/typec/altmodes/displayport.c @@ -578,7 +578,10 @@ int dp_altmode_probe(struct typec_altmode *alt) alt->ops = &dp_altmode_ops; fwnode = dev_fwnode(alt->dev.parent->parent); /* typec_port fwnode */ - dp->connector_fwnode = fwnode_find_reference(fwnode, "displayport", 0); + if (fwnode_property_present(fwnode, "displayport")) + dp->connector_fwnode = fwnode_find_reference(fwnode, "displayport", 0); + else + dp->connector_fwnode = fwnode_handle_get(fwnode); /* embedded DP */ if (IS_ERR(dp->connector_fwnode)) dp->connector_fwnode = NULL;