Message ID | 20230728100857.471984-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 s11csp414079vqg; Fri, 28 Jul 2023 05:58:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlG8Dfnq/9ZmLGU5swShyzuj1h5CqEeaTKMCrpfyDHk5mC2VyUjMk/CIVj7NReytVqxIDF5S X-Received: by 2002:a05:6e02:ef4:b0:348:f14f:433e with SMTP id j20-20020a056e020ef400b00348f14f433emr2549841ilk.12.1690549134345; Fri, 28 Jul 2023 05:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690549134; cv=none; d=google.com; s=arc-20160816; b=jJL0UFLzuvxIvjC28HMo6G78WiC36u4dKz3elNEEwrP0L0vrMC9/ioM17aMyyn2c8x NfM42RxVcAiCACK2Ru88dpEiQl548NwqJs9GSgk6EQWjJNFn6IiLFeYY7rfhyjs1ydqd 0Vqd8hoQ2k43e0ldhmtWlxUQFvfmguZFHHo7krT/rj+xDH9/a9YRoIwT6R5HCLoscqLO fRoxhSH1omkb5XhQLrRpDKNlbj9Ea9dLpspyP9Gk+705QJuIcH7ZdnV0prEAA+lcys+j VaKCsnLKucZM6Hmsma7XL2f8KbGvTyZ4ozu0aAGBN6sxh8mlK7UsR/BPpKyxFH3kZZmg qP9Q== 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=uhL8+/e5LcmSTnpyuYQ+MK91MGfJHTxyb2k13pGTADdu2d5di7XpXHXnjUka/V6QNo Qpye4qq7DTEjzeo2IU6NUSG2ZgfckFYvj4j4wVEYz0w1sS3q7/deGghKNgN/W3p6Daoo 4ATTUZRSuQQejqKzPwRld7tdM6h0XQxrunF88wY1+VNVlKMTN//iCkIzSriuUML6bOVz gzAIdbLzMnFe4QcBGztMHVeMMAbjhCK126am48VJlCjb8/ME+RJm9ciVQ+pD6n5d0Br/ fjFgRDekU5U7dtjSw7EEMH0Ex0I0ouZGLy3qx3tyyFqpmy6L3ebMs9yX8/O7Ssi3KODR e2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dbVUYvls; 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 b1-20020a17090a6e0100b00268307ac3cfsi4536157pjk.185.2023.07.28.05.58.41; Fri, 28 Jul 2023 05:58:54 -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=dbVUYvls; 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 S235637AbjG1KJK (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Fri, 28 Jul 2023 06:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235380AbjG1KJD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 06:09:03 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B57B35A2 for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 03:09:02 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fe0fe622c3so3275111e87.2 for <linux-kernel@vger.kernel.org>; Fri, 28 Jul 2023 03:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690538940; x=1691143740; 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=dbVUYvlsmxwElbn4bcO2JD0LdaBLJryli+XervF+09lsRIxfFCxEJSsZpgrQssOgsX bw28dzjPl2jv/VklY82FidURfubXTX8HV3EWeg/ClnksNx8CdItpuia7MHry03Ts0I3e ouMkPOyugZmLPVCAC26FlrsybVnb18WvEtAZBIP2ysGVGDPQPXfGH7WvisT+FXC80du+ F0F61Dekmg+eSuaHTVwLvPzMaVifrlEsXwIbLIgulRYfTD4mBXLWWuPzgkZtqI/19ZgH PH/5TH0XLUvZyQ9saogsTxg6/NBX6OIm/XWvG28U/HAVtyhfzHKjxKBuUBsq3eVtc1dL px9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690538940; x=1691143740; 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=ZoROnDQNbNU8MuK+i6QwfwsL+VT9eS9umBhkCmANfA3GAZ4lY1w6In5iXzCgmCSVHz pfE+znl+xLLqJGajYKhOQ+e7/YVqDaxv6mIJWEfEXJ/fVUEs+XwtAHuoURaatXz1y9vE dt3ZOaT92oNrlTE/tHPbZ7wS1ApRe98U3JA9f4mV081o/ZUkfBWlxtHoCRXpDNMWNVo9 YCg4Z1HqMOJZPcoRMIeSOqxMx4VYszheR5CaukPJF6OJizgBi01Db2dr/zUFfUQ/czg8 D0YlHvnfL73MEUZKEYLc3tsUAKyuMqEDinoWEyJTcevobB3bd/jBjhQup6xQzwT0S4pB u2mA== X-Gm-Message-State: ABy/qLbzAr73fJ3/uT+WcbEs5Eb6JMbTYjZQpKA0MEpSFwISh0tz0gyf tSoSCJak0K4L4cWPn3idVTse7g== X-Received: by 2002:a05:6512:78c:b0:4f8:5e21:a3a9 with SMTP id x12-20020a056512078c00b004f85e21a3a9mr1229831lfr.45.1690538940442; Fri, 28 Jul 2023 03:09:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 03:08:59 -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 v3 1/2] usb: typec: altmodes/displayport: add support for embedded DP cases Date: Fri, 28 Jul 2023 13:08:56 +0300 Message-Id: <20230728100857.471984-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230728100857.471984-1-dmitry.baryshkov@linaro.org> References: <20230728100857.471984-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: 1772669248976505244 X-GMAIL-MSGID: 1772669248976505244 |
Series |
usb: typec: qcom-pmic-typec: enable DP support
|
|
Commit Message
Dmitry Baryshkov
July 28, 2023, 10:08 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;