Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp239614imm; Tue, 15 May 2018 00:36:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMpRCyMsXyF6ukOAcpMuC0M4Yy7Fas7kqSdG8Hhb7+GUt+1vMExkutmBAW4AruB1IY6b0n X-Received: by 2002:a17:902:778a:: with SMTP id o10-v6mr13328128pll.214.1526369816042; Tue, 15 May 2018 00:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526369816; cv=none; d=google.com; s=arc-20160816; b=o0qaGiCeI3r6WQj9RKZZFEp2dhnTAzS7Muku73x168f8PTmgZBeYYNCf+MKgN3BxMh I2BC/tGMRG/9ZQbg5DuwIh8UeDcwB3Zy31GmlR00SVFy2fukCM63GOE90DnuvmAextcu Y2VgoThCOINw76elysBDmkB93GOv0zbWs5zatpGx2wPvuF14Kj3cjYrF7KiNAWsTIvVZ oP6GH2wrwj0CvNauBo68b8pNXjxL6kxrrv4oaQlhNpY+2KXrIiVfxYaFbcW2kE6asl2n 7y9No8kG7yo6HirZ/D1yqDlk087L7HCYwEO4H3iDa+2clmVGGK/LFVELCGIiMsTT2bqZ Tlsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=0W7z6dTjfNQH7AylxSYlU3LFRND5f7RIBEeRcNPvijk=; b=VhTyUTnFcUImpNZ4Gm9qq+SVcuGYdVgd5Ad2BT1e8JgG1ktKp7/TKEs7s3m+MTqYNL ovO5Ho83AWj0FlNlXheb9jUN9yaWO5LiN4HUJoSmLKwOy7e8d+T9rNhhoVH2pPfh+SGu dyJvzbk5gtHLEV6Xk+HDJH7zz9oEd9jg5+ztHkf7KaOmF1vIymEdKOanGdbybulwc11c tJDhsMie5/QTgy3NkC9M22Lv6EL/vMIV+qL+f1eDytT0DCu2IoM+orZisf57vSLezbb7 uoISoyfktIN/Ye1BwDfa80TRmq8kdBPcRu1EdgxwMbGbvHt1O8GQ5B2NOzA1V8bBCCsi Wwyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kuFosX9b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15-v6si11454114pln.359.2018.05.15.00.36.41; Tue, 15 May 2018 00:36:55 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=kuFosX9b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752375AbeEOHgQ (ORCPT + 99 others); Tue, 15 May 2018 03:36:16 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:52022 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbeEOHgP (ORCPT ); Tue, 15 May 2018 03:36:15 -0400 Received: from avalon.localnet (106171065254.wi-fi.kddi.com [106.171.65.254]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3EF361524; Tue, 15 May 2018 09:36:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1526369773; bh=zuPPiTfHCSQ8X6qB3W+4LmpHaB+2yWghRjcSpUHV9VY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kuFosX9bh281bR5/eDBaMeMPPnf3McQanwq9kG6jXr1wd4Rxp5FduXfuYMpzBmBoE t9c2ALMYNkLqvMyg5EOd+uRR4fMAVOsbjjiO5/mAyQCsBa2YII0paaTngA8pefJNRM SAXQfNVUVkgfdM3hXhrr6rfEMtyv4AJ1GgL8eRrs= From: Laurent Pinchart To: Philippe CORNU Cc: Andrzej Hajda , Archit Taneja , David Airlie , Rob Herring , Mark Rutland , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Yannick FERTRE , Benjamin Gaignard , Alexandre TORGUE Subject: Re: [PATCH v2 2/2] drm/bridge: sii902x: add optional power supplies Date: Tue, 15 May 2018 10:36:30 +0300 Message-ID: <2814752.ZM2IG9T3fV@avalon> Organization: Ideas on Board Oy In-Reply-To: <8ed2cfcd-df26-fa9c-c45d-7bf4020f0faa@st.com> References: <20180425075314.19137-1-philippe.cornu@st.com> <69a9da79-63df-6d0a-52e3-729ec8937484@samsung.com> <8ed2cfcd-df26-fa9c-c45d-7bf4020f0faa@st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philippe, On Monday, 14 May 2018 21:58:48 EEST Philippe CORNU wrote: > On 05/14/2018 12:33 PM, Andrzej Hajda wrote: > > On 14.05.2018 11:38, Philippe CORNU wrote: > >> On 04/25/2018 09:53 AM, Philippe Cornu wrote: > >>> Add the optional power supplies using the description found in > >>> "SiI9022A/SiI9024A HDMI Transmitter Data Sheet (August 2016)". > >>> > >>> The sii902x input IOs are not "io safe" so it is important to > >>> enable/disable voltage regulators during probe/remove phases to > >>> avoid damages. > > > > What exactly does it mean? Ie I understand that the chip has some > > limitations, but why enabling/disabling regulators in probe/remove > > should solve it? > > thank you for your comment. > > And sorry for the "bad" explanation in the 2nd paragraph about the fact > that inputs are not "io safe". I added this 2nd paragraph in v2 > following a good comment from Laurent on adding the management of the > regulators outside the probe/remove for a better power consumption > management (enable/disable regulators only when the ic is used for > displaying something for instance...). But after a deeper analysis, I > realized that the only way to improve the power consumption is to > implement & test the sii902x various sleep modes, that is out-of-scope > of this small patch and also out-of-scope of my test board I use on > which the sii902x bridge ic power consumption is very low compare to the > rest of the system... > > I will remove this "explanation" in v3 as it creates confusion. I'd rather keep it and expand it explain why enabling/disabling regulators at probe/remove solves the problem. Your patch otherwise looks OK (although if you submit a v3 anyway you could also rename err_disable_regulator to err_disable_regulators). > >>> Signed-off-by: Philippe Cornu > >>> --- > >>> > >>> drivers/gpu/drm/bridge/sii902x.c | 38 ++++++++++++++++++++++++++++++---- > >>> 1 file changed, 34 insertions(+), 4 deletions(-) -- Regards, Laurent Pinchart