From patchwork Wed Dec 15 10:04:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1825 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F27713F157 for ; Wed, 15 Dec 2021 11:05:17 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id c15-20020a63ea0f000000b0033ab6c73a4bsf6272336pgi.20 for ; Wed, 15 Dec 2021 02:05:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639562716; cv=pass; d=google.com; s=arc-20160816; b=YCkDMyZ4TkFOhDfqmfqLTTNdvM/7H51Bc6wg/kMOhPGAMpcYq65PvD15VlP/7o6z8J dXGW4USZrztsqTG5Vav5YCiYd8tk9dkw51mgotJxtBESUFJQHJcGJK3orwnzXNrW4hpR VCmlrXT3M3FdG3v6D6t1kaDNlJ+pz/vlbgnpwSLmqm/rqB4fSHqx4CnH+kw/x0KiZ8zY PAdJ5jKJtlLMnpvp91HMGH1AiXB040kePT1weIwH00etfdyy9OLfbbQuFGsISWerKbJK 4jEaRILIiacOw+CB9AmvFjA8GGzt+PgvfcM8F2oz1Z3bs+1fI6GOCtXB/LXQ/LRzW1Sr DcsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=O575C1+UqHoxR5VG34AELMa9PC1GRfXEYeIQNXxH5nM=; b=zTrfjIeZeS3EFbl8//va0omniOZhBWiEdgsPb2i21zobbUhLXmlryxWdpaxXuplXpf fqILQsECF+RHNVcD7QsaZKgFHJNuD6ulqafamm6O+odbqGDkYDqZaac5i5qVDeRsfBBC k6FKp6hcaaQ23G3D6hatp2rz/XIgHQtFBzNGJeeikjWC4Hqj+Q3ljpXPPutEtFh0UyKP qTx4zoe37WFf/eoKMS+s7n7J6WE+bC8qppiZVw4rU/WiyocfolG9wZePf1Jx0QnKBoy2 7Z0ipGpuUK5EyU7HFrmmFioCTg0+X4Skc59iWuLwated1DP8pqBJPJaKfX0NXGPlNmId LNzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=frgDETcB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=O575C1+UqHoxR5VG34AELMa9PC1GRfXEYeIQNXxH5nM=; b=disrGxYYWwMmgETtCo2h64qg9CR+RRY6rWv3WDlBK8gytk5J48Eyeo988jiZCeJCzi JQXkwYcYi3RZQQIkVcHlngUiqRPzuzuiH/hRgShg3FvLRfjy+uL1Xu9Q1OH2ma/cMWVQ vfmooEdVnC53exFLVc8jHPgttapf+9uW87vMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=O575C1+UqHoxR5VG34AELMa9PC1GRfXEYeIQNXxH5nM=; b=nBvjO3ldxSHI3VhYOJq+eiYDh2/5rpsf+PqxoauhNbOPA75QpBvRcPRfvCfTMjVnRH gNLQN5dz7p1XEKcJE46uI4AjoY2o7SAPKhPU48HX202isbTTOequyaFD14xoLYCPs7oq uanmaMb3qG35nSSaAn7xP2mTer4kz7qfJbeZ/U7wFgM6MrRHYtYyJfmTWNDqStxlz/M+ VtJjzJ94b8YUG5H7tA5eNLJgqjalq7mAPIHim3KkHD3J9ik7GkDFoDamLg7nqmX+66nG 7LGAmq6iFR5vbBhN+rHcw5Fct9ukm70kUp+8PUHS4siarJ3HeA6QhDzFRKlE510tibgN vFTA== X-Gm-Message-State: AOAM530mVSPy1qrZAx4wqvh1VWALCR9cp/NEkGGR/mAYuT14X+Vt7Tyq p3teeIHJU7ICLDNAXmEWpjILzpMi X-Google-Smtp-Source: ABdhPJzimvR2K3fpBhoJM1Rd8uGU4LIIWNx1rPBAZxTYJDsrnG5Q3wZILjHkwYFZ1O44XNUyxYEjqg== X-Received: by 2002:a17:90b:1082:: with SMTP id gj2mr629836pjb.187.1639562716020; Wed, 15 Dec 2021 02:05:16 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4509:: with SMTP id s9ls679296pga.11.gmail; Wed, 15 Dec 2021 02:05:15 -0800 (PST) X-Received: by 2002:a63:3446:: with SMTP id b67mr7357692pga.424.1639562715279; Wed, 15 Dec 2021 02:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639562715; cv=none; d=google.com; s=arc-20160816; b=nDYPwIaIFqd+wOfwGi6c839vs0Qe6Cgs48jzzAXZoQ80a7+fXOw9tjeuSmkI3h7e9P aFs7xyskqt+alCTydhJPFEpZg2O04JyVmNDdFRlgdhBSmdQkgyMJCAdfyjIw8wyggZ00 fLigGyHqDOVXV5szhiNM65gY74dN+FaXu8G/V+fL86bw6tlsuOOZFCkxo6soMns4UDLU IuVmVxzGPAhks0P4/3wKlRRYbcbTxsuYCBpr7o/HTNAHMh/yosT+GsTPMsoYbHTrtIAF 8ePpmzGtMuCodjKxHjiaFvWOEagtmP2OJkT5hLI+32s6J450XNQUTRyW54Rk0wpR1CEb LoXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=s6I6PVDiB5pjSFYBufZhX7FLrObvdsszj8DUlsHONsA=; b=VLps2n+OGocO/n0pampewEGXHu+PyeSck6cuanh00/kVPxMGIEJDVxNDQiIXXDBLiG ahkaWYNc37Uju1TjPcrERvx63klNUJVlOUisawTWN0ncpovRJ3MEaOOg5optrwZBDvbK Vvmsppxiht2D4NKYLYYVlPaj4Nzt50jGENyr9sb4n5B02Nz+WWG36YP13TuPXqDmqqzr 3V68yJjnLuk7mEDIZSt7qm2IEgPdpa3pYDpPWOZ84yi4D0SAkA1X64NPAZeGPGjpaj8C vux+KEShKebVv0MOBmgaaJRTxrI506550UhIPeWxkAGbJaaDtNVjntS3wYd+WJki6Rz2 7r5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=frgDETcB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u3sor846684pfk.41.2021.12.15.02.05.15 for (Google Transport Security); Wed, 15 Dec 2021 02:05:15 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:fe4a:: with SMTP id x10mr7181417pgj.531.1639562714968; Wed, 15 Dec 2021 02:05:14 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:a7:8328:d9c4:5bc9]) by smtp.gmail.com with ESMTPSA id e7sm2050014pfv.156.2021.12.15.02.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 02:05:14 -0800 (PST) From: Jagan Teki To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Marek Szyprowski Cc: devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2] drm: bridge: tc358764: Use drm panel_bridge API Date: Wed, 15 Dec 2021 15:34:59 +0530 Message-Id: <20211215100459.44196-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=frgDETcB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Replace the manual panel handling code by a drm panel_bridge via devm_drm_of_get_bridge(). Adding panel_bridge handling, - Drops drm_connector and related operations as drm_bridge_attach creates connector during attachment. - Drops panel pointer and panel healpers. This simplifies the driver and allows all components in the display pipeline to be treated as bridges. Signed-off-by: Jagan Teki Tested-by: Marek Szyprowski --- Changes for v2: - s/panel_bridge/next_bridge - drop unneeded headers drivers/gpu/drm/bridge/tc358764.c | 104 ++---------------------------- 1 file changed, 6 insertions(+), 98 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358764.c b/drivers/gpu/drm/bridge/tc358764.c index c1e35bdf9232..dca41ed32f8a 100644 --- a/drivers/gpu/drm/bridge/tc358764.c +++ b/drivers/gpu/drm/bridge/tc358764.c @@ -16,14 +16,9 @@ #include