Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3959637pxv; Mon, 26 Jul 2021 16:58:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlUsbY3NgPuNaD4efQsMwfpOFRP5BM1ntalORtFQc+U1x/XIgc1vCm9SKwVgsyfr2BaHbQ X-Received: by 2002:a17:906:b0c5:: with SMTP id bk5mr18948465ejb.428.1627343910935; Mon, 26 Jul 2021 16:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627343910; cv=none; d=google.com; s=arc-20160816; b=oikUEnTrkeBta+SmPjgfR6vBhumti6Ec/lI/O1LpfUsV85xx3cCeNP5LScHEijn9cQ pMit0VljgL+8c27rch75N7ENDEoy/rmb0Hvfm7+Lgz0k8wPwXXcWduUeaAZvydEPPr6C joh8ErK/ApzyoHwf4q8ihuyTUwFgrDBZTnQeKPi2tpT6byLouz2nFtn6KKjhgf/+9pz3 2IMy3FXpJSktcx4xsQY7jX82dSYIrgwaInhMGdWcyyw3Ke8rNGPAE+lz8R39n8LdIgXG 7j5Atz4RpvQrvEG5NADvM+FRem0wuCkHIoiaNbS/C5jhpPmYLDvBJocc+usu4O44z37k Hc0g== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=aoD4jTfRbzylcA4bNLcfmr8Z+HRIOIxaPk90sso0ATU=; b=ViO0e1fONtrfXuaEcBy1tRX6jnUCkdXybtcFWAHzniAJPfj7vAq+ACDyZWYw+lXUJX LWYWtD+E+rI6Ap5oHQNNS06bUFrzwER9kRRExJWbluE+tutWCiEabijahFjh+aRofDFC hNxBlvuHfsh9Kbi4E6heF+sReR9qEL1Fg5D9wNXkp8ZzCA5dpIhdg7unDwsVGqruDNpB H3pEMxRleYSk78bTkLgWbiw0iC/ku+pDAQZfJUUwyoSouZtNBhF2zfoeW72o3vYq1Vau nEdPCEgEjo38I8XJtiV6FOBbvlY1Fq9oFTjwpSBXDCqJ4vOwnmfH2Rc3j54nwQO6368U rt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQQhbr+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si1354012edc.148.2021.07.26.16.58.08; Mon, 26 Jul 2021 16:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQQhbr+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233770AbhGZXPY (ORCPT + 99 others); Mon, 26 Jul 2021 19:15:24 -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-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