Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp172928pxh; Thu, 7 Apr 2022 17:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj0tpVeboC9eAoCDarf2cl4/RVSNz3wXLID2ytiZotMfWz67HgD9MG1//OCDechgeHMjFo X-Received: by 2002:a63:f718:0:b0:398:f14d:4915 with SMTP id x24-20020a63f718000000b00398f14d4915mr13040421pgh.9.1649379054678; Thu, 07 Apr 2022 17:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649379054; cv=none; d=google.com; s=arc-20160816; b=XvOheyO9GqGcD2z0/nvRz1RcIZRmp22UW6cPfUYM3VbOgXp+L9tFTAwtAHzAUPjZ+V luSxPQ51ShEgXiHx/7vNzidq1Xe6WZdHq7iGTAx8VQX7ovbQFcu2o7K8LAxuEGWAUY5y t928WjQXNJsvuTDuvZLBS/DMAqe2lZGcswxL2zb2eB7DiuNA7cz9wM7j68i242obGF8l Za5ti8jf1y99pkOROPpCwHAY9ROmjN5UJaIy0JncNPjxin4NSoqwO8DNgkiD0jcMc4dI FVwEF8rOnS0I+UBvYItVpEbZ6spfrD8U+0kD6fwT5m71JmvvwT7rwad5dpM9O1g+DlyC fNYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4AEJnP5mTsYddtMXtuB9PzpAwm62Zr/93tws7knCoTY=; b=UeedjVFDm8FOynkyArqBkiZpB38h/G8VcewlYftbrwpD33tSiUc8Nbwm/GMs9B/0oc mo4sKuqWz4y9B8dQJcj251UDf1aMXUA4mDf0JlnFXVVH91EetGmXeLu6+u/2b7KU08BM kgTQ83A+3Hsr+dsra5jhm7T6Rp/A0I5BC/TZO97DfdkW020mik9NmVafhBjXLBF10Dax MzcShUT4g/BNsxVnPr4hVDqv6XynYBpd+nZrwmBbzhszuCIJ9KeMbOM6e+mPNaHfFJsM /J947z78Ga+xseM7cMhymCXj0+SNaCMC2BgFtuowoxZo5QJFSYb+2jKfK6cu3qrSR0yn AEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FrYI2nBd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x41-20020a056a000be900b004faa21eb5dasi3323156pfu.244.2022.04.07.17.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 17:50:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FrYI2nBd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 857BF1DFDE8; Thu, 7 Apr 2022 17:21:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232972AbiDHAX0 (ORCPT + 99 others); Thu, 7 Apr 2022 20:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232868AbiDHAXY (ORCPT ); Thu, 7 Apr 2022 20:23:24 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F149116C0A0 for ; Thu, 7 Apr 2022 17:21:22 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id n6so14041444ejc.13 for ; Thu, 07 Apr 2022 17:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4AEJnP5mTsYddtMXtuB9PzpAwm62Zr/93tws7knCoTY=; b=FrYI2nBdk+yG/OOXXygzXyvL+ZpcWJWtKe8unV3SbCy1rXBwNnk84WeXyNP/2VlDJy Kg/uBh0NPlU2+DivSPdwyS8dsLdPzD8+y5xmEtYYC5jD30jJr5S+ozejI/3/UdKogkht sWSHEixJSYchJR9gauZlQDTuFx098SCzhXo+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4AEJnP5mTsYddtMXtuB9PzpAwm62Zr/93tws7knCoTY=; b=kqPswapqbc4I2gpnfeXYteR7qevnzjLnUtG6H3ZG3ugPc98ackbeIRdYyX6Xe+hSV6 n6DvPSwpdJ9EjLeIbpvqO646WhqVBQVugJWaZGx8bCcW9u/tw1Zm0oQYncHSh/rppPV7 w3Dv+zN1hKet7YU5vAv56Vp3hlZmBq2y/Er9GCcGRRYmDoyEwMPwAoqp4iDw2wwuPR4h hP5Avtk1lpT5BfczZ+FoxmndM0xJk6VGA6eRmSeaoQ/s5qd61bYLiIeWsq+3zebX5l7k pece7RzQnOi388MUBZjhSBCefgdew9zQVwII/AsAJVwTVQlW7NGzY2+Xa8XQPluYeJ51 z7tw== X-Gm-Message-State: AOAM531gE3Bs1k2mx7y+0i89mtu80InAMvVXVG4+7w1Pcn5v5eNFw3f6 497mdfqUObuFRZO6Dhy13h5q+Ro5VjIVP6FLq3I= X-Received: by 2002:a17:907:7fa9:b0:6e4:ba80:3799 with SMTP id qk41-20020a1709077fa900b006e4ba803799mr16242772ejc.564.1649377281306; Thu, 07 Apr 2022 17:21:21 -0700 (PDT) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com. [209.85.221.42]) by smtp.gmail.com with ESMTPSA id u26-20020a17090626da00b006e7cb663277sm5691921ejc.90.2022.04.07.17.21.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 17:21:19 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id m30so10574786wrb.1 for ; Thu, 07 Apr 2022 17:21:19 -0700 (PDT) X-Received: by 2002:a5d:568e:0:b0:207:8d1a:46c6 with SMTP id f14-20020a5d568e000000b002078d1a46c6mr3186227wrv.422.1649377278855; Thu, 07 Apr 2022 17:21:18 -0700 (PDT) MIME-Version: 1.0 References: <1648656179-10347-1-git-send-email-quic_sbillaka@quicinc.com> <1648656179-10347-2-git-send-email-quic_sbillaka@quicinc.com> <392b933f-760c-3c81-1040-c514045df3da@linaro.org> <3e5fa57f-d636-879a-b98f-77323d07c156@linaro.org> <225d2c0a-42ec-28ad-688c-e7e9e2035ee1@quicinc.com> In-Reply-To: From: Doug Anderson Date: Thu, 7 Apr 2022 17:21:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 1/8] drm/msm/dp: Add eDP support via aux_bus To: Dmitry Baryshkov Cc: Abhinav Kumar , "Sankeerth Billakanti (QUIC)" , quic_kalyant , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , quic_vproddut , David Airlie , linux-arm-msm , "Kuogee Hsieh (QUIC)" , freedreno , dri-devel , "bjorn.andersson@linaro.org" , Sean Paul , "Aravind Venkateswaran (QUIC)" , Stephen Boyd , Sean Paul , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Hi, On Thu, Apr 7, 2022 at 4:46 PM Dmitry Baryshkov wrote: > > > The way I'm arguing it should work is that: > > > > 1. A whole bunch of the DP init code should move to the DP driver's > > probe function. This includes parsing the DT, acquiring clocks, > > getting a handle to our PHY, and IO mapping registers. As far as I > > know, there's no reason to wait on all the components being probed in > > order to do this stuff. > > Yes. And that's one of the reasons I tried to stay away from the DP > driver. Each time I open the source code, my hands itch to start > refactoring the code. > > > > > 2. Once we have done the above things, it should be possible to do AUX > > transfers, correct? ...and then we can populate the AUX bus from the > > probe function too. > > No. In the DP case the AUX bus is inaccessible until the dongle is > plugged (see all the HPD handling, phy_init()/phy_power_on() is hidden > somewhere in that path) I guess my thought was that in DP you could still create the AUX bus at probe time. Then for DP you just return an instant "transfer failed" from the AUX bus if HPD isn't asserted. For eDP (as discussed elsewhere) when we try to do an AUX transfer then we delay until HPD is there. So we can still acquire resources (clocks, PHY, io maps, etc) at probe time for DP and create the AUX bus, right? It will just return "-ENODEV" if HPD isn't asserted and you're DP? -Doug