Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5389378ybi; Wed, 12 Jun 2019 01:32:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyvYPDWKbP/MEeELkXI9mQfH3tFYqWOoONyF08/v/8NEZ1ae4SXLRe0W6dH/soDjFNLQnV X-Received: by 2002:aa7:9197:: with SMTP id x23mr49407408pfa.161.1560328323489; Wed, 12 Jun 2019 01:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328323; cv=none; d=google.com; s=arc-20160816; b=V0IzUZs21t2xt/rJhGv0JZdQR+WPSBHQA1q/wO5/ldxXkEdeYdpc+HGKRISri8yshv A7E7AGDeeAY6BXT2SXeF9CDuoLcWBVkEgIIIA59Xp3WC+Mj7RdKdSWJ9n6anXo+ybZ3w UAQbTV49A3nDSS5O3VNyNy3FRMxGPkdoSlF5Jb27pq2bfr1DOxIMYpwKPoEjYNwAp7jg oU4X/EdAY9E9EOc5tvweaZIopLCcyDzLZ4XkCfFeGB+nRxPiSYALFwwkwOjKKNMEsuKQ Ltf8wiG9zp66F7sEQLbGaWkh3D3SDUbs09eeS4vZcB9lKm/GQ5mWTA3j9qI7+MRuI1sB U3mw== 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:to:subject:dkim-signature:dkim-filter; bh=adIOOIL2VicBSBJGZrtq09f7Aw36EV/xU/ajnfWjQ24=; b=wXH+4iHomclWHGq0Bg+5g0sqrmf2q2aarhP2qhKMYyIcIFkxwDtPWoy4g4Vodx5qS/ 6ZVMuIJFCuE4Pf2425STVGjFnD/bFMDiPllM1FfZUzMJSzrQhN1MJj5/0Wc8j8G4Hv/w +PLbyVjPq7PRwaKAPNfz2v9x5ONkOd0wa1HLP4YcKbZvgM2tMbIPnJOMToOTTmbVBymH 4jZUk1en/1S1Z9/8ao5U5ubc98k8c08yXXh1FkEDad3iEeNQanX2JTcWKhXdwgVU7jTP 7SxJ06ouICzKHmsyiPzAk4wwGAZzqfyqo1b8nhdkJ+6FFo2FwxoghLZrXEGUT5R0434r Ml8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=bhlT+PPJ; 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 c3si15712643pfr.27.2019.06.12.01.31.47; Wed, 12 Jun 2019 01:32:03 -0700 (PDT) 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=bhlT+PPJ; 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 S2407769AbfFLG77 (ORCPT + 99 others); Wed, 12 Jun 2019 02:59:59 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:36171 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404851AbfFLG76 (ORCPT ); Wed, 12 Jun 2019 02:59:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190612065956euoutp02d720e1ed8a28cfb2f00fb59261918daf~nYVEg9IIY2562025620euoutp02f for ; Wed, 12 Jun 2019 06:59:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190612065956euoutp02d720e1ed8a28cfb2f00fb59261918daf~nYVEg9IIY2562025620euoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560322797; bh=adIOOIL2VicBSBJGZrtq09f7Aw36EV/xU/ajnfWjQ24=; h=Subject:To:From:Date:In-Reply-To:References:From; b=bhlT+PPJybiUpRu0rLygtWksU0EnIJ6uTv1/oVWnwWXbRpChHJCYZOVoqQs3/u3s8 XYxsLhvpBfpQlJxyx3PlUp1XwszyVKMCnLTwUO4Bjz08bf8bgsl3vAe4INc/Qs1TOZ QU62EYgdkCRe2p7PKSUoQkxPfgRleiyy7hpWw818= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190612065955eucas1p1a03daca794582331386dc0412803ad73~nYVDaq0IY0457804578eucas1p1r; Wed, 12 Jun 2019 06:59:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 9F.E7.04377.BE2A00D5; Wed, 12 Jun 2019 07:59:55 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190612065954eucas1p1f0fb1e6ba7e0dc9b379b7e64073250d2~nYVCf3Wgz0158001580eucas1p13; Wed, 12 Jun 2019 06:59:54 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190612065954eusmtrp20ca65c2769f74f278ffed1acebb36898~nYVCQ29091689216892eusmtrp2i; Wed, 12 Jun 2019 06:59:54 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-ac-5d00a2ebe44d Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 38.88.04146.AE2A00D5; Wed, 12 Jun 2019 07:59:54 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190612065953eusmtip23dd5a0fcc177b296ec03ace8429d3cb3~nYVBn9TCT0540905409eusmtip2U; Wed, 12 Jun 2019 06:59:53 +0000 (GMT) Subject: Re: [PATCH v1 1/2] drm/bridge/synopsys: dsi: add power on/off optional phy ops To: =?UTF-8?Q?Yannick_Fertr=c3=a9?= , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , Sam Ravnborg , Nickey Yang , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , Maxime Coquelin , Alexandre Torgue , dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Andrzej Hajda Message-ID: <742ec787-09e3-a588-f26e-2ea35a218b32@samsung.com> Date: Wed, 12 Jun 2019 08:59:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1558952499-15418-2-git-send-email-yannick.fertre@st.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02SWUwTURSGuZ2l00JhLJieoBGpmghRXIJmEg3RRM345iOIBItMEISKraDA A4goUFREEKSsKg2gadQiq7JYE6sC7q27tFjiQl1iK4qClTIYefvO+f9zz/mTS2FSNxFIJSr3 cyqlIllOivG2W+P3l4+e84pZaXEEMsfv3REwV+z9iMk13iUZd1sJxjz5/mWKhkcJprCkQcgY 3loI5nFXNcloLHaCqZ3UE4zu92fEWPPeE0zTeCtiBsx9OJNfeITcQLPdY/U426l9LWSrCioJ 9pXlOsm2j1kJdqjIJGBbGrLZhnIzyU5qe3G23VKLsTd6VrEjP7sx1mlYsE2yXbw+nktOTOdU KyJ2ind3nx8QpN6WHsy1NWE5qMdPg0QU0OHw7vQHXIPElJRuQnDMkY/4woXA1fKG5AsnAqej SPh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RLzVzYy gSREBBawSrRd7WWEqLoKVDVrExNIFZuApsTfzTfZQGxeATuJyas/gMVZBFQlnkxbywhiiwpE SMze1cACUSMocXLmEzCbU8BNYuK8bWD1zALqEn/mXWKGsOUlmrfOhrLFJW49mc80gVFwFpL2 WUhaZiFpmYWkZQEjyypGkdTS4tz03GJDveLE3OLSvHS95PzcTYzAJLDt2M/NOxgvbQw+xCjA wajEw3tg+v8YIdbEsuLK3EOMEhzMSiK8RtkMsUK8KYmVValF+fFFpTmpxYcYTYGem8gsJZqc D0xQeSXxhqaG5haWhubG5sZmFkrivB0CB2OEBNITS1KzU1MLUotg+pg4OKUaGGvm35zZdPdx 7smzogcPF+3Q+OkmpR+zO0yuZt6iTp1PJ5RM/4d/Yy+ucVCoXXhd2lM6PcLuqcXHbdZacguu e8695Hx9yVl5td+bOxtsoo3jd5zeuqt790zzrUqWq6ojhcq7f4edOh748uO1Lwurky6WJ95f K7Bpy4PcvWGdS5gtvR0zi3d9O6/EUpyRaKjFXFScCABKikPjGAMAAA== X-CMS-MailID: 20190612065954eucas1p1f0fb1e6ba7e0dc9b379b7e64073250d2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190527102214epcas1p3608b43d2535a8b3ffcab61aa085a990b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190527102214epcas1p3608b43d2535a8b3ffcab61aa085a990b References: <1558952499-15418-1-git-send-email-yannick.fertre@st.com> <1558952499-15418-2-git-send-email-yannick.fertre@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.05.2019 12:21, Yannick Fertré wrote: > Add power on & off optional physical operation functions, helpful to > program specific registers of the DSI physical part. > > Signed-off-by: Yannick Fertré Reviewed-by: Andrzej Hajda  -- Regards Andrzej > --- > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 8 ++++++++ > include/drm/bridge/dw_mipi_dsi.h | 2 ++ > 2 files changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c > index e915ae8..5bb676f 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c > @@ -775,6 +775,10 @@ static void dw_mipi_dsi_clear_err(struct dw_mipi_dsi *dsi) > static void dw_mipi_dsi_bridge_post_disable(struct drm_bridge *bridge) > { > struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); > + const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; > + > + if (phy_ops->power_off) > + phy_ops->power_off(dsi->plat_data->priv_data); > > /* > * Switch to command mode before panel-bridge post_disable & > @@ -874,11 +878,15 @@ static void dw_mipi_dsi_bridge_mode_set(struct drm_bridge *bridge, > static void dw_mipi_dsi_bridge_enable(struct drm_bridge *bridge) > { > struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); > + const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops; > > /* Switch to video mode for panel-bridge enable & panel enable */ > dw_mipi_dsi_set_mode(dsi, MIPI_DSI_MODE_VIDEO); > if (dsi->slave) > dw_mipi_dsi_set_mode(dsi->slave, MIPI_DSI_MODE_VIDEO); > + > + if (phy_ops->power_on) > + phy_ops->power_on(dsi->plat_data->priv_data); > } > > static enum drm_mode_status > diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h > index 7d3dd69..df6eda6 100644 > --- a/include/drm/bridge/dw_mipi_dsi.h > +++ b/include/drm/bridge/dw_mipi_dsi.h > @@ -14,6 +14,8 @@ struct dw_mipi_dsi; > > struct dw_mipi_dsi_phy_ops { > int (*init)(void *priv_data); > + void (*power_on)(void *priv_data); > + void (*power_off)(void *priv_data); > int (*get_lane_mbps)(void *priv_data, > const struct drm_display_mode *mode, > unsigned long mode_flags, u32 lanes, u32 format,