Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5227588imm; Tue, 19 Jun 2018 07:09:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJb+rNM4u7yi0luuSK5rYnoDo9kIFzZHhiHl72lPQOebZM32thgjh5pFEnxlsnVAdKvjLja X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr1859322plo.88.1529417373196; Tue, 19 Jun 2018 07:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529417373; cv=none; d=google.com; s=arc-20160816; b=kE8z/wUUF/SHmOuM+9y/aMmdRHR5meUl91+12+g5uDu9JjBXVMJp03N2ZNMWBCCAko 9bj2FPYdHM8bKyZJ1uzuKCw5QgE9B8VWLdsOobqwv7Dayev/c9RRpkqREXZBdJ19h/pT yWfObWAYHwQN9fXMC69Lg4sXYiQKNBjx7oiq0ka6c4gj+oP81fPl5DaMaKFke/NlsHNe rfzpoEVZ9rNA4X3wxApsSLvi4q0jZ3uVoVETfkH8JVcT92eNwXcoIM/q/lDY0+rncNJI EkSTAgvslhaeOBNcjh8Avi1HS1rE9dP88YPDPPeaYgc3f+Mum8umePCObUA23iKFYxL/ vj4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:arc-authentication-results; bh=8ZU3wPFRpThQU27j0BfCQFMxdliLSvBHN3RLq1mYqek=; b=hEZaxq83/rKk81diqO2akW1tSwIJ0fvqxGT7hE1wAT+a6M3nC6Rf7pGk0pqiyzwk+k uieVigiwltiiNXuH+Ma8WO0HsrdmhxrKR/njkhA1lMGcf4AasxM8lxIL/AHPKAw9M+Y+ BQqvxLPiT3cvX8BNWy0v5kWBiO5t5lmN/hDstoQo6MM63rOq+i5NDE77CiXpHn9EWDz1 LZlEo8RRJx9bRBH+m11V9VrX42+oSpEY90+LJRW3BgwehKGTyiTS+WXguxzDAoaTmIIR baA3/lIwjiVHhWdgPH00IwzT6KmxReZiwVF8FgBKF9YihXFdVkQ9W9A/yNkC4jQOoL2n 0syg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k91-v6si17802310pld.248.2018.06.19.07.09.18; Tue, 19 Jun 2018 07:09:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756467AbeFSOHn (ORCPT + 99 others); Tue, 19 Jun 2018 10:07:43 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:40140 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750816AbeFSOHm (ORCPT ); Tue, 19 Jun 2018 10:07:42 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5JE3glm003384; Tue, 19 Jun 2018 09:07:33 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0a-001ae601.pphosted.com with ESMTP id 2jmyy2d4c7-1; Tue, 19 Jun 2018 09:07:33 -0500 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id AA134611C8AA; Tue, 19 Jun 2018 09:07:32 -0500 (CDT) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.301.0; Tue, 19 Jun 2018 15:07:32 +0100 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id w5JE7UtB004250; Tue, 19 Jun 2018 15:07:31 +0100 Date: Tue, 19 Jun 2018 15:07:30 +0100 From: Charles Keepax To: Matthias Reichl , , , , , Subject: Re: [PATCH] regulator: arizona-ldo1: Use correct device to get enable GPIO Message-ID: <20180619140730.GG18740@imbe.wolfsonmicro.main> References: <20180619093245.1261-1-ckeepax@opensource.cirrus.com> <20180619122432.6rgh4zjqrfk45ofs@camel2.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180619122432.6rgh4zjqrfk45ofs@camel2.lan> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806190159 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 02:24:33PM +0200, Matthias Reichl wrote: > On Tue, Jun 19, 2018 at 10:32:45AM +0100, Charles Keepax wrote: > > + config.ena_gpiod = gpiod_get_optional(parent_dev, "wlf,ldoena", > > + GPIOD_OUT_HIGH); > > The WM5102 datasheet lists LDOENA as an active-high input, > so GPIOD_OUT_HIGH causes arizona-ldo1 to start up enabled. > Not sure about the other devices from the Arizona family. > Yeah all active high. > I did some tests monitoring ldoena and reset gpios with my scope: > > With commit e1739e86f0cb reverted ldoena changes from low to high > about 1.6ms before reset changes from low to high. > > With your patch ldoena goes high about 11.5ms before reset goes high. > > With your patch and GPIOD_OUT_HIGH changed to GPIOD_OUT_LOW > the delay is again about 1.6ms. > > So I guess it'd be better to adjust the comment and change > to gpiod flag to GPIOD_OUT_LOW. Yeah I am inclined to agree would be better to keep the behaviour the same as it has always been given these parts are fairly mature I will respin the patch to add that change too. Thanks, Charles