Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp44997iof; Sun, 5 Jun 2022 20:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1TpIWCbFoS/uQibd8T8wcmIFnlGRuj8vPULURnhvJvuZS++ivXd0A4pODlHOFcUJyiYtI X-Received: by 2002:a63:1422:0:b0:3fc:5a4e:d68 with SMTP id u34-20020a631422000000b003fc5a4e0d68mr19030348pgl.418.1654486575815; Sun, 05 Jun 2022 20:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654486575; cv=none; d=google.com; s=arc-20160816; b=mZ901tVOZPsrxb5ryqxr7UYfatKJ6O9/7s383DOzDaGbqGSxr+E95VyXIEspPttEHI Ador7XWzYCLo8HDorNryCqsk8Gk1d0FWHvNRAqtY+O76cv5hLmLEyXcvjFBxJacKTWfk pIdsfEyPIRLQzXXEdTvF7ehpdRsBCiA057SXCuSWzdTFfYULz1ThqQbzVozwKnhOpHYM Q2tHiENdsEzU6iXuxEsielOkvw+Lzpg3VGwuPjgpTtXblQIBHSXgS+NLofVrF/uVDWmi INwgD+H0B5xxTmhqELcSQFGxjSIKbLTWTjKJNKL1yI7favSQ/NCkXdJqQ60fhxHiMv58 uK9A== 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=XcPEK0q3mt1ouHTWeNMQyYJ2QS2WLPCsci1x61vNTCo=; b=RhXVdbnIP2ZPlSgW7kpdM60CoYKIlUbzMKG9c9UiL/0fQFog/BPbfVCbUlrkKQYjhq RT7i1swO2NPRJbqqX1WzWnjBZ71GJFzjcmSAu1XPsQrOkd4llrMwOJ3DbyUiARvOL+8+ qhhCL1CdjFIDIjrBqOy2m1Z1IJmq/QwKdMNhLKABFPdXWKSOIEnC7nZwK3blQKGbFKMi W1U8wIiBk3aSGSpe35LXBcGlxM9CxQvOPT4Vy3c8sfTX6/ulBVaGx7yb2dYq7qlqri8+ lDDwsj3Ch80UhyGRRlyQUMByW/GpONrG4QBJJCEIhEChsQ7qzAM7HcfTb1TX6IZGghW6 5U2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WrJVHTcf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e189-20020a6369c6000000b003fd91708012si5660154pgc.440.2022.06.05.20.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 20:36:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WrJVHTcf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 76ED6387A6; Sun, 5 Jun 2022 20:34:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239604AbiFBWSk (ORCPT + 99 others); Thu, 2 Jun 2022 18:18:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234670AbiFBWSj (ORCPT ); Thu, 2 Jun 2022 18:18:39 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F8314D10 for ; Thu, 2 Jun 2022 15:18:36 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id n10so12615274ejk.5 for ; Thu, 02 Jun 2022 15:18:35 -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=XcPEK0q3mt1ouHTWeNMQyYJ2QS2WLPCsci1x61vNTCo=; b=WrJVHTcfJLoL6zkwaUyGcH/jZkhVT5MYScztQxaxeuqyAXvuQ1DqBnZJlHxOSQwPiE C9w6a7IuWkfQ8VQm04IOYyfBadLWtG1DrSjYfzagsmIPc/pUTODWRQvJXcuEwtVg/6/P k3tfDSbYDhw0Sv1e+nUPKxMFJoo5OxybVavpI= 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=XcPEK0q3mt1ouHTWeNMQyYJ2QS2WLPCsci1x61vNTCo=; b=vU/yRfehbIIhN3d6Ka0UROuQUfJo44UqxAVO7pCdleIW0bG240CDWjJa2njEYUluJl qYVjxZVuor1/UkrYrE+CvDpFVri6Dzb6+s9R4s8o6R9DqCiYIYzDGIDFkg4aY8cnLfiC yIsHAW819IGpcTbcTfeoRDiU3xr/6L1zq3munpNV7rAItMepEEYmaJXxf+Oikw5rsbZa kEGZCncxvGWswyWJJ7wrJTaoWPceKJww0oTlVefk0sc9Sh4seu2yIaDTcjT/+4QLiRmz vGnRugCtlaedIvmV3UjFso9xjAkTJJUKglxrkYQaC+14RlyotdG3E1gARUGWE7FVQ0NB 8u2w== X-Gm-Message-State: AOAM531lTSZDx41zBLXZY6ZGBkYRFwj6liLU6kG1ohXZXDbQKyEFOQgO f+0Y9tf2GWOFqEsFagESKwE35VZ2Dxov8L8sawE= X-Received: by 2002:a17:906:6a1a:b0:6ff:7867:8079 with SMTP id qw26-20020a1709066a1a00b006ff78678079mr6146779ejc.740.1654208314300; Thu, 02 Jun 2022 15:18:34 -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 d22-20020a50fb16000000b0042617ba6389sm3025892edq.19.2022.06.02.15.18.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jun 2022 15:18:33 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id q7so8149446wrg.5 for ; Thu, 02 Jun 2022 15:18:32 -0700 (PDT) X-Received: by 2002:a5d:68d2:0:b0:210:31cc:64a6 with SMTP id p18-20020a5d68d2000000b0021031cc64a6mr5200892wrw.679.1654208301046; Thu, 02 Jun 2022 15:18:21 -0700 (PDT) MIME-Version: 1.0 References: <20220510192944.2408515-1-dianders@chromium.org> In-Reply-To: <20220510192944.2408515-1-dianders@chromium.org> From: Doug Anderson Date: Thu, 2 Jun 2022 15:18:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/4] drm/dp: Make DP AUX bus usage easier; use it on ps8640 To: dri-devel Cc: Hsin-Yi Wang , Abhinav Kumar , Philip Chen , Sankeerth Billakanti , Robert Foss , freedreno , Dmitry Baryshkov , linux-arm-msm , Stephen Boyd , Alex Deucher , Andrzej Hajda , Daniel Vetter , David Airlie , Javier Martinez Canillas , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Linus Walleij , Lyude Paul , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Thomas Zimmermann , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.1 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 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, May 10, 2022 at 12:30 PM Douglas Anderson wrote: > > This patch is v3 of the first 2 patches from my RFC series ("drm/dp: Improvements > for DP AUX channel") [1]. I've broken the series in two so we can make > progress on the two halves separately. > > v2 of this series tries to incorporate all the feedback from v1. Hopefully > things are less confusing and simpler this time around. The one thing that got > slightly more confusing is that the done_probing() callback can't return > -EPROBE_DEFER in most cases so we have to adjust drivers a little more. > > v3 takes Dmitry's advice on v2. This now introduces > devm_drm_bridge_add() (in an extra patch), splits some fixups into > their own patch, uses a new name for functions, and requires an > explicit call to done_probing if you have no children. > > The idea for this series came up during the review process of > Sankeerth's series trying to add eDP for Qualcomm SoCs [2]. > > This _doesn't_ attempt to fix the Analogix driver. If this works out, > ideally someone can post a patch up to do that. > > NOTE: I don't have any ps8640 devices that _don't_ use the aux panel > underneath them, so I'm relying on code inspection to make sure I > didn't break those. If someone sees that I did something wrong for > that case then please yell! > > [1] https://lore.kernel.org/r/20220409023628.2104952-1-dianders@chromium.org/ > [2] https://lore.kernel.org/r/1648656179-10347-2-git-send-email-quic_sbillaka@quicinc.com/ > > Changes in v3: > - Adapt to v3 changes in aux bus. > - Don't call done_probing() if there are no children; return -ENODEV. > - Patch ("drm/bridge: Add devm_drm_bridge_add()") new for v3. > - Patch ("drm/dp: Export symbol / kerneldoc fixes...") split for v3. > - Split out EXPORT_SYMBOL and kerneldoc fixes to its own patch. > - Use devm_drm_bridge_add() to simplify. > - Used Dmitry's proposed name: of_dp_aux_populate_bus() > > Changes in v2: > - Change to assume exactly one device. > - Have a probe callback instead of an extra sub device. > - Rewrote atop new method introduced by patch #1. > > Douglas Anderson (4): > drm/dp: Export symbol / kerneldoc fixes for DP AUX bus > drm/dp: Add callbacks to make using DP AUX bus properly easier > drm/bridge: Add devm_drm_bridge_add() > drm/bridge: parade-ps8640: Handle DP AUX more properly > > drivers/gpu/drm/bridge/parade-ps8640.c | 74 +++++--- > drivers/gpu/drm/display/drm_dp_aux_bus.c | 211 +++++++++++++++-------- > drivers/gpu/drm/drm_bridge.c | 23 +++ > include/drm/display/drm_dp_aux_bus.h | 34 +++- > include/drm/drm_bridge.h | 1 + > 5 files changed, 238 insertions(+), 105 deletions(-) I'd previously pushed patch #1. Now I've pushed the rest of the patches to drm-misc-next with Dmitry's review: 10e619f1f31c drm/bridge: parade-ps8640: Handle DP AUX more properly 50e156bd8a9d drm/bridge: Add devm_drm_bridge_add() 3800b1710946 drm/dp: Add callbacks to make using DP AUX bus properly easier -Doug