Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10035991rwr; Fri, 12 May 2023 02:56:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+tQcfR1P+MFfXO0ttDLBOmYeVTOs1UcZsUE3GM7FK0g//sHyRkY1yLXCFdbA+W85fuAyn X-Received: by 2002:a05:6a00:13a6:b0:643:d40c:7db1 with SMTP id t38-20020a056a0013a600b00643d40c7db1mr27284547pfg.3.1683885370364; Fri, 12 May 2023 02:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683885370; cv=none; d=google.com; s=arc-20160816; b=Xf9saUw1HNdCMLbf+jsQFj1OpWaig/s+Iv2qqe9XtdU36yRHczciuWlbPiQ4p05XO0 /2SSq/KoehLbwbz9tTApApXPYWku4kOSh/x0EN0aRS7SB1XQUNK4UVFvPTPxse80ORtM 9XHXTrCGZx7obtw9kF/60FvCOXVMwM5JO2LZqPeGhr680FC+pdNCgaqdtWF0FNVox60Y 6EpNu/oUyHdcHThJV7slOGFhrstf8CnH2z9hci4opy7Lad7khKxes1OCOGf/JWOkf+mv ONtAQOHtcUBrKlV0prJYuydMR4ETJSMt8qfJXnJ9N8WQbm0wRT8Ud0aCiCg148INVcoU PHnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bOV/7zm13mqlfSmBCt1ZY05i2xJ/4FcHIZBO30kOI1s=; b=P0qUqf3QOwyMvIZIjwzRc6TIhu1ggNo0BX7YDnYhKkA3NNSZ/LfoNc6OAsTgwbXMgs hiz7g6PiFaP9lYekQYW1TRkHVnT5nSGml4oSO2dsDSrE3FNAs+66nfi10jKDyyuJp/d9 Zzvn46BHqjU+DLA1dAbusqlzoMSramPkCm7UVCM0M/9haXQWZsOOn3ULDpijGE9y+d6N 4Y35Gd+/pt+O16kSYdbBwxyLWzfSBsny7WLmCDfSuso3hdQdNEf+W0+bxp2a67bAVO0D HmMZ52F06tNrSeJ7f6VLXnmhS31mFo2n1SeLx0QXI77m0bmC7GYOZBwEUwkey/UfkeNF 3xiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HUoacoqO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a637059000000b0052c89d50011si9350021pgn.676.2023.05.12.02.55.56; Fri, 12 May 2023 02:56:10 -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=@kernel.org header.s=k20201202 header.b=HUoacoqO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240240AbjELJgy (ORCPT + 99 others); Fri, 12 May 2023 05:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjELJgw (ORCPT ); Fri, 12 May 2023 05:36:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C0B5FCD; Fri, 12 May 2023 02:36:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EEA3864F4E; Fri, 12 May 2023 09:36:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49013C433EF; Fri, 12 May 2023 09:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683884210; bh=sFzboBVIPgpCAMpaLOZuuYbAaS8obMt0kAlpbkh4Lus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HUoacoqO9ZEu6OVD9XqX296JFFGvcazTM0Qygj9vWVTL9FaBMQyw+mA3/u9inJ68K LUNfF8oWxpnEg796GF1QXupnsiEEShj1dZWnC1N+VFJ8kEtpx5U2t4mQYDm4QGPSVO VcV231jBkWVigcVZP/Y8yHaBpn8Y6/bkPBQ5vN6IISK5v2kIVyZ5rvtAGgfT4jgWux 4Jz/OR5Tnc1ss3hD5d0CuV4dP1wPwkulzN6l3UCS4A/2DxhLqmytlY23Lb746pkgFQ kHkcKH3zTY4RaCgz79U23o0gS1K+WivTaHbP7ixDnGFzS/v5pdB/97GFKVO8vFQEso 7hYohFzG67iVg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pxPDB-00039Y-Ad; Fri, 12 May 2023 11:37:18 +0200 Date: Fri, 12 May 2023 11:37:17 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Bryan O'Donoghue , Abel Vesa , Steev Klimaszewski , Johan Hovold Subject: Re: [PATCH v2 6/8] phy: qcom-qmp-combo: Introduce drm_bridge Message-ID: References: <20230510031930.1996020-1-quic_bjorande@quicinc.com> <20230510031930.1996020-7-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230510031930.1996020-7-quic_bjorande@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 09, 2023 at 08:19:28PM -0700, Bjorn Andersson wrote: > The QMP combo PHY sits in an of_graph connected between the DisplayPort > controller and a USB Type-C connector (or possibly a redriver). > > The TCPM needs to be able to convey the HPD signal to the DisplayPort > controller, but no directly link is provided by DeviceTree so the signal > needs to "pass through" the QMP combo phy. > > Handle this by introducing a drm_bridge which upon initialization finds > the next bridge (i.e. the usb-c-connector) and chain this together. This > way HPD changes in the connector will propagate to the DisplayPort > driver. > > The connector bridge is resolved lazily, as the TCPM is expected to be > able to resolve the typec mux and switch at probe time, so the QMP combo > phy will probe before the TCPM. > > Signed-off-by: Bjorn Andersson > Acked-by: Neil Armstrong > Tested-by: Bryan O'Donoghue > Reviewed-by: Bryan O'Donoghue > Tested-by: Abel Vesa > Tested-by: Steev Klimaszewski > Tested-by: Neil Armstrong # on HDK8450 > Tested-by: Johan Hovold # X13s > --- > > Changes since v1: > - Wrap DRM-related code in CONFIG_DRM guard > - Inroduce DRM-dependencies in Kconfig > - Dropped dev_err_probe() usage Reviewed-by: Johan Hovold