From patchwork Fri Mar 15 13:08:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 171 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5A57E3F033 for ; Fri, 15 Mar 2019 14:08:49 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id n24sf10011081pgm.17 for ; Fri, 15 Mar 2019 06:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552655328; cv=pass; d=google.com; s=arc-20160816; b=pcEK79CVH/LX8WfjZsJeRf/5yji00AmXJh/oky2uWnGw5mjPY89fst7LD4pV/7LrU6 P7efEiYAu3SbqxDIQDnsXODm3H2NfugzGjRnTx2WPaA1IMBSIIywtEAYc5EDg4QicUQZ VQ/vYoVetAUS5CjRTPV7Mlof2vJyGoiFxZ6MJVMfO8gcR911YUrEU1LRSKXKfwCVL0Es +LKFlEo8a9eQdgswhLpCKoL+p84ExpjGHSsqiIMF7/dwW9XA8/lwwT7i4y7ILZg9NSq4 OX9rem77eR1rhKYexOcaPzNOE68c4fGTthKuZT3zvn1UacFpy+NnCZNew9avTqrAeAAn tqEQ== 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=AzdJQnNQZUI6l6VE0raypQ4ALROt0cO914ienSY9Jb0=; b=uCkQ1ecEm5y5ut6avpPmk2NG+3Q1CqsSJC8itnDlSEZaVJRjCP9fcMjCJyO7mQAM10 Lzshte6x+Sq/agWQ4PFj+xhnczmlDyAH5kizw5+CdFJAlmQxw+v+0NGrvteNeZbGJbeK qAhpIf9n4I5opnGYz2yeQdiZpeu7dDil1v0PI3mqP3nhdPQl5w1YOmOBxxC9iWgDCzFn +8qWByQUAv7OM9+NSNm1lfq2rsUckwv98R1PKEHjvMKCbUiCto3Jj/xENdQn1bJhTB2l 7/xGmUpii5oqCcDQTwZW5zVjn5Bds5pLvEKqQAxHZ3vDdkv4hODMR8MTQf89742RWboi kSUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pO8ssjEa; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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=AzdJQnNQZUI6l6VE0raypQ4ALROt0cO914ienSY9Jb0=; b=O+5jEXu94rL5PMXp+bQzEJvYdxMemaEjdU2CHsBsTxdTh0RGW+wOYxtc4ngjJjD0E6 cZLVFADSJsFVfzPvUN3fiFe3SUMuX8Avbr/o3foDfy1KpUVGJvMXRu/cBagUK15q9T+h Odfe6HYxDLkdWCF2a7k1cX6RnRMkibVIdFKdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=AzdJQnNQZUI6l6VE0raypQ4ALROt0cO914ienSY9Jb0=; b=t5qpQVqfYGUo1oJ65qSymRe0KILLbpa+ylzZbo+hRwoe/R13dCkcRyfn54KowGD9qg Pxx8q2C2uvAoQeYkuX0hQz1Q+pOo3KJIkHEdEMZk4TA7scsE0N+l4WHjlfv2iMXImzq3 M5oGMSUmlb2iuWoEYr1Unt5Z8YsqKUdQFMt6v1O44GJQRXdmN6yhFo2h5JpLhYb5sUdr uFd1AT8B09wCmXGBt2Ql4bzvB9H04w6fowZuINWu93OAaCtahstwiDxTxBHOJsHuyTzF T9rEw84GVtesOQFrm8nFbtuh8HMwmdLpJbdZRtC5wk4YKC8e+TUnfsBMhx7ZAW/hOo0R HB7Q== X-Gm-Message-State: APjAAAW8vMu5JeL4v6rRxUYtAUT3IKJAHuWloIvFe70RPRoXfDsH9iVD Up2rTq6MmVj2G3ccPGX12RZQNmOW X-Google-Smtp-Source: APXvYqxZMmTl6QGzOPdAC7XtT7EA25Hx7wSb0DzS4a3iEqkhyQDRI6PD2k/GdBIbGNqubL93+v+D7Q== X-Received: by 2002:a62:5545:: with SMTP id j66mr1370925pfb.96.1552655328123; Fri, 15 Mar 2019 06:08:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:93:: with SMTP id 141ls3558985pga.1.gmail; Fri, 15 Mar 2019 06:08:47 -0700 (PDT) X-Received: by 2002:a65:6498:: with SMTP id e24mr3362563pgv.346.1552655327757; Fri, 15 Mar 2019 06:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552655327; cv=none; d=google.com; s=arc-20160816; b=ZXqO7jGzgZ2YcJdXGWE1cweTl5Mb93EzkRO8Ox1JG4muYAr7SPioeyqE1RgH9W/qGJ hTJFhWc76C06goK2RJ4KVK+5bFUBJD/E1rgHh32Cja1Sm6wByyxXQvu3WNpKuENRCMLe wauj311p9TSWGkMUVtG1HY4dBKaxaXI819bjiyvKM4T0Ovg01m2P0FTYq3f5FDKrrUXQ 6eawT7Sfeto7k+Hwk+DvRfDs+a+l+hrlG2BMzkZ3cUkF3RIQ8z7o1TQiJwyfSZliZd9U it/xzP3fT89t6qkQGR1XNtEaSI/aJqfVhSL097/Mgvl57AtGpi8SJMV73wUPK4zlbPEB AHdA== 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=iy5X5nQ4JgXGLF8UMM2hZ+8DxyqREPSMFw8EUbSF9/Y=; b=FCKICxnYgCKe66XOAySTohvYKy/extTqKqK0Fm273f3BwThu9cvn9Vu8s/g33/FGtc 4eZ4wCpgcG1jYadhERrsy/EO592Y3wH8rncQ7BD4A920SB9PSM8J5w8DAXBn60Y1l1zN NnnHncpXSjbOe57pXw/PBi1InUl+EyVEwCfs0QqDa0RXC9l8hc45ymFbUUi32EOcxtsS qQk6ZoNV1kPhEb9UZ5QlwlCLa0buyv0Md0nrD9zZ5+Rbu1aWb1TlELncdna4FaefuUr9 KJd5nGZHrOX2gzBtydJAD7Azk1NlTzzB4dDzmKUIYfe1tggke0n4bUVEMFv3LAfBfyZ3 NZBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pO8ssjEa; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g135sor3221101pfb.0.2019.03.15.06.08.47 for (Google Transport Security); Fri, 15 Mar 2019 06:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:48c1:: with SMTP id q62mr3983492pfi.113.1552655327466; Fri, 15 Mar 2019 06:08:47 -0700 (PDT) Received: from localhost.localdomain ([183.82.230.185]) by smtp.gmail.com with ESMTPSA id e2sm854008pfa.64.2019.03.15.06.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 06:08:46 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: Michael Trimarchi , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki , Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park Subject: [PATCH 2/6] drm/exynos: dsi: Use drm_bridge_detach Date: Fri, 15 Mar 2019 18:38:21 +0530 Message-Id: <20190315130825.9005-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190315130825.9005-1-jagan@amarulasolutions.com> References: <20190315130825.9005-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=pO8ssjEa; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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: , drm_bridge_detach now available to use while detaching bridge, use this core wrapper instead of explicitly pointing the bridge funcs. Cc: Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Signed-off-by: Jagan Teki Acked-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index a4253dd55f86..5daf43d02768 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1583,8 +1583,7 @@ static int exynos_dsi_host_detach(struct mipi_dsi_host *host, dsi->connector.status = connector_status_disconnected; mutex_unlock(&drm->mode_config.mutex); } else { - if (dsi->out_bridge->funcs->detach) - dsi->out_bridge->funcs->detach(dsi->out_bridge); + drm_bridge_detach(dsi->out_bridge); dsi->out_bridge = NULL; }