get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218393/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218393,
    "url": "http://patchwork.ozlabs.org/api/patches/2218393/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401-waveshare-dsi-touch-v1-6-5e9119b5a014@oss.qualcomm.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260401-waveshare-dsi-touch-v1-6-5e9119b5a014@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-04-01T07:26:25",
    "name": "[06/19] drm/of: add helper to count data-lanes on a remote endpoint",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7ec78c958e961b819767ae902015c0ac4e5ba645",
    "submitter": {
        "id": 90483,
        "url": "http://patchwork.ozlabs.org/api/people/90483/?format=api",
        "name": "Dmitry Baryshkov",
        "email": "dmitry.baryshkov@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401-waveshare-dsi-touch-v1-6-5e9119b5a014@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 498284,
            "url": "http://patchwork.ozlabs.org/api/series/498284/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=498284",
            "date": "2026-04-01T07:26:23",
            "name": "drm/panel: support Waveshare DSI TOUCH kits",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498284/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218393/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218393/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34535-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-gpio@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=HO2i+Brb;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=j7LiSgN9;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34535-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"HO2i+Brb\";\n\tdkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"j7LiSgN9\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=205.220.168.131",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flxXr0lNNz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 18:33:00 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 8346B302AAF4\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 07:27:44 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 11A103815CD;\n\tWed,  1 Apr 2026 07:26:57 +0000 (UTC)",
            "from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D45637C932\n\tfor <linux-gpio@vger.kernel.org>; Wed,  1 Apr 2026 07:26:55 +0000 (UTC)",
            "from pps.filterd (m0279863.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63171MPF3103827\n\tfor <linux-gpio@vger.kernel.org>; Wed, 1 Apr 2026 07:26:54 GMT",
            "from mail-qt1-f199.google.com (mail-qt1-f199.google.com\n [209.85.160.199])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8js233f0-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <linux-gpio@vger.kernel.org>; Wed, 01 Apr 2026 07:26:54 +0000 (GMT)",
            "by mail-qt1-f199.google.com with SMTP id\n d75a77b69052e-5091327215dso96174301cf.1\n        for <linux-gpio@vger.kernel.org>;\n Wed, 01 Apr 2026 00:26:54 -0700 (PDT)",
            "from umbar.lan\n (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi.\n [2001:14ba:a073:af00:264b:feff:fe8b:be8a])\n        by smtp.gmail.com with ESMTPSA id\n 38308e7fff4ca-38cb9f31972sm8638421fa.12.2026.04.01.00.26.51\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Wed, 01 Apr 2026 00:26:51 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775028416; cv=none;\n b=DfABJtsnjWKuyAQOEBWthYxuQu7Bezooqz/JL5e4lcIxnNNGYei4zmUcL4e/djvqYQxskdOpST7vQ0QtPwyyiUivKk1Eif/u/xL7hw90rQpH8KNRfMu4XadbKeACCG6d2BzbV2j40leCtIQiuXwSpny/IzoaOcyepAOV7HgCZZQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775028416; c=relaxed/simple;\n\tbh=HHcarmRqwtUT/YnQfaZxOlaXpKjrD/Y/4QHeex8uzNo=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=adnrDMJyzFpAHBiitkHfZA7mpv5LjRT1867OJeiX8rn20V7alZ7cEY10g6YbeTEieusAnCiWoKdlijL5rs65blVM8l00zW3vTY/D3ajmBdEntRKGAagPNxYpZcxZRad3nZJwq6GMmecBwsMOkxjivkHHwSAnI+WP0qO+XSBsiQ8=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;\n spf=pass smtp.mailfrom=oss.qualcomm.com;\n dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=HO2i+Brb;\n dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=j7LiSgN9; arc=none smtp.client-ip=205.220.168.131",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n\tFp6DewLgWhkxTtOGAF8HtbyDZ+xvVZUBiujky/Sm5BA=; b=HO2i+BrbJS3aiPtj\n\tv4kPGZNKYHHM86EH38RuVw7cei4j+KVK6xNRer833xxTv2tlTElZSKpgU5sPejLM\n\tBDip6oXrnV1PlK75RYJp6ugchKetW7zmQXWq7WWw9yDBj75EFaSvcQ8nlzmicbyu\n\tQLwpltl59LvbAJoqGZUIQwfizh/BK+55T8sSDdHSEky4cM3TuGiOg/bnI570NV9o\n\tkqDnzVKejNQ+/I8cTI+CSQdBiBd0Nz/v29xbuu55PrDUqyTrXnLJLH6cAgHgUsif\n\tpqiAYs6MWezMRqVjscd1Mv/Ey7o4icaZjcmQeSJgy9PQIFT4E5fVE25FUCzHr8v4\n\tveB8QQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1775028413; x=1775633213;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=Fp6DewLgWhkxTtOGAF8HtbyDZ+xvVZUBiujky/Sm5BA=;\n        b=j7LiSgN9nSwJy0BMvsgoT4QLN7iXN/qhqMrjFH4EM5+s/Dx21/7OzR8SfoUrnm6gY+\n         SoOU6oSubcwN2WdMJI4qgWXIuIM1XoCARvKDtNTVzOSkHvIBDfwstNklle8eCcs1TIr6\n         PZhlFC00lO5IZkW8Ni3McWdxf3EHWcWMWCgMhcdiniyrEJ8YxFLm/tYg3O1mXdVjOdNP\n         XJGBV/S30RbFr6ZpkQ0Yp6uaKEZ0H+ey43er0hakkFYpVKh4uCs7w7RrZPna8UzgojhD\n         o/KJuOs+cvj5InkiBIpv8RvzeiXDL5WAMwPmPrmI6kQBt57Fl0QxBkFgTlqM9ZiFb+OT\n         5s3g=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775028413; x=1775633213;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=Fp6DewLgWhkxTtOGAF8HtbyDZ+xvVZUBiujky/Sm5BA=;\n        b=BqHrgWPU+iOR5C8h37mehyVWn3DO0fLNfSCB0BrQ/zYna3bbevbkjZHcicz1wJHbRW\n         eJ7VlXrEihEaLaHjTvbG+/C4fqG7hCkjqaN1c+xbSupHwTVCNDBeSE9RgSZZXroOQoH3\n         xYenhxoynnmdRYGrOkUfAWGZ3cT+loMqD0DT9kEM4k7ugy1aWwe804C9cj1UibMBaKWy\n         Y2JO9NMxKSr9p9Ztz4/khLClr8IpeX2+byQBLMUqwSHgH4v7ap/fTbqTRaveDvguODR9\n         tUJqvd/eRXajCA+MiN3cPfgLrYXxwNCdcm5yu2mP0hmCJpHtu5WKCWaC6X8M/COVHF1H\n         PK4w==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCUK2q71607o5wS4cPbgdVMTsJpn2rJmMH7MQHT3Yz0pB1pj3rw0jNz+aUn9QIL49Kcx9BVdsegrlwQT@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0YxM1Aqh0SP41BgsuqixyWe5n9N4348d7y0G8BiZTi+LPUlc68OQ\n\tIkays2peHknflg7Q1jUn5Ydtd2px4IGLv5xhWlo1v+kzRrJaihm9h3DpVOpJwKdAa8BisP1853/\n\tK+0yIM7dyL/yoBcRCy2SzGQrTL5bkc93XCL6KA+yfdfp0WUC8kcjVI5V1HQ3yizwP",
        "X-Gm-Gg": "ATEYQzwdL7amFdWyE1SPDhTN1rJA9rL3w1go6BvfHIxjqLe501ndry76A8J+HqGJ5i7\n\te0nklMq9gmiyF+IrVgF1m+QvfiZhNGA+NaFMSTgV+A2MXz6Qq748mh9+68uKhLMN5Sz+otMpJGF\n\tN9LhDj/4wqhwoM3AvKv7DG8t0s255A196/eAIPA+iSRQqT32QhwgFQsnDIW/PTLjxhnKpvnMU8N\n\tBJQhsKig7xhYgxnY3o3LU4dGiMp+OQVwB/yV+JP3pLKtmOuTtAqDe46cHN4Rr84gsPud6yri/Vr\n\tfkckh1mUs0TDUyLMPDUn90qFzCEDqHq5qMO/E+702o2Y3e9sDuasCaNFjOZ1b+yyurvOqhlEtqf\n\twLlTt774wSfDZhVWpKe4WV4PKIUvQQkPC+jez+rxQ/mn9DWx7IgyS2vUYzbmMqLINCd7nnV5TrZ\n\t7Km5bltyCN51zH+QYzsmXOTyybnddZA+mm+aw=",
        "X-Received": [
            "by 2002:a05:622a:60c:b0:50b:3a6d:db64 with SMTP id\n d75a77b69052e-50d3bd40f98mr34192241cf.48.1775028413501;\n        Wed, 01 Apr 2026 00:26:53 -0700 (PDT)",
            "by 2002:a05:622a:60c:b0:50b:3a6d:db64 with SMTP id\n d75a77b69052e-50d3bd40f98mr34191931cf.48.1775028413026;\n        Wed, 01 Apr 2026 00:26:53 -0700 (PDT)"
        ],
        "From": "Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>",
        "Date": "Wed, 01 Apr 2026 10:26:25 +0300",
        "Subject": "[PATCH 06/19] drm/of: add helper to count data-lanes on a remote\n endpoint",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-gpio@vger.kernel.org",
        "List-Id": "<linux-gpio.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260401-waveshare-dsi-touch-v1-6-5e9119b5a014@oss.qualcomm.com>",
        "References": "<20260401-waveshare-dsi-touch-v1-0-5e9119b5a014@oss.qualcomm.com>",
        "In-Reply-To": "<20260401-waveshare-dsi-touch-v1-0-5e9119b5a014@oss.qualcomm.com>",
        "To": "Neil Armstrong <neil.armstrong@linaro.org>,\n        Jessica Zhang <jesszhan0024@gmail.com>,\n        David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,\n        Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,\n        Maxime Ripard <mripard@kernel.org>,\n        Thomas Zimmermann <tzimmermann@suse.de>,\n Rob Herring <robh@kernel.org>,\n        Krzysztof Kozlowski <krzk+dt@kernel.org>,\n        Conor Dooley <conor+dt@kernel.org>,\n        Cong Yang <yangcong5@huaqin.corp-partner.google.com>,\n        Ondrej Jirman <megi@xff.cz>,\n        Javier Martinez Canillas <javierm@redhat.com>,\n        Jagan Teki <jagan@edgeble.ai>, Liam Girdwood <lgirdwood@gmail.com>,\n        Mark Brown <broonie@kernel.org>, Linus Walleij <linusw@kernel.org>,\n        Bartosz Golaszewski <brgl@kernel.org>",
        "Cc": "dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,\n        linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org",
        "X-Mailer": "b4 0.15.1",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=3274;\n i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id;\n bh=HHcarmRqwtUT/YnQfaZxOlaXpKjrD/Y/4QHeex8uzNo=;\n b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBpzMirf/D5V8Y5hyL+Zg63UnoU5G3+GGFvPWTA3\n 7U5rYhghZ2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaczIqwAKCRCLPIo+Aiko\n 1RVtB/4wGDo7gJsEJlTeeGYm6xCRzzyNAlOtSsGBTzAqQjHPPxemPBNkIIjpDpEz3WAVxdAhg9A\n z3CJpRTKg2RDGPZjsDcfkwEhklLBd+HYehWEO+wPo9AbfvKZA8sAW51n5xjPOHuoVtuc/sLzp+I\n S7V8xpBqtx+0B3QlWtjtT4wT+V3nM8h9gJ97rUPvUMnOpeutrDFhB3puaTciW2MnLmCaEHJfveV\n nuRAV3XJkr5oFj01gfqI08tlheFfBvnTt0HdEk+KLBZREem9VRaSYf+rk+ZnBa2Hdgm6yecZZ7h\n 8ytRBoa6UKtwFtSYKd+y7TpqPuKaoroauh6BtknYEVstJS5Q",
        "X-Developer-Key": "i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp;\n fpr=8F88381DD5C873E4AE487DA5199BF1243632046A",
        "X-Proofpoint-ORIG-GUID": "VytAIApR9DrDQS-EOIDhfRNRZrJmJ8Ld",
        "X-Authority-Analysis": "v=2.4 cv=XfqEDY55 c=1 sm=1 tr=0 ts=69ccc8be cx=c_pps\n a=WeENfcodrlLV9YRTxbY/uA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8\n a=O3ifdCkKFGgQ8ueZnWQA:9 a=QEXdDO2ut3YA:10 a=kacYvNCVWA4VmyqE58fU:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDAxMDA2NCBTYWx0ZWRfXyX44lx1plm/P\n m77K9REj3jNHohu+G+JI2yHAt2NxYQwV/vWMkc0+9y24ZQwu+92Z+6yxrgSHkTI8ARzAanLRNb2\n o1RZj/cak1Uu/ZrdesU/u9bewN1nG3kU64oAK/ybWB9sSMiiliOyx8TFgeLjGCmMFmJfa59ckSh\n 5wXy0Qanemnk8SZ3yqIpIVI89+SSgCx9snMnSYVuAn8y5fu7yGcvNQnhk3Fql4bCHLQ0/ch7SNY\n 0e1bpYplNLshKQfxXVjNr7y4OvRUX0w1b99eCVXl8XFeQo/As/SVd9LZFo0cKHtoUk13JhDDBZF\n TuI4zH8Bpc1gSVtjs2z6HukRNBxj/clEv779GJan97dk5V27zHXviLz5b4WXkDgynqYYapkpf7u\n 8r1qeWSFBBXy6iBjCW8XV8Js0hq2TLt8nspwUeQMYs67DRy+vNDU8uygqF9pd4rOP0po3nvQdhn\n r5yovLBwR7p3A5W5LRg==",
        "X-Proofpoint-GUID": "VytAIApR9DrDQS-EOIDhfRNRZrJmJ8Ld",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-01_02,2026-04-01_01,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n spamscore=0 adultscore=0 priorityscore=1501 impostorscore=0\n lowpriorityscore=0 phishscore=0 suspectscore=0 clxscore=1015 bulkscore=0\n malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001\n definitions=main-2604010064"
    },
    "content": "If the DSI panel supports versatile lanes configuration, its driver\nmight require determining the number of DSI data lanes, which is usually\nspecified on the DSI host side of the OF graph. Add new helper as a\npair to drm_of_get_data_lanes_count_ep() that lets callers determine\nnumber of data-lanes on the remote side of the OF graph.\n\nSigned-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>\n---\n drivers/gpu/drm/drm_of.c | 34 ++++++++++++++++++++++++++++++++++\n include/drm/drm_of.h     | 13 +++++++++++++\n 2 files changed, 47 insertions(+)",
    "diff": "diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c\nindex 4f65ce729a47..ef6b09316963 100644\n--- a/drivers/gpu/drm/drm_of.c\n+++ b/drivers/gpu/drm/drm_of.c\n@@ -558,6 +558,40 @@ int drm_of_get_data_lanes_count_ep(const struct device_node *port,\n }\n EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count_ep);\n \n+/**\n+ * drm_of_get_data_lanes_count_remote - Get DSI/(e)DP data lane count by endpoint\n+ * @port: DT port node of the DSI/(e)DP source or sink\n+ * @port_reg: identifier (value of reg property) of the parent port node\n+ * @reg: identifier (value of reg property) of the endpoint node\n+ * @min: minimum supported number of data lanes\n+ * @max: maximum supported number of data lanes\n+ *\n+ * Count DT \"data-lanes\" property elements in the remote endpoint and check for\n+ * validity.  This variant uses endpoint specifier.\n+ *\n+ * Return:\n+ * * min..max - positive integer count of \"data-lanes\" elements\n+ * * -EINVAL - the \"data-lanes\" property is unsupported\n+ * * -ENODEV - the \"data-lanes\" property is missing\n+ */\n+int drm_of_get_data_lanes_count_remote(const struct device_node *port,\n+\t\t\t\t       int port_reg, int reg,\n+\t\t\t\t       const unsigned int min,\n+\t\t\t\t       const unsigned int max)\n+{\n+\tstruct device_node *endpoint, *remote;\n+\tint ret;\n+\n+\tendpoint = of_graph_get_endpoint_by_regs(port, port_reg, reg);\n+\tremote = of_graph_get_remote_endpoint(endpoint);\n+\tof_node_put(endpoint);\n+\tret = drm_of_get_data_lanes_count(remote, min, max);\n+\tof_node_put(remote);\n+\n+\treturn ret;\n+}\n+EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count_remote);\n+\n #if IS_ENABLED(CONFIG_DRM_MIPI_DSI)\n \n /**\ndiff --git a/include/drm/drm_of.h b/include/drm/drm_of.h\nindex f2f2bf82eff9..7bcc0ccfe0f4 100644\n--- a/include/drm/drm_of.h\n+++ b/include/drm/drm_of.h\n@@ -62,6 +62,10 @@ int drm_of_get_data_lanes_count_ep(const struct device_node *port,\n \t\t\t\t   int port_reg, int reg,\n \t\t\t\t   const unsigned int min,\n \t\t\t\t   const unsigned int max);\n+int drm_of_get_data_lanes_count_remote(const struct device_node *port,\n+\t\t\t\t       int port_reg, int reg,\n+\t\t\t\t       const unsigned int min,\n+\t\t\t\t       const unsigned int max);\n #else\n static inline uint32_t drm_of_crtc_port_mask(struct drm_device *dev,\n \t\t\t\t\t  struct device_node *port)\n@@ -140,6 +144,15 @@ drm_of_get_data_lanes_count_ep(const struct device_node *port,\n {\n \treturn -EINVAL;\n }\n+\n+static inline int\n+drm_of_get_data_lanes_count_remote(const struct device_node *port,\n+\t\t\t\t   int port_reg, int reg,\n+\t\t\t\t   const unsigned int min,\n+\t\t\t\t   const unsigned int max)\n+{\n+\treturn -EINVAL;\n+}\n #endif\n \n #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_DRM_MIPI_DSI)\n",
    "prefixes": [
        "06/19"
    ]
}