Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp444343rdb; Mon, 29 Jan 2024 07:09:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwA35fzUWErM7pLsP8Qm6wkPr0vRSmcNkiHan5k9zbtdPZi6sOHLFSLRJdA6IlSe2ZhCoj X-Received: by 2002:ad4:5cca:0:b0:685:d5f3:aae3 with SMTP id iu10-20020ad45cca000000b00685d5f3aae3mr6476170qvb.20.1706540941666; Mon, 29 Jan 2024 07:09:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706540941; cv=pass; d=google.com; s=arc-20160816; b=nss4kWyr5uGR+dQfIJsImEagVPF6T4B9r2teTp3QyA3mBtO0Bn/X1yMJkzWB7Or5x7 52zXDqUnaPqtr/+h0p6+dRQw9Eq4utIom3avZ3eMQFWA1GDhGrioNPMQJpCD+BwL62nP R5JsGtSQK2xRxBs2Fa7EAKpzYerQxTqpgQMlP1qySeco5XeiPQIxX37cSVD9ABezOu5X 6NyHP6SKOMF075XLgpVOb15rjmOvs79q/wboCqoYjdWMrE8NFiBVRRToeJQCC5kWfct7 4ZTIiYAJPojk2ug1nnsjYdqFrQbNJAOMGJuySf/r6lLZAG0pNXs2csm8ntBW9/X9CpH0 XzYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=WHc0ySmd3+BUchE2A6eeEhPhJOTzoceSWy6/UF2YYmg=; fh=+ni++ku/0BB75myS+ht3VRzh1SUPvgz2aIY0AkEtZb0=; b=uGS5tn8VlthLEPM0RTmIhXOCAZFenlk3rX8A5L6DQt9/rL1lbdzO8XUYD0T9KRXNam dgESzlPKJ1W/PzC9RMkfA3yVgNAs5klN8NyVh5oyAynxgJuZjk0GH8n1s5oIzM7Vfzt/ G9WFShHKiWZ78VSR+j0Qt4N8KKPdyVtxH9CzzucKRb/zyGxhKfoGHwMMi3wZAga1rryU xhNu4tsnvkDQZA+fdT5n7zWY8ZBOpZz/omP4qRg08t2hokewvtctwZZdrEXk+WLMCC3M uDOtEA8KuwGi2SefT/NcWWZ0FSUAdzQz6sy5i6QNK2wakBwCnD6iOoOgojPN/U2u/WAH mZyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLQg21T0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-42962-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pt4-20020a056214048400b00681991637e6si7973503qvb.484.2024.01.29.07.09.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 07:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42962-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLQg21T0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-42962-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3055D1C20BF1 for ; Mon, 29 Jan 2024 15:09:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40E1515350F; Mon, 29 Jan 2024 15:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KLQg21T0" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA35A1534F6 for ; Mon, 29 Jan 2024 15:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540923; cv=none; b=DH7jbfioJrEXgIGJdQn5GFxLCnkYvrKG5sB+su9KMg7y+GPk72+vZJG3XKA3N6iqy2otYApRyeG6czQx9wWdNmhdcAI57ZU2jPMdgfGRMBFOHeYbENsODc3ONy17PLUz2NUFYCD9k543bKtgvKZliGuia83Sa2lHJZlBZPLN1gE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706540923; c=relaxed/simple; bh=7Ad9b8sC5p4drimOlyy33kQgcYMT6N80v45xUSMRDqA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JD2T61bsnkRws2WSvNDj4Eqv1NIw3LsrxGxMs/9PIebaATvW/xagKYTU3397czfFFgavhuAFjuEYGWoywGaNoH6445hpZSp3wFG39/NTc2ix3dhQe27sgWv9I/wsAO7zCdJPPIYzWSBvlfuvzKilF4tGftadXdmW+lsYi0A0rHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KLQg21T0; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-6002a655d77so24762647b3.2 for ; Mon, 29 Jan 2024 07:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706540921; x=1707145721; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WHc0ySmd3+BUchE2A6eeEhPhJOTzoceSWy6/UF2YYmg=; b=KLQg21T03+/PwPrp/bd8sHw9xBbxj4gWOBzAfzuAc0wnAR5lctlHxPGr/Z62PQkjZb 9o0YGarWzCHb7GBhhsuA3aCdXD0HNdDSXs/l66QHVEUE9Etn9m2kVw9jJY5LWT+1GLAz 5j3lUT+qz4KOZalNwE9v31ya2UyG7eIKMbVPeTRiY2u9Jchzr9BaPGAIqyEbqC07QCe4 R3JnOSibM43CNhMo5YNzisIqPdJhbhuA86URPbXiQ7+DrLiiUkwn7RdfEHyzZbKYr3yE aNheC1DR5pkw8O4YzSUFiR1SDTp9wNedA5Ca0HS4gwzs2bXllVQTHncPXZSfNBTRSBrC Cecg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706540921; x=1707145721; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WHc0ySmd3+BUchE2A6eeEhPhJOTzoceSWy6/UF2YYmg=; b=o3oNj5hK0SiPwCEHqsZiAacVllnjUxaXsKrgNAht4Dl1/7Pd8L1AOeH6De+w/BeRl3 cJXm0f1vs0qkKiYCPL8BJ2FKvquH8tgHx6WYHmYHEgP1MVo4Vg29xO4BQLGDW2/i/tLF qHoOy3tO68aXaoKG1Jlv0CljBKyjo4M/h1nKm4gsE1R0HHzKaraGFGsIuBud9hId1bo0 mwMMHyC79jwOV4ee1pNK+XTtovNw6+MgXHBt3cucWQwnej5NK2Or65Hvrnd3aRMEVGGZ J4JcyXy1II9bCeNEbrKPm26KSKOVikaWa2SvAmYKQPfar5vDIwIFltneo+a+uicgRUhm hVNQ== X-Gm-Message-State: AOJu0YzgYGmh/Op3TWJ7xLBLqAm/T8Lz+LJ3d1rDGGOjtJuXGtFr7YNZ ZdFShn04wSLIodDx530lMMtzs2rTNd134MnI/IeMm/VyWjRNTUuwhuwmdoFexA89bOoIGEg+sAP XemLk1xh/dL5b3f8kxyA9I0tjOmgWXYc14iQNcQ== X-Received: by 2002:a5b:18d:0:b0:dc2:23cf:6ada with SMTP id r13-20020a5b018d000000b00dc223cf6adamr2403587ybl.73.1706540920775; Mon, 29 Jan 2024 07:08:40 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240129-x1e80100-display-v1-0-0d9eb8254df0@linaro.org> <20240129-x1e80100-display-v1-4-0d9eb8254df0@linaro.org> In-Reply-To: <20240129-x1e80100-display-v1-4-0d9eb8254df0@linaro.org> From: Dmitry Baryshkov Date: Mon, 29 Jan 2024 17:08:29 +0200 Message-ID: Subject: Re: [PATCH 4/5] drm/msm/dp: Try looking for link-frequencies into the port@0's endpoint first To: Abel Vesa Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Mon, 29 Jan 2024 at 15:19, Abel Vesa wrote: > > From: Abhinav Kumar > > On platforms where the endpoint used is on port@0, looking for port@1 > instead results in just ignoring the max link-frequencies altogether. > Look at port@0 first, then, if not found, look for port@1. NAK. Platforms do not "use port@0". It is for the connection between DPU and DP, while the link-frequencies property is for the link between DP controller and the actual display. > > Signed-off-by: Abhinav Kumar > Signed-off-by: Abel Vesa > --- > drivers/gpu/drm/msm/dp/dp_parser.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_parser.c b/drivers/gpu/drm/msm/dp/dp_parser.c > index 7032dcc8842b..eec5b8b83f4b 100644 > --- a/drivers/gpu/drm/msm/dp/dp_parser.c > +++ b/drivers/gpu/drm/msm/dp/dp_parser.c > @@ -97,7 +97,11 @@ static u32 dp_parser_link_frequencies(struct device_node *of_node) > u64 frequency = 0; > int cnt; > > - endpoint = of_graph_get_endpoint_by_regs(of_node, 1, 0); /* port@1 */ > + endpoint = of_graph_get_endpoint_by_regs(of_node, 0, 0); /* port@0 */ > + > + if (!endpoint) > + endpoint = of_graph_get_endpoint_by_regs(of_node, 1, 0); /* port@1 */ > + > if (!endpoint) > return 0; > > > -- > 2.34.1 > -- With best wishes Dmitry