From patchwork Thu Mar 3 16:36:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1855 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E3C7A3F236 for ; Thu, 3 Mar 2022 17:37:38 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id d4-20020a170902f14400b001518350e5c7sf3186259plb.13 for ; Thu, 03 Mar 2022 08:37:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646325457; cv=pass; d=google.com; s=arc-20160816; b=sRu24LNCLmgmPuS1XMSVT0RHG7vJ/nZe5jGjRDmkawGDBXN3ORsAs5U91qPmNclYBr lt/GlkMBNmX4NeQN03BXyMwbqucgh/AMvOKm75d3df+xsgZ62JOLv4tROAfObUvhZOWq uCp5YbjdTAo14mBoXfboSGBRcro7hbvA+gS5MnRYZW+Gn4hjEYUB73G6qxIhXp+AH6F2 H6lSJi80BFqmdclvaISTUlPa4D6sIvnSip0+K1pII6oLTfDNA06607wlZiI30zBojKA9 QE5Zwo+lVmi4hOgwJ0KKM2fGJQ+13JQaUWpnlsHxhJYlWEaIkJSS5dqQzxdayTuvhN5W AqUw== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=nyeCj5KHl397Eda2H1VRMjkcJ2cXCmB6yxH9NgEZQjA=; b=LA1T1+TRezfDVZafHAGY/VHyv5V9rkA9DqK4FI34kiraHK656mU17GjtVO/zqwjgQH fXJ2KtdC/JAQyBjjj1umQEjkG/KdwAiP9uS7zK0vwGafgUCjkcX9ba8Xbv43n6CnL5Zb gYMq8irxPxytOmbckng0Bdbo6R3iZhsNKZ6H+0KWV8wWzbIxX0eTnyoGfi9rZ//EUtrD TnXt+CsPPCL8H+FWFPs/j5p9SeBF7UiExpxzoBMkpxpxL9yYkTkDbu1EqIrDB/o3EQU3 uLa6qbLSJPPDFcpK4TCKOFOCfr8vNcHwgjdyBo9tK3dnKI+gzYseZKNRdNl8A7zbH3mt Wu8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J2A6xeb0; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=nyeCj5KHl397Eda2H1VRMjkcJ2cXCmB6yxH9NgEZQjA=; b=M4kH+QD64CbPsZRXU8LN+ttNgmtQRaC+3aaHGu7EdHMGK9rMsrLYseK8Rv7qzgHCdy tHG5T9laWoD8vMWVcw1unfdNAqiuZM+mvsnOYuNNz8J9ewnjeyaMRmtLR34s3JvkPfTq KvrAUrc0rqAdZZOdw0y68yxUc1NNEfHUmEqoc= 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:in-reply-to :references: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=nyeCj5KHl397Eda2H1VRMjkcJ2cXCmB6yxH9NgEZQjA=; b=6GKsjDFt6+j0ZoEXvDAPL+CRAzXZmdC3CwkuPE24h+BheWvS1xNp86vRX3fxsXCy7+ KIRXigLi1aFWqvNs6HzluX2YOLTMqTpsUdF76gmFtqTm1zrKlzoX4L50kszpc9FDx7rs ENgOuVn31d2wWPW6GKRipU7jolUCdgJ0Jpmm5PGcUdd1MViFLYWpX2s0XbbI1bi9YBNm edDfeZjL1Lgh+8eJFTqhotwzRC3/ckQe2XMX2Wk07E3UE3ldj3BrZf2K1NwUHWwxs5TE RRxxH4ZgWv3FAg1M3L8U22GGaRkXBZm8tDlAhbZgkuQAB8XLV1E7Cup4WunwrSeLlpIp IqiA== X-Gm-Message-State: AOAM532J1VdemezqFyLbSHwU1XfJeJAZzOp1QTDONGsWAWfAOpVOb+iL /yuG7DfS4o9p33vmeCUE6ihrG/Ta X-Google-Smtp-Source: ABdhPJwOYWP6laAau4mYuZGDeA2GLTQRsmEGg80CYljCruTKh3DGlG4ggxE7C4CE+aeP24qXAM/q/Q== X-Received: by 2002:a17:90a:a78f:b0:1bc:8042:9330 with SMTP id f15-20020a17090aa78f00b001bc80429330mr6074515pjq.229.1646325457710; Thu, 03 Mar 2022 08:37:37 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:e546:b0:151:3f2d:8b25 with SMTP id n6-20020a170902e54600b001513f2d8b25ls2513108plf.1.gmail; Thu, 03 Mar 2022 08:37:37 -0800 (PST) X-Received: by 2002:a17:90b:314:b0:1be:dc22:62f2 with SMTP id ay20-20020a17090b031400b001bedc2262f2mr6210159pjb.102.1646325456870; Thu, 03 Mar 2022 08:37:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646325456; cv=none; d=google.com; s=arc-20160816; b=C9vHHvgL+wbRKw/In1TOrYWEm1f2i99jSsJpveO3OU9GFLG0vJil48zR8iy2gul192 QZw0soSplCLq+sQSFVTB1raJ8dmcHzG5WSKpsZJyrS4pG7e2lgp2l2PRt7F8g/90/lQs nonv5TaQeSBtxkCyO7ayxyOIV2/b56MsNYHecZlx5/fZaYdETQhlU5IaN26cRgXafZIi yi2YHNjWVv/CRLDETNiS2g9A5/M+dwzURgp2YADz+9TnEI3Ecq1J4ADp3ak4nlH0CfcY PfUfwnyko96yPUB9LHx0EfXhu4H5VHshzHvC11HWNtvxy0XBYUPnKcO9FhrgWSfSJtbI nN5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Dias74Svt+6TABOfyKPB5h5wnbwc964CIcS14g2KvKI=; b=F/NcO52R1SIdLkq3zyx0ORWnFRhKLU2onDLbxLAehvTUZK9ZgkNa3GW1BS1xG9qwVD Q6Rv3ODU+Knu4fN96SYVxG/4bdXStAjEe1Ozs9dGy54KdEg9hNkSrzJEaVRjyh1998P5 vCkWGOoU5tm2Z2Hp8HEwpDtJyOGtYemHFAyxl3tmeMSkhQtUcFM4jLio5ZoySoo2SKbL +UYOUAjOn46cBhx4ngkIxMCVOVKp9qxNq++cpebsflkFl+izcSJudY8ZhVOqM8zjhlbA pYa7vL8BeZzjl3jQkXb4GEGLPudVuO5rgBSUKRl+4uaCYUd2jMQryvB8eGdZxM3cgVNN TC7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J2A6xeb0; 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 d128-20020a621d86000000b004f3bc62a6absor10566893pfd.90.2022.03.03.08.37.36 for (Google Transport Security); Thu, 03 Mar 2022 08:37:36 -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:aa7:9253:0:b0:4e1:53d4:c2c6 with SMTP id 19-20020aa79253000000b004e153d4c2c6mr39231339pfp.62.1646325456504; Thu, 03 Mar 2022 08:37:36 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:4526:5253:a010:63f4]) by smtp.gmail.com with ESMTPSA id j20-20020a056a00235400b004e192221ec2sm3220983pfj.14.2022.03.03.08.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 08:37:36 -0800 (PST) From: Jagan Teki To: Marek Szyprowski , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Sam Ravnborg , Michael Nazzareno Trimarchi , Inki Dae Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v6 1/6] drm: bridge: tc358764: Use drm panel_bridge API Date: Thu, 3 Mar 2022 22:06:49 +0530 Message-Id: <20220303163654.3381470-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303163654.3381470-1-jagan@amarulasolutions.com> References: <20220303163654.3381470-1-jagan@amarulasolutions.com> 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=J2A6xeb0; 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 Acked-by: Marek Szyprowski Tested-by: Marek Szyprowski --- Changes for v6: - none 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