Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1850888imu; Wed, 21 Nov 2018 03:01:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/We3PX6asZAM2luzpPxM+IWK+fv9S393ApfQCstkmKQrFO7HqjAhUxhRVWflPE7+JTeL3QU X-Received: by 2002:a17:902:583:: with SMTP id f3mr6478726plf.202.1542798060598; Wed, 21 Nov 2018 03:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542798060; cv=none; d=google.com; s=arc-20160816; b=m1dBEwet9wru+aGZxcFSsCvHxXGnFInKnBM9FeP+Y3LYADdmQujojFQOKAZa4dJE3L gUa8qeod1K+gVCwqC+GUF1jpnhtU87VykH7rubEr2lTdU2/CwClggm0thRd2Gmfz43Zv izL2EoGZALSLYRy2l5IaBVsADMwK09BKh9A1u6arvXCkGoTREIjaBKScyOVAt21kj+Mf zwqxFHkKEbRscxwBZ+p2bqUl2m0kVn8Hz7N0Q0IlrNjHcCVUXp0gBxD7Gxs29S3mqk3/ bXqhKcdTX1AgXICWkVtPjIsBkmKMxFeFafONVAX+YqFDCWmKYbh9pqakfho7RfAtN60m bPwg== 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:cc :to:from:date; bh=Yi7SDShirZPGZqdWghoBzIkA7I2FeaDjTVfEG+hLKHI=; b=OipfKX6YReDLFxD9ONGE0hPO8sbRrXiGx5bzyER+nceSjidXl9M2dR6gUCpq+RNBu5 UArSHkk2gJys9S1TpTcJYUyNwYvAAiKUzt8Qy6+APnuEGziH+B21CWk5eIO85l0q9kIH JN6ybf23dkDkTaWA7PZM9bpEM+VgKBf+oMku9QwIg5nD80PwxrvzGL8ndONLtDcFaWZc nmOKJej9h3fMJqAHVASe1hgZ1tNqaR8+WVkMs4pTvhMPBvFkIUqyppSoUlOsvBkpal4S kRN0kjrLt+IDQwlmEshRcz9lJPwV+or/hS9ej6PulEGR22WF1GPy8LQwXuRGOoQCciFL 4GNg== 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 q8si46211031pgk.40.2018.11.21.03.00.45; Wed, 21 Nov 2018 03:01:00 -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; 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 S1729093AbeKUVeB (ORCPT + 99 others); Wed, 21 Nov 2018 16:34:01 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:41006 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726172AbeKUVeA (ORCPT ); Wed, 21 Nov 2018 16:34:00 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wALB00cb006730; Wed, 21 Nov 2018 05:00:00 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail3.cirrus.com ([87.246.76.56]) by mx0a-001ae601.pphosted.com with ESMTP id 2nth986qsx-1; Wed, 21 Nov 2018 05:00:00 -0600 Received: from EX17.ad.cirrus.com (ex17.ad.cirrus.com [172.20.9.81]) by mail3.cirrus.com (Postfix) with ESMTP id 9DB2C611C8B3; Wed, 21 Nov 2018 05:02:44 -0600 (CST) 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.408.0; Wed, 21 Nov 2018 10:59:59 +0000 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 wALAxwS4024750; Wed, 21 Nov 2018 10:59:59 GMT Date: Wed, 21 Nov 2018 10:59:58 +0000 From: Charles Keepax To: Marek Szyprowski CC: , , , , Subject: Re: [PATCH v2] regulator: wm8994: Don't use devres for enable GPIOs Message-ID: <20181121105958.GG16508@imbe.wolfsonmicro.main> References: <20181121101316.32194-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=435 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811210100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 21, 2018 at 11:42:06AM +0100, Marek Szyprowski wrote: > On 2018-11-21 11:13, Charles Keepax wrote: > Linus, Mark: Similar issue is probably in the other regulator drivers, > which use enable GPIO allocated by devm_gpio_get*(). This driver is > simply the first one, which we observed it. It would be great if one > would take a look into regulator_register() error path, because for some > cases the GPIO will be freed, for the other - not. > Yeah I have managed to reproduce the issue on another on of our boards now, so it definitely affects other drivers we have. Its a bit sneaky since the GPIO core only seems to warn on the additional free if you have some additional debug turned on which masks the issue most of the time. I will have a bit of a look and see what else might be affected. Thanks, Charles