Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2650673pxb; Tue, 12 Oct 2021 10:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7UuKvt663Hec0kN8N1Dm1HrsS4IAI1Qrn0GOwO2rdNL0nOtN/tZTkPsWwcCyG9KwhBvXb X-Received: by 2002:a17:90a:1a12:: with SMTP id 18mr7835634pjk.113.1634060277589; Tue, 12 Oct 2021 10:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634060277; cv=none; d=google.com; s=arc-20160816; b=sr6l60uFpIhD5H70PttSq7ddTZFOhVb/BVRpjMkcwVfDV9rgjLIetrHd/7WbUnEWeK ghwzKg00ZcZwVtoqsY1fD0lF3+kJPVEJSB+DrJtODT8tNOBhHffurkqz+IKsynidU2nC FjAbz1iZbwtHho1qWCgNvEUEprNJ1jmozrZbodMY71oyHkBzfEHOQ12LP+NQEjGH4kA0 GCEX21Rc8PgnvABOG7Zu/72bsvzVwq5WCHuy7LDzvehQEu5jujRKLteMlzHyHaiOp22Q DDsPxlozoqKz3in+hVMSkx3Ow9wUz/sqRDp2tinD3ZvlnMdXIAGthxaQ9KeBIlfPD5QD dBnA== 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=2BypScO76h55G7PPwXnggV0DBtGQ8bEd9vyWr6bUXKE=; b=mzflf6RgEvS43oiyfwozzbscFCugggEXuHXnCWVekAG2Kxu70M0ArayHbesige3u8b RbbuzDgKaz2gh/igDHEBXrrixrnSzfPKLv66JPaKfAh3JO0eDLfY0/EPwwuH0z/1UVe1 7w72kAl3rsek3bnztTSbZF8MgY9MdOx691wnr7l1T2wpEG48s60KzOkOk5m5DFFN+XP/ CNG+pUMuRkkCbO3pxgMlxYzifx/JTpial5BpHQJsmFjJJZSzxFRCRfAY6+h3Cf770Fjo 4qKedILTjgNed7kD3Vig90l1xm/Ic6YiOlEFFztqK6fC8rF2nJLd5eIYulaMSoNdboki S6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wk+QXyGe; 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 d22si7007093pfv.30.2021.10.12.10.37.43; Tue, 12 Oct 2021 10:37:57 -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=Wk+QXyGe; 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 S230394AbhJLRif (ORCPT + 99 others); Tue, 12 Oct 2021 13:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbhJLRif (ORCPT ); Tue, 12 Oct 2021 13:38:35 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EFBC061570 for ; Tue, 12 Oct 2021 10:36:31 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id k2-20020a056830168200b0054e523d242aso280932otr.6 for ; Tue, 12 Oct 2021 10:36:31 -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=2BypScO76h55G7PPwXnggV0DBtGQ8bEd9vyWr6bUXKE=; b=Wk+QXyGeOJld76njFrWWdXYkW3GKfTQ/CyXWZkUGzuyWPJX+Pi+MoN3lO8gWfd27YA XEPw4irp+IJnOtcZz29Vo+/QPkJ65ex8DejKLsHs3fsas3yab01i91K14MykMq+BJyb+ qrZxf95YrZgFCXZtjSdsJwzrWfJKTTJPnuGOc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=2BypScO76h55G7PPwXnggV0DBtGQ8bEd9vyWr6bUXKE=; b=BHPmlL8VNFbBj49cnz6PbtJEfvHaXXB2Fy/n2CRsTI4rGo7PRaimZH2BvCVIZTGNC5 FBA6cdVGr1gm+Qq5yJPmeAdAIeP5R7NoeYrarOi/iuw5xFY5O9kPl/7UCOlW5fh/tXdX sH58Wb0HPgwLPBwpCwOuYBMQ0oRw9C26aawB+ls3Ph7if/jT+Bfhe7U+6YJee6BUd4fJ ysaDcTuXKr9xB17/LSh4QozbKCU8phJdcAU/DW8zwwO4dOfAY/UsUAG1RLG5borTsAtW rxM5DvsI0LjPIXT9XwXgjGUHJts0tZdbhWmk5ctkU3r+RsTPqnb1EarxKEvO7mL91xRs tKTQ== X-Gm-Message-State: AOAM532D/73UzHQilJAB10Ldp5VQ+tdZkmuSiS/QySSXNjus0mUlZAw4 KDD/4J0YH3so/SeCMvFztpaTNsFNqWxU87IOF1iJ4A== X-Received: by 2002:a05:6830:2317:: with SMTP id u23mr12874222ote.126.1634060190606; Tue, 12 Oct 2021 10:36:30 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 12 Oct 2021 10:36:30 -0700 MIME-Version: 1.0 In-Reply-To: <20211010030435.4000642-1-bjorn.andersson@linaro.org> References: <20211010030435.4000642-1-bjorn.andersson@linaro.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 12 Oct 2021 10:36:30 -0700 Message-ID: Subject: Re: [PATCH] drm/msm/dp: Use the connector passed to dp_debug_get() To: Abhinav Kumar , Bjorn Andersson , Dmitry Baryshkov , Kuogee Hsieh , Rob Clark Cc: Sean Paul , David Airlie , Daniel Vetter , 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-10-09 20:04:35) > The debugfs code is provided an array of a single drm_connector. Then to > access the connector, the list of all connectors of the DRM device is > traversed and all non-DisplayPort connectors are skipped, to find the > one and only DisplayPort connector. > > But as we move to support multiple DisplayPort controllers this will now > find multiple connectors and has no way to distinguish them. > > Pass the single connector to dp_debug_get() and use this in the debugfs > functions instead, both to simplify the code and the support the s/the support the/to support the/ > multiple instances. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd