From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0A24C432BE for ; Mon, 26 Jul 2021 23:55:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C132D60F91 for ; Mon, 26 Jul 2021 23:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234055AbhGZXPZ (ORCPT ); Mon, 26 Jul 2021 19:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233809AbhGZXPY (ORCPT ); Mon, 26 Jul 2021 19:15:24 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A21C061757 for ; Mon, 26 Jul 2021 16:55:51 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id y18so13067805oiv.3 for ; Mon, 26 Jul 2021 16:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=aoD4jTfRbzylcA4bNLcfmr8Z+HRIOIxaPk90sso0ATU=; b=eQQhbr+z1dG29juiKiHPhvhbjUjYibakqGnSF4idMAK1hnTXJ3j2IVeHu37sbE1AIk nD5EMYai5v4xcjYBOPRRpBYhe50X/rIN3mKJ47uQiui9FNJ9cJ9Il+q1PE1UEpMocrOf Jokd9Bk5aK4znpuUCHl2Q09JwDeYHuWxCthT0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=aoD4jTfRbzylcA4bNLcfmr8Z+HRIOIxaPk90sso0ATU=; b=fIIhdE2a1kMr+2ldFXekceA1of5Qcv4g+bhG6Ch6KK0cLLYUGC20oY1vXHKUi+FVst SsBqGf74Z0Rs7vrgB3wohMRyNpy56DPhinVz3QwcUfokO/vf3npytTTj926dJWORQLTQ WBiRben7dEDJ2x0fic6h8X97ClSjwDfssb0ArjqQ9n9vTGX6Z8TAYguAka0U9GSynDn7 MzblEuRw8QP+1LXzuxsBKUOXvhbD7uk1Sxkxj+L/YvDDnL8UXtAjd2ympst+eRokVhRO cCIJLGvR4BI4/6wQYTpQPRt0L0nTXnndhUPESYWE3XiMNwhT7Pu3BdqTG5Y9q/ZnxBC9 jhJQ== X-Gm-Message-State: AOAM531G5JKVhdg1MEjDnLmSpyE9zBsU2njPRcCikjrs2ayBFrj1aD33 quNMmRDCKZzGdrGw8FwRZQt4KzSn2Riut3cfG8fmWA== X-Google-Smtp-Source: ABdhPJw65cG9TGz3WiBUJWp99aUzz4g/0pjfJNvmUosztg4FLwuh1PpAx+TFNVLnqwkG0FMULV596wJRHK85NE7MZGk= X-Received: by 2002:aca:4dc6:: with SMTP id a189mr1129053oib.166.1627343751055; Mon, 26 Jul 2021 16:55:51 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 26 Jul 2021 19:55:50 -0400 MIME-Version: 1.0 In-Reply-To: <20210725042436.3967173-3-bjorn.andersson@linaro.org> References: <20210725042436.3967173-1-bjorn.andersson@linaro.org> <20210725042436.3967173-3-bjorn.andersson@linaro.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Mon, 26 Jul 2021 19:55:50 -0400 Message-ID: Subject: Re: [PATCH 2/5] drm/msm/dp: Modify prototype of encoder based API To: Abhinav Kumar , Bjorn Andersson , Daniel Vetter , David Airlie , Dmitry Baryshkov , Kalyan Thota , Kuogee Hsieh , Rob Clark , Sean Paul Cc: Rob Herring , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2021-07-24 21:24:32) > Functions in the DisplayPort code that relates to individual instances > (encoders) are passed both the struct msm_dp and the struct drm_encoder. But > in a situation where multiple DP instances would exist this means that > the caller need to resolve which struct msm_dp relates to the struct > drm_encoder at hand. > > The information for doing this lookup is available inside the DP driver, > so update the API to take the struct msm_drm_private and the struct > drm_encoder and have the DP code figure out which struct msm_dp the > operation relates to. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd