From patchwork Mon Oct 16 15:31:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10008995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF593601E7 for ; Mon, 16 Oct 2017 15:36:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC2482860A for ; Mon, 16 Oct 2017 15:36:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C10AD28610; Mon, 16 Oct 2017 15:36:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D50B2860A for ; Mon, 16 Oct 2017 15:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=b25Y+EkH8x5D1qaE6NnS0zgwKTQAmqT9C4TWHsq6+0c=; b=YApWGcU5WguQigS8gJzUb3qWWx CCrL4VQUqHLLk1jTcEZPKHI4Zb8kTl0y4YlZpPEeamrMEEtQsoDufmQvgIzRYvRJrzxQYZ03322kh 5tWrbw2fpguD2lbMverwUvq4J0d9dQz6FuXqIKenN7PByZwu4+hvDtkZLhIYfX0/dIXEwnllHVs9U UyCPizotRY4jV+bKTaEgNAca7MLq3FuL6AseTNyBcnUiPK1EfUMRbz5oqkbTwsluCBNiKciBvrKgb PkxHdw0hhRc3kWIZyfdrd9zSiq3rkW3HUFujaAomCz6T0nqHcPxjpbyXn7L09p9cNhlbMqfIxIRKA Bggd5zSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e47Qe-0007xq-2i; Mon, 16 Oct 2017 15:35:44 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e47NR-0003j9-Rd; Mon, 16 Oct 2017 15:32:59 +0000 Received: by mail-wm0-x242.google.com with SMTP id l68so4559177wmd.5; Mon, 16 Oct 2017 08:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=xV+dEZ5nvBysegn5b57YCuFBZBLNc5c2cP3kA7SDS3Y=; b=S86ApdhsCXcgQJwR6GnRRbmO9NjzwMjEOWwOAv4wRcmK6vKLpvcHeULjLRmV8mFydU rmkmtyPcp/dwYE1+avmp7wS0eSIvYfKQcLyJHWqMkzDGzxUsqv+GO+R4aWON0IAXiZRt lMj3Sh+6eMFhTFH+azA6SlUXqc/dzdtgQ6fvNzbnSWfmAVNhm8ID+pd8BDN2s3iO4aR1 LGPhDJZOI/xhOdhqbkOn9WlFB1CkOdUSa/rJDDVrsAsqLUzwZ5XnDArcoi8QGhlfWjVb cTurzVXuD60cupGhfW9VPa8qugznXbeRywXmPcT2FQ2yWEEnZ+jqBKk90MTHdqqArxk1 b9Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=xV+dEZ5nvBysegn5b57YCuFBZBLNc5c2cP3kA7SDS3Y=; b=FsXU2skyCvuwLADiUuKCf4cUZA9GivRPgkazFcK8qOdnR0tgd0BD4++wkqhwjlL3Y+ GWHxe0RI8NTr7s7XU0BTn2aKA7jRgkYjzy4BF3HXD3uOBqKkwOBQmaqYTnMrKJHfMrcI dg7pd031YByC/GddP39KzD9ik3v7SNgkSeEB5ujWTDps7hXOLtqHW4quSrAvUlwCPrFS fgSYTGzdPt1Slnbcvoz1T1irCKQtnoHjQOtG7TXYxccuy4aBUpwEdoVmVHfRSRAVUPHh ykqEfFr3op+4vLqUZeLYhXG756cV7E/nM3Bc0gMwtHqTlqCyd/RUYnL1Jo/jRdL6QtUG XihQ== X-Gm-Message-State: AMCzsaXHA84DN+nvMBRyB5HLcU16KsHNTJj4UNGsJeANbfng3YgaivyK DQffu8VbEigj4HSw7+qzDVVPIrU= X-Google-Smtp-Source: ABhQp+QANd5Hknxg5jxBTR1drgVI1WkGekflPdWmKpJkzkcZzsDFWzZCCePk9Ve7Pek0b+yXHh9WUA== X-Received: by 10.28.100.3 with SMTP id y3mr1129140wmb.69.1508167924400; Mon, 16 Oct 2017 08:32:04 -0700 (PDT) Received: from groucho.site (ipbcc0ce42.dynamic.kabel-deutschland.de. [188.192.206.66]) by smtp.gmail.com with ESMTPSA id v2sm6897751wmf.40.2017.10.16.08.32.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 08:32:03 -0700 (PDT) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [RFC v2 8/8] drm: mediatek: Fix drm_of_find_panel_or_bridge conversion Date: Mon, 16 Oct 2017 17:31:40 +0200 Message-Id: <1508167900-27415-9-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508167900-27415-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1508167900-27415-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171016_083226_656156_AC5BB269 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jacopo@jmondi.org, magnus.damm@gmail.com, dri-devel@lists.freedesktop.org, Ulrich Hecht , laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The port value should be 1 instead of 0; fixes DSI initialization on MT8173 "Elm". Fixes: ebc944613567 ("drm: convert drivers to use drm_of_find_panel_or_bridge") Signed-off-by: Ulrich Hecht --- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 7e5e24c..e5ec581 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1105,7 +1105,7 @@ static int mtk_dsi_probe(struct platform_device *pdev) dsi->host.ops = &mtk_dsi_ops; dsi->host.dev = dev; - ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, + ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, &dsi->panel, &dsi->bridge); if (ret) return ret;