Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3024112imu; Wed, 7 Nov 2018 03:50:12 -0800 (PST) X-Google-Smtp-Source: AJdET5fmtcQ47U6g1MP37jvAlX+hmxBDa/38e4INHTxWp13XHXRQL8fi4sSE6D4SqMYioD28Y2jn X-Received: by 2002:a62:2e04:: with SMTP id u4-v6mr1504655pfu.229.1541591412302; Wed, 07 Nov 2018 03:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541591412; cv=none; d=google.com; s=arc-20160816; b=htLJYbcDLQZPFS6Qe6Gb16aH80ghl2zDAdimSjoheQ8tS7LRAf1GX2F0RtCtpx5dpK S0XqnRZXN9COfYiqda74Vyh37d57ovX5VQXhHOuxAlxyYlyZeaOPhop1OdT4rqiEyYDn s2I5KknvPewkl0Y018iTBHie6V7VsvIgzuCnS6WGl1B4zV6KWlLr9EV+ZcTnzM6oWnUv eKCozYu+hI2tLHu8f52LdRxrK3nmHliQspW5Z7fYdvyYNEyArceAeMsEsv8f+tvx0ydz v3hc8TvJiysOmFTd4q+pcZoPru1wh1FRIMygoUvH4wAmvyWqONtSKAXpZIIap19WlRAA vMTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=FqWPzx+CfArUOtfS+4xxOU+mhZCHBmNx/o9SoAykDOQ=; b=CAho9kXboFvgWYwQzhVPCJExx4q4pB6mVUKXwkJR1Kk1Qjt8kba++rjvS/Ck5IZTPf MtjXu4lqZw33vsIDRQSrGh+xrHCqMNvu2O/rY3fjj4J55aXbN4gLwKVDd15jvoHNkTuB 1JTC4IcV5WUP6ges6sS7zobS+gfkXHpS/JzgBeDwBCqCu4Y2iyVFWnq7Us51WJv06Glz e42Uyjx8RVDRKXNAPMIOUQNzSsqsQjxzCZyggk0di0EnqXeYGubPb+FGKn/y6VFoIK1r 4aDPYxq3y3ikUZ7wS7O/c5K92RxTTvB4mUNAm/hdDkVKNyxXu8kFjRikjn/KsBp0I9Zl vRjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YCrgETOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si393713pgj.77.2018.11.07.03.49.57; Wed, 07 Nov 2018 03:50:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YCrgETOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbeKGVTh (ORCPT + 99 others); Wed, 7 Nov 2018 16:19:37 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47269 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbeKGVTg (ORCPT ); Wed, 7 Nov 2018 16:19:36 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107114934euoutp01f09a13c47b91eeaeaadfe5a4fa149921~k1S-8Ies30795007950euoutp01C for ; Wed, 7 Nov 2018 11:49:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107114934euoutp01f09a13c47b91eeaeaadfe5a4fa149921~k1S-8Ies30795007950euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541591374; bh=FqWPzx+CfArUOtfS+4xxOU+mhZCHBmNx/o9SoAykDOQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=YCrgETOsOrgMxddPBoj6fq8o2hfTNXhEZO6StxWG+a5oGsejn98FTQ7bNnHcbQ60h u+9qUUydLqMfJQTSBtvc4hhiPVDAr4WoDvhf86TqEow64eF53TOinNdUqollhGI8B2 7mO1lg6jphoWmQWqVIAVLC1ckMfWCk9hgV2gPR+4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107114933eucas1p178fc7e0d64cf8fd51c14b6dd654db55d~k1S-BM1Fx0573205732eucas1p1z; Wed, 7 Nov 2018 11:49:33 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 58.F6.04294.D41D2EB5; Wed, 7 Nov 2018 11:49:33 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181107114932eucas1p259f19baf999a65b781cadd006f69add3~k1S_Su5w00374103741eucas1p2L; Wed, 7 Nov 2018 11:49:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181107114932eusmtrp1f86b05f8189775f5219f76070058f744~k1S_GXjnc2677926779eusmtrp1t; Wed, 7 Nov 2018 11:49:32 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-35-5be2d14dcdd8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D7.B7.04128.C41D2EB5; Wed, 7 Nov 2018 11:49:32 +0000 (GMT) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20181107114931eusmtip15e9ad2afc740ef801b8e2fe62bf28f1a~k1S9R1X5S1965519655eusmtip1Y; Wed, 7 Nov 2018 11:49:31 +0000 (GMT) Subject: Re: [PATCH v6 6/6] drm/bridge: add PHY initialization in mhdp8546 driver. To: Damian Kos , David Airlie , Rob Herring , Mark Rutland , Archit Taneja , Laurent Pinchart , Gustavo Padovan , Maarten Lankhorst , Sean Paul , Sandy Huang , =?UTF-8?Q?Heiko_St=c3=bcbner?= , Quentin Schulz , Piotr Sroka , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: rafalc@cadence.com, quentin.schulz@bootlin.com, jbergsagel@ti.com From: Andrzej Hajda Message-ID: Date: Wed, 7 Nov 2018 12:49:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1539034953-11274-7-git-send-email-dkos@cadence.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa2xLYRj2nVvPZp3Tg+wNEjREJu7XLyEuccn5IyFbBBMcHHNZt+mxucdM RjvmssVl3XRkm84MseqmDTZVq5KhVF1mWt3EZVkEQ5aYWXcm9u95n8v3vk/ysSRfzAxiNyVv k/TJYpKWiaSq6tofj13kDSVMOGnkcc4jD4EzDa00LnI9onFjYBr2/fjCYHvQocKdoRYan83d i+8cblJh44kSFa5s8tP4maOQwd+CnSQ+/9VG4dIXXgKXma0IX6u5TeOS3CYSZ1w/w+CsWy4V bsxzoTkDhQpzBRLMFbuFCmMLITw7mkMIzZVeJBQY8mmhstzICNU/g7Rg9iwRAofdhGAt2SfY c28RgtvxWiV0mGooodpvJgX3y2pisWZF5Mz1UtKmdEk/ftaayI0FRVVE6n5+R637I5GBgtHZ KIIFb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9s/iPGisZPCLcMmElvftRB73Y8oYnltro7bmKkVdNvkKUoUqlBGI0VoeLRCGRZ1NCY0 Qh4cF5vO5WTlcXxw3HFFZnVNM3GiQHqqy/qZ0AObmwG4MJANh1N9c4QBuDJSth7A37M3Safw gY9rZlbZA/4ZNoicQ9MAzo3YKIfwYA/A9ooS2iE8WSsN27peAYcg2R1wtHOUchb9AJaOVood QsQGwMXG9yIHS9g4ONxjJxxMsZvgx4b5f+9e7GH4YqoBOGfcYV/V5MoihnFht8O7+nDnfn/4 x/SadPIGeOFR9Sr7wA+TNUQpkBrX1MY1iXFNYlyT3ADUPeDJ5QrqDLUQqhBUaiFXk6FI06ot YOVomnt/NbUCw5f93YBlgHydZEvrpxQprcoT8tXdADKk3FNScn8iRSpJV+Wf5nhtKp+bwwnd IGLlb2WkzCtNu3KCGl2qMkIZhaKVUWFRYZFI7iMZCMk/ImUzVDoum+NOcPz/jmBcZHpA0mWC G272Oei/5+03z2cxI74e1Pipq7KkwjLv8ELz/ZPTfvOXJmutWtMbPjlvYP7cmMZrKWn9rsiC rXxApDSkdsHv2NCs/VZx12Zs+REQmBkUL5Z5v9j3MzvxdkJvwkXNd3HgoG9gWtDA80Nq992G /gduiSd3Jk/FooXK4H5XvZwSMlXKQJIXVH8BFrQkzEoDAAA= X-CMS-MailID: 20181107114932eucas1p259f19baf999a65b781cadd006f69add3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181008214506epcas2p2cf110c14fcc340c42e1c6da4b03d8901 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181008214506epcas2p2cf110c14fcc340c42e1c6da4b03d8901 References: <1539034953-11274-1-git-send-email-dkos@cadence.com> <1539034953-11274-7-git-send-email-dkos@cadence.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.10.2018 23:42, Damian Kos wrote: > This patch modifies the mhdp8546 driver to initialize sd0801 "Torrent" PHY. > > And removes the dbg_regs field from cdns_mhdp_device structure. > > Signed-off-by: Damian Kos > --- > drivers/gpu/drm/bridge/cdns-mhdp.c | 9 +++++++++ > include/drm/bridge/cdns-mhdp-common.h | 1 - > 2 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/cdns-mhdp.c b/drivers/gpu/drm/bridge/cdns-mhdp.c > index 48ac5cf1e031..caaf3c17d74f 100644 > --- a/drivers/gpu/drm/bridge/cdns-mhdp.c > +++ b/drivers/gpu/drm/bridge/cdns-mhdp.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -1220,6 +1221,12 @@ static int mhdp_probe(struct platform_device *pdev) > if (IS_ERR(mhdp->regs)) > return PTR_ERR(mhdp->regs); > > + mhdp->phy = devm_phy_get(&pdev->dev, "dpphy"); It is not documented in the bindings. > + if (IS_ERR(mhdp->phy)) { > + dev_err(&pdev->dev, "no PHY configured\n"); dev_err only if err != -EPROBE_DEFER > + return PTR_ERR(mhdp->phy); > + } > + > platform_set_drvdata(pdev, mhdp); > > ret = load_firmware(mhdp, FW_NAME, CDNS_MHDP_IMEM); > @@ -1291,6 +1298,8 @@ static int mhdp_probe(struct platform_device *pdev) > mhdp->dev, HDMI_CODEC_DRV_NAME, PLATFORM_DEVID_AUTO, > &codec_data, sizeof(codec_data)); > > + phy_init(mhdp->phy); > + Beside this: Reviewed-by: Andrzej Hajda  -- Regards Andrzej > /* Enable VIF clock for stream 0 */ > cdns_mhdp_reg_read(mhdp, CDNS_DPTX_CAR, &resp); > cdns_mhdp_reg_write(mhdp, CDNS_DPTX_CAR, > diff --git a/include/drm/bridge/cdns-mhdp-common.h b/include/drm/bridge/cdns-mhdp-common.h > index d4711091ff2b..1e8a44138ce2 100644 > --- a/include/drm/bridge/cdns-mhdp-common.h > +++ b/include/drm/bridge/cdns-mhdp-common.h > @@ -553,7 +553,6 @@ struct cdns_mhdp_device { > struct cdns_mhdp_sink sink; > struct cdns_mhdp_bridge bridge; > struct phy *phy; > - void __iomem *dbg_regs; > > struct video_info video_info; > struct drm_display_mode mode;