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: 12767764 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9468AC433F5 for ; Thu, 3 Mar 2022 16:37:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC6DE10E4F7; Thu, 3 Mar 2022 16:37:38 +0000 (UTC) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by gabe.freedesktop.org (Postfix) with ESMTPS id 408E010E9E1 for ; Thu, 3 Mar 2022 16:37:37 +0000 (UTC) Received: by mail-pg1-x535.google.com with SMTP id e6so4998475pgn.2 for ; Thu, 03 Mar 2022 08:37:37 -0800 (PST) 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:content-transfer-encoding; bh=Dias74Svt+6TABOfyKPB5h5wnbwc964CIcS14g2KvKI=; b=J2A6xeb0QefiEZ/G1JNR7iyyVy64kMSZUF81yKka45owxefvOCDMq8WxPrbKo5P9Rk QXRHJcCKaE3eydLLja/mHv0inaSlTZXXfDHtxlysPRiZL9WHY6kyKZTnhIBA2cDmklyo RtAfoR1WJJku7dUc5OhsdGm9NDmqrVu/toWHw= 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:content-transfer-encoding; bh=Dias74Svt+6TABOfyKPB5h5wnbwc964CIcS14g2KvKI=; b=agbpl9c282MwdYqQ2bRUFWOBxE5yEqPxDaLTiA+jZW6GDAmXoAS8z8EmvQNAjOgq4y Vkjk2iLzDmDgzDhtae/k7Wh0g3oxjUaQmc4/BK6r5LBb6rcgtPJTbQLjAY/EwO5ahClb JZ8npWi28tzPiATHmmlY3b+NmGBf965uSaNNjo0sxAgrDX7uDz6Wc27oCluO90e3jeWW dJRs0BzvSzflqSv3hcYfIYAcoECGcRl3v+Xx503AeGVLlEPoBFWGRJHOxFfZXlCkaeWx JABBm5gVQr5PGipvnR4kTy5yoXXixNvIwYDawwdYt756RUj4L0Nc0SkpyH1ZEDxjb/+G 2ecw== X-Gm-Message-State: AOAM5336QAc2XfJkxKlQM8UeRQkJAr1BjkPX0taWaHOxqxDwH7jebLTq HSan8GuUwurCth6EADPPeeo7QQ== X-Google-Smtp-Source: ABdhPJwcl7o61aEWPlTB6atfnYmMPtxGadKJc/c0I6mtT/s+DvCs8PVOM6gtLUUZxYxrlHQPG9tH3w== 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 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amarula@amarulasolutions.com, Jagan Teki , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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