From patchwork Mon Oct 26 11:10:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 3752 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 8C72B1C0B67 for ; Mon, 26 Oct 2026 12:21:59 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=qualcomm.com; dkim=pass header.d=oss.qualcomm.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-26899-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-26899-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 0A6B4605317 for ; Mon, 26 Oct 2026 11:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793013093; b=J5qVMIIkOzFibkE+ORHsW/FDCfVYm8A+my5zx9flk+pqglV1dwIyAc9G0NL0ZZUZ7WdN X7PJg7FIk7NnuuMaT/K0KwYkVk6E/5eXr1ES0mOZs9MpgTUf37mkC6TbNOHSRiGTIjW7E QH6RXYqbWH5EghmoLWI7ozdmrau5zi1m4L7uYLMS5OIv1VtVl76rnBSwKoxcx2SD83ruy /X7kpTFfuC9I241wlP/Io2Wcy0JdNTNRhF+7f7cyMJVgTgehscdZAjlQo0DLjYzcijh8g p2tjUhcWDHaJ8qpW4wDlkky32A4r1V6TYBBBxpz4cVYUYLWSOwHBCMVpXuTL273H9Mg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793013093; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received: Received:DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=4O9H3HrRsFsbm+GWGewBaANCzC7cmfTIgsKp8aEhS6o=; b=Pdb9lIQ6ClJ2MAFXv3gMHkFnIDR4uTSx1KeHyehMwgfAIHOUBBEbAINH16E6ZW5ZNkIZ cHtBWv91mGDSXITN/PNns1XaLS6AwD5wigcCCo90hkAPKhcJIwZTEwncQg5Vvs11BcKJz DrRvSXVRdRuJVAYILt1IfZBtjH4h8alhBD+r3MCsI8R3HNHQwBDQz1yOXOK8DX9m6ho9A OCzYXmYrtaToY39lPi3Wsu2orlv82ZE2oF63u7CU1UXHC3oJjlUeb4hD6hjCRjWVMg1yh mCPdS52Gr9dJdhzB0Z8uVlc1D7vRnB7MbBa5n9C/Ffqwmx17ZUA32F3qp/7adFIkURw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=N5M+Dq9Q; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=NTsPk4ez; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 787DC6072BC8; Mon, 26 Oct 2026 11:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=N5M+Dq9Q; dkim=pass (2048-bit key, unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=NTsPk4ez X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793013093; b=mw7cCdT53JijsGSpajA4nn2x64Nf17aIbMFLpqyQlHDMRquEZVLLMz+UDrsD2a1Qfb0c /fxASEtMkz1F9FvGMG6+ci1kum2eobBh72MJs5Yv3xbjH3qBN5vpBGbuXQ9p9iEo19D+N 2L+NGIFs5Nzm/PgNUEZsqHk6Q+QwOgK6wtnmfUY9HmjAZHwBwepezt4yUgt8zwbSByo+x RAzYZddxkEIGcIg8w8YF+zfju2ffFnjdWWTM5Aqrys2QC5OqbRcP42rNM8P927ep8jPo6 LIV/ESt8WpQ89Ss8JiSbLsniYAIijVFplBnb4ufUi8gbpFsioWfyMBLRBNlWz3mdVyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793013093; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=4O9H3HrRsFsbm+GWGewBaANCzC7cmfTIgsKp8aEhS6o=; b=j2jNNzTeDUujW6uMY6SBkypFLA+vMWKd36jsrDFT88da4uVBjmcCusul2eWrij/6ent7 Ych8+IM0tLQ7e5RzMbj6ET5m9GIgKDqYVwy1dSxMLL+wVHlEut8M5neRSLP7Ayg/KFXdT xOQK1F/6hUXa4VVYpLQib/fk0qDmkZHQQ/bP5/gyTnfrYyBeoRI7iJA+rBa+eVhpjKMGr EcQ9tg8c1vjyQ8x82EsSy2qzZ463DxEMvPcxNVzZzPUer70Y4DCXxLyWyI7vJqviSb0QP u1EweStm2mCZTMcVBmnUj9RhbND/m10bBdr3cseIehicOJDb0rDoyZyQ1XzpDZRpsRg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=N5M+Dq9Q; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=NTsPk4ez; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F354D60A6F51 for ; Mon, 26 Oct 2026 11:11:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F354D60A6F51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69QAt9HW4126506 for ; Mon, 26 Oct 2026 11:11:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 4O9H3HrRsFsbm+GWGewBaANCzC7cmfTIgsKp8aEhS6o=; b=N5M+Dq9QVP1joRjl WOUq4psI4+CY8GNnh5ovkeh0EjwtPJFHVRKK/tD7tqJ2vyokaIeaSa2GtYnfEhYE wtmD/fSJz9EG/DdBBzW5imhl5QJa3jQjaT0PAR019W4Z/LuC4Q0TUV+hdRayDe+a Y6v46RQN+6Xmx285U3kQqjYiYN4J7RfcCQqcLXBOdyYbdLeDZvzDZZXLYXfuOeFy HLGIdcEsylbH3Z0NZ/SwEPINqy+TSHFn92GL89WZ4GMEp1R66RRvPHJa/V0dv0mS JJza3RTtU/0W6vzvRM2jmm1Mqf8GyvduwIU9KMoS9XKkQGaE3lyRE5VQUfylk6/K ZXUf1w== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hhshpt3vt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 26 Oct 2026 11:11:32 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93e92aad34aso609247585a.0 for ; Mon, 26 Oct 2026 04:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793013091; x=1793617891; darn=lists.linux.dev; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4O9H3HrRsFsbm+GWGewBaANCzC7cmfTIgsKp8aEhS6o=; b=NTsPk4ezv7qP41pdSQAUkGhGS2r5l8aSnC31lbDYFjiVa0cv6vqf+iVEJzg2idoG5Q qs4BE07yfXAe/zDQioOBTDs5OZfL0+hPdE62ITmGho5C8puDJENGcJO1Z8L7RFAasvSJ s1IUgP6Kh8b8TveugiyWJyFH7Vbp+/qGcmY9fS28GCz2O3ELXuLTOFKs4txq2TVKi1b+ FbQweEGLqT63PDyQGYRfImsp5hRGLUbOB5z9s7hP/r5UN2KpRr6g9xH3uwMWpcgUebku 8Jx/zW4LXj3bXEQ5k8mF7sbTt9OGb0wG2wVa+xVh20HVGSLbUfAPIKE21R+VmTbLuQvR MhLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793013091; x=1793617891; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4O9H3HrRsFsbm+GWGewBaANCzC7cmfTIgsKp8aEhS6o=; b=LFr8kp/CzLBBh+VOECoEozFiJTj4rMF4kZ6YtUSs6/bUPOi2wHNW2B+feYl/EzJzB0 js/XMt3E0xEQQN4JQTZQOIKXQQS4fwVwsq6kWJwFCLVEvTowCInTrLhI4jSs/u59gDM8 SkafUpTzIfTRijM7UEpCV4sEPTB5cOMFDsLS21tQTYXUrm7WZyPPM6ic78x4NZRI6eX1 6mw/BadXHBMp42Y6HEe1tKdKCmMS4nl74hxuVccj3UulD5IpKx61lmz4y7AHa3PaMRih LtzYb7jwx03Rctpu8Ow98d6uK4bsPtu7hUQGUAvHeICBFJKsn0y7G/NmZK/dpU5voBih YVsQ== X-Forwarded-Encrypted: i=1; AKwUvBx3SlUfU76bP/j48sG6alPBdbc/bk6E+XC5oV+LtzdEJxltBa1a3ytG/2zT/cjvAlskEqO/NSYUW5J2dw==@lists.linux.dev X-Gm-Message-State: AFq9FYKZIQCT2G4LWR/LRmlX/xYQfvek0vOfnjWQ8//ZoTUiV2J/nh+t MUh2vRZyHrE1VXM3cmUofahZN9ZV+peZ1mvtAKVo39UmOQPaV+Cta5c5xfAk/fwjPA/rubpeDuU SurR/rHhgH7P8u41QlwHczf/RcwqsRJKVzr8B2szBWd0rPHkhGFTdfqULSnuzKMxDdw== X-Gm-Gg: AYBFou1uimOklpDNLyr4uc5aoTLWLYXj6L76jlVsywI0YwRwze9/uupswl/rldnhQ0a 6gMg4J4TfFSIZKMSw/g6ucsrL1mkJE2grd5v/S1UM9jN6g1w7Sn3rIkbJfK5jVKlKW1gdynVRkp 3sPtZQX4HDOu83xEyXvlnZaKIXhKt6Ajwh+2ynyIqQYfJwC+ZaxkGeWfgp88JE68UfXQgZiQ9zq yww9ynk3LdpniFj/6Fk5L8hmgUHoPezzqOgDP9EBqFKcNtSCgIcEhXOF8wkxmPAx+4ci8cLPP1z dplcljxcRB6TvwbZwFl5/shm4knlnoVWLC7layv8vb7jgXRdhcn5e2vHfa56nfLGhor1kMiWMXd Ypw23SlhOCfwvwW972n5Wucp4QhOuPulo8KvW/YhMMzrWJSSbfz+/HEKSWUCAE2feQxVPsfu9G1 ON1807ecfhSvWw X-Received: by 2002:a05:620a:40c9:b0:93e:58a1:3da6 with SMTP id af79cd13be357-940ef988008mr907347385a.60.1793013090768; Mon, 26 Oct 2026 04:11:30 -0700 (PDT) X-Received: by 2002:a05:620a:40c9:b0:93e:58a1:3da6 with SMTP id af79cd13be357-940ef988008mr907336285a.60.1793013090085; Mon, 26 Oct 2026 04:11:30 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5bfb7a950a3sm1455459e87.68.2026.10.26.04.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2026 04:11:27 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 26 Oct 2026 13:10:15 +0200 Subject: [PATCH 26/35] drm/bridge: add the connector_init callback X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261026-drm-panel-funcs-v1-26-5e3070a3478f@oss.qualcomm.com> References: <20261026-drm-panel-funcs-v1-0-5e3070a3478f@oss.qualcomm.com> In-Reply-To: <20261026-drm-panel-funcs-v1-0-5e3070a3478f@oss.qualcomm.com> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jyri Sarha , Tomi Valkeinen , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Paul Cercueil , Marek Vasut , Stefan Agner , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Laurent Pinchart , Tomi Valkeinen , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Biju Das , Linus Walleij , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Jonathan Corbet , Shuah Khan , Randy Dunlap , Inki Dae , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Peter Griffin , Alim Akhtar , Alison Wang , Paul Kocialkowski , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Samuel Holland , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Igor Reznichenko , Michael Walle , Dario Binacchi , Jagan Teki , Jianhua Lu , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Jerry Han , Joel Selvaraj , Icenowy Zheng , Michael Trimarchi , Sumit Semwal , Casey Connolly , Michael Tretter , Cristian Cozzolino , Junjie Cao , Ryan Brue , Nickolay Goppen , Stefan Mavrodiev , Florian Fainelli , Broadcom internal kernel review list , Robert Chiras , Alexander Koskovich , Markuss Broks , Artur Weber , David Heidelberg , Dzmitry Sankouski , Yedaya Katsman Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-doc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-rpi-kernel@lists.infradead.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4134; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=+p5RUZhLB9ONjVanI2ibjcGEHsUQQIR/tz46EaICKxU=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ9Z9U+G8B/d3ZcYmPZx/LdvE79ePBTwP3d9ZBOfGxZiob L7Xtq64k9GYhYGRi0FWTJHFp6Blasym5LAPO6bWwwxiZQKZwsDFKQAT+SnP/j/poEUE35Pj9Vxs 8m7ui3yZtjG8/NGacaK4509uhDp3jP3Jkya/lr/Xy97wVJjhpaTk+ltHUj5ce/RYOOGja2Le/0w huVK3mh/HnnXXPdPd+EKhL/NlOPdxQ+Wnxqkbfh48GFq9oly17vgj78WlB2dt9jghmuy33vKJRo 9q3zaJkKNLPzDwi7+vuldfqBWeeTv1mgT7vDnGB++02zYkxLvn2bIbxiv/thC1dFNxmyRydQOj7 8qjMxu/KfntywvzMbnqIRZQEfPuwaRjuU1vqtszs2vWKlbZcv61EZU+eE27pG6iqKdCrIjbye4U fv6u54bK5ysLQkM/fnEy+HdcJ3yZ1uZtVmclFr37dqMGAA== X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI2MDA0NCBTYWx0ZWRfX6u7Y5hte35j/ a+xnRy/yfW5dD3H0PueOvwONO6wr4rYi6YFtoYJnoiAh2swXQXbagHHPi+AQZQRGCFwICfQO9vn MBH8jz3mRdILFsbVL+uA4uVlaN5dqo8= X-Proofpoint-GUID: _cgpxbicr7wj7Gw8gY0B2hoJy2W5fL97 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI2MDA0NCBTYWx0ZWRfX2n9OAMrbKFcF cuN9JUfT1rQXH4y0vVf4PBI14mJO0okiyl84cKOTZniaDa1stULGalWkpoJuCJNrc/6SJn+OkvY d160YTBISlIOqbS8X++15ePvE7IpYY/G7YlUlbwBFDEyE4yw0gyrXtS01ewgx4KWXFdSJsmANxX ffn1AdicrCTaD+ohFYdqdx38gzMwl54l56oQXdtAMmEOzD5bFyRS+1RqbdjuBYd3NexGjTJu+k9 MeGkmhau3S/GM3tzL3C/dSjKXFndz791B+13yB4GOyB1GsMoLVrmvEupFvU49/vsvcdo9lGppwB INVLY0Wys0ObEq7TuT34iVOF4BBto3lscQnfCy7bDL9QpC8gXPUu7Bdqu/+ZYaBzMHJufcoWgFV /k/TvAOG4JlgpyWjdDe9Ub/VkQmfifg5ZFVLPYkTA4onCmxQF2Dedgrd9trZvEWg+vVuUDv/h50 FNvwMtsXKitytkDK9Og== X-Authority-Analysis: v=2.4 cv=HZWB3SE8 c=1 sm=1 tr=0 ts=6adf3564 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=0bT5yVRSAMwfGHIoJaMA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: _cgpxbicr7wj7Gw8gY0B2hoJy2W5fL97 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-26_02,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 clxscore=1015 adultscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610260044 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-2.18 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[dmitry.baryshkov@oss.qualcomm.com,linux-sunxi@lists.linux.dev]; R_DKIM_ALLOW(0.00)[qualcomm.com:s=qcppdkim1]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[renesas]; DBL_BLOCKED_OPENRESOLVER(0.00)[qualcomm.com:dkim,qualcomm.com:email,sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; RCVD_COUNT_SEVEN(0.00)[8]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; TAGGED_FROM(0.00)[bounces-26899-noreply=patchwork.local]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74:c]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[209.85.222.199:received,205.220.168.131:received,2001:14ba:a073:af00:264b:feff:fe8b:be8a:received,100.77.114.92:received]; FORGED_SENDER_MAILLIST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[qualcomm.com:+]; RCPT_COUNT_GT_50(0.00)[98]; MIME_TRACE(0.00)[0:+]; DMARC_POLICY_ALLOW(0.00)[qualcomm.com,reject]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FREEMAIL_TO(0.00)[chromium.org,linaro.org,gmail.com,linux.intel.com,kernel.org,suse.de,ffwll.ch,iki.fi,ideasonboard.com,intel.com,kwiboo.se,bootlin.com,crapouillou.net,denx.de,agner.ch,nxp.com,pengutronix.de,glider.be,bp.renesas.com,rock-chips.com,sntech.de,lwn.net,linuxfoundation.org,infradead.org,samsung.com,sys-base.io,foss.st.com,sholland.org,nvidia.com,amarulasolutions.com,xff.cz,redhat.com,reznichenko.net,edgeble.ai,sigxcpu.org,puri.sm,huaqin.corp-partner.google.com,jsfamily.in,aosc.io,protonmail.com,linux.dev,mainlining.org,olimex.com,broadcom.com,pm.me,ixit.cz]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 8C72B1C0B67 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= A bridge has no way to take part in setting up the connector created for its chain. Whatever a bridge needs on the connector ends up special-cased in the code creating it: drm_bridge_connector looks for a panel bridge in order to set the panel orientation and checks the dedicated drm_bridge.support_hdcp flag to attach the content protection property, the msm DP driver attaches the DP subconnector property after creating the bridge connector. A DP bridge which is not a part of the display driver cannot get the DP properties attached at all. Add an optional callback for that and a function calling it for the whole chain. The function is separate from drm_bridge_connector, so that the drivers creating the connector on their own can use it too. Only the panel orientation is going to be converted for now, support_hdcp and the DP properties are left for later. Assisted-by: LLM Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_bridge.c | 31 +++++++++++++++++++++++++++++++ include/drm/drm_bridge.h | 23 +++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index e7f9e6d58927..10c8388594a3 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -846,6 +846,37 @@ void drm_bridge_chain_mode_set(struct drm_bridge *first_bridge, } EXPORT_SYMBOL(drm_bridge_chain_mode_set); +/** + * drm_bridge_chain_connector_init - let the bridges set up a connector + * @encoder: encoder the connector has been created for + * @connector: the connector + * + * Calls &drm_bridge_funcs.connector_init for all the bridges in the encoder + * chain, starting from the first bridge to the last. It should be called by + * the code creating a connector for the chain, after the connector has been + * initialized and before it is registered. + * + * RETURNS: + * 0 on success, a negative error code on failure + */ +int drm_bridge_chain_connector_init(struct drm_encoder *encoder, + struct drm_connector *connector) +{ + drm_for_each_bridge_in_chain(encoder, bridge) { + int ret; + + if (!bridge->funcs->connector_init) + continue; + + ret = bridge->funcs->connector_init(bridge, connector); + if (ret) + return ret; + } + + return 0; +} +EXPORT_SYMBOL(drm_bridge_chain_connector_init); + /** * drm_atomic_bridge_chain_disable - disables all bridges in the encoder chain * @bridge: bridge control structure diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 1981d24a700d..470b9c6cb12a 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -881,6 +881,27 @@ struct drm_bridge_funcs { struct drm_connector *connector, bool enable, int direction); + /** + * @connector_init: + * + * Called when a connector is created for the encoder chain containing + * this bridge, before the connector is registered. This lets the bridge + * set up the parts of the connector it knows about, e.g. attach + * properties. + * + * The callback is invoked through drm_bridge_chain_connector_init(), + * it is not tied to the bridge being the last one in the chain or to + * the &drm_bridge.ops of the bridge. The bridge chain is locked while + * it runs, so it must not attach or detach bridges. + * + * This callback is optional. + * + * Returns: + * 0 on success, a negative error code otherwise + */ + int (*connector_init)(struct drm_bridge *bridge, + struct drm_connector *connector); + /** * @debugfs_init: * @@ -1484,6 +1505,8 @@ enum drm_mode_status drm_bridge_chain_mode_valid(struct drm_bridge *bridge, const struct drm_display_info *info, const struct drm_display_mode *mode); +int drm_bridge_chain_connector_init(struct drm_encoder *encoder, + struct drm_connector *connector); void drm_bridge_chain_mode_set(struct drm_bridge *bridge, const struct drm_display_mode *mode, const struct drm_display_mode *adjusted_mode);