From patchwork Mon Jan 10 17:25:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1837 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1A9483F39B for ; Mon, 10 Jan 2022 18:25:56 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id q14-20020a170902dace00b00148e2c4fe06sf2550001plx.15 for ; Mon, 10 Jan 2022 09:25:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641835550; cv=pass; d=google.com; s=arc-20160816; b=IGXL3e2LhQtWqP+QGooKRnTOXkvQ66g6D5Gnqb5LcX1xzK/b67omTe9dsETeuC4nNO CrWdjJPQOcZnod42S64roeYES8owCoffPSa9MSi3OwXGjP0oGo6zau10obFgzlKPfqj+ s6C6jjSuRvozOPkPG6PK3HxEobe1cCdQQPs2VOvMHkOcxg6wLFzeQDZoeQfn2WXHR6SB Gj/SL4lH4P3MYdBOvR2lGE12C3LJy84bH+fkd5VK/u3xz6mqmLkw/SvI9fGyy5cMSpLA BVtYBO1pPGwiZpEIc6YRDUnTenkdT+Om2aSIZZVS/Xs6dHiiImIKLdhHJ9LAKxAQ4ey0 0Unw== 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:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RUHnaSgDKUfjYEgR1cHal3KhsLaM6QY/KO9KVxWtyJ0=; b=T9nwaGFUvW5Mdk7P4+QvnhAEs0GsercG/QGq6v/4qTxY8yQLOcS1kpG/mnwxFQP1H6 lyHGQ3/IR0uEyA8U5aLR2kpfPtV0ZUAY/4RF/58s+lTPGj6gEJTE3fiVePgM5M9/zg6Q hxjgTIcfFOEj9joPQGEnxlnZ1vC5wQUXuoT8eLivlopkiiqiIkgKsF/csKtbu/K0FMHO jXfFoj2gAmuYpsSTPSybhrHDsU70vTnzOagG653njEX19kZ5MOdos68rGmgOGhrr6KdR RmgC0b+PAVTNAYP3KeFQU7cqSfMkzeGZaVzV3Bv6EuyisD/GXcdhloNW7zvtoOKIjv6x PRHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GzlVq2OE; 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 :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=RUHnaSgDKUfjYEgR1cHal3KhsLaM6QY/KO9KVxWtyJ0=; b=oXce2wqOWT/RLmDYjEB4FUIDPlInwxP61n8t6vpBt1EfZORXAhrNMXb4Gq9MpXN625 aWw54nlBY6N8a4lRZy5N2yiZp2wJHwMEdAUh333S2BIJzt/0rDolEQPYq0Gcj0MYH9nK aKumBt9Tq+OzHDl+bLJ3MTxKKmiMlzBy2/wBA= 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 :content-transfer-encoding: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=RUHnaSgDKUfjYEgR1cHal3KhsLaM6QY/KO9KVxWtyJ0=; b=xgP+r5Tt9VMbALPJqZmXqMssmGPIci63geguYLwLojlI43rEpwPig2j+mw/QpZzR/S G48HAbrfdKTd4dKhZIyvK2wsCJ/teoP1dROhGHuXqsjEXIC4SIqA2Ppbz35Fc4AMJbrE ZK3Fj3J0IavxlSd4GIXdiRUAdPKadhllNUCSZhyhivxDI6ui+Sku0O93liTYMW01ZDm+ 3mGpUr0A3c6NMbWmUortfioHuQDnlln/5+7+tcGGmupMAMbVi3pc2hz9OZVUMOYddQll 0oTwpTmP6QyZyROS6FATxG8iW2M74ixKa/TZyldsBQDuYiyKacKUcUsNBRKgfwfWpY8x pcGQ== X-Gm-Message-State: AOAM5333m69JKog6OwOPJvuRsC0zNvF1T4pA4Rv5nbseJMGRptZogCy3 Sru5U+4n1L6n077ROdHtBV3DVJfl X-Google-Smtp-Source: ABdhPJxq1ju4jGceuBLi4vOc9Nmwq0ZRcH+K6CzcOkaSIdrWygz+xrzP9wTFpEs4DqfMIZmPB+LxWg== X-Received: by 2002:a17:90b:3b45:: with SMTP id ot5mr31747943pjb.147.1641835550247; Mon, 10 Jan 2022 09:25:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:be41:: with SMTP id g1ls4333851pgo.4.gmail; Mon, 10 Jan 2022 09:25:49 -0800 (PST) X-Received: by 2002:aa7:92c5:0:b0:4bd:9f44:9562 with SMTP id k5-20020aa792c5000000b004bd9f449562mr554911pfa.80.1641835549594; Mon, 10 Jan 2022 09:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641835549; cv=none; d=google.com; s=arc-20160816; b=jB+rP70aippTamP7KOVvxbAIMWeLAXLGFlSsiKEbjCfKldgRn9oECWtm2rZsBi4TLA ontQPL7VyItN/Hll/utTJ1kiEVVohIaWBivQ3V+/cqC65mMCB+RJp2ghBK9VH0zcSESu NMn6VZhPQoh74PhYfXShqlUB9Ea2A2IAdxJRznceaYdrsiFbTKCYLOp1mmmalmOH1zKK ZP1NPiDoyCxYt/0oaAAYS47ksVsEM/rTQxaJsoZtqp3AHei+wJ/I3dW4M2hTu+xRV+Cx IYOCxy8CYwlyr6rbR2G7sqsa261x26GyWcVxjZs9qGRhPhDxPGm43qQuTA2tDfGgOs/z Uziw== 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=ni86PHZD0FLhV231fzfITISDgi2okimLjkw7Y9X52b4=; b=eAgq/8xFUe60gGfFkCHkZ3DECwjpOuxcUnN4orWR89vX2ozXDeSZd7Xsqt1yngvCj/ YYh7tQPwb9KegB1a7NCQ/ID2vavE8+5vYHlk2wgaR+aQ5jbW3yw2sImJpAzF0uxNdizM flu1J7PGHe1jNMfjkNfeHzXMgUhwBplaz0TQ2L14v9CrX8v0R504v42gWsAovirCNTRA GVk0cWe+i0QLDwgZsqoZ2vRrkBYNqVZLh5vryNKDsnv96AyhQpVba3BagXSVFG3/K/2r JdC5fbvtocGyDXKHj7JA6Wy2YaXhj8CLXlFR/L+HQar0Yoj0Z/A+l51VctIavUcmP3XV k/GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GzlVq2OE; 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 oo15sor2688828pjb.4.2022.01.10.09.25.47 for (Google Transport Security); Mon, 10 Jan 2022 09:25:47 -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:a17:90b:34f:: with SMTP id fh15mr6504048pjb.122.1641835546154; Mon, 10 Jan 2022 09:25:46 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:98b9:3ff7:5eda:a7cc]) by smtp.gmail.com with ESMTPSA id q2sm7884350pfu.66.2022.01.10.09.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 09:25:45 -0800 (PST) From: Jagan Teki To: Andrzej Hajda , Neil Armstrong , Robert Foss Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH v2] drm: bridge: nwl-dsi: Drop panel_bridge from nwl_dsi Date: Mon, 10 Jan 2022 22:55:33 +0530 Message-Id: <20220110172533.66614-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GzlVq2OE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , panel_bridge pointer never used anywhere except the one it looked up at nwl_dsi_bridge_attach. Drop it from the nwl_dsi structure. Reviewed-by: Guido Günther Signed-off-by: Jagan Teki --- Changes for v2: - collect Guido r-b Note: This is patch is part of switching of devm_drm_of_get_bridge serious however the child node support of devm_drm_of_get_bridge is still under-review. So send it separatly as it not related to that API switch. https://patchwork.kernel.org/project/dri-devel/patch/20211210174819.2250178-1-jagan@amarulasolutions.com/ drivers/gpu/drm/bridge/nwl-dsi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index fc3ad9fab867..9282e61dfbf0 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -65,7 +65,6 @@ struct nwl_dsi_transfer { struct nwl_dsi { struct drm_bridge bridge; struct mipi_dsi_host dsi_host; - struct drm_bridge *panel_bridge; struct device *dev; struct phy *phy; union phy_configure_opts phy_cfg; @@ -924,13 +923,11 @@ static int nwl_dsi_bridge_attach(struct drm_bridge *bridge, if (IS_ERR(panel_bridge)) return PTR_ERR(panel_bridge); } - dsi->panel_bridge = panel_bridge; - if (!dsi->panel_bridge) + if (!panel_bridge) return -EPROBE_DEFER; - return drm_bridge_attach(bridge->encoder, dsi->panel_bridge, bridge, - flags); + return drm_bridge_attach(bridge->encoder, panel_bridge, bridge, flags); } static void nwl_dsi_bridge_detach(struct drm_bridge *bridge)