Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4908861imu; Tue, 29 Jan 2019 09:29:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN6FgdhMRV55+AAjXeTKrS7Hk/LfZeQ60Mlrtwb9ymHsHACMu++chRxNI1qmK1ZL5iUx1KCP X-Received: by 2002:a62:cd44:: with SMTP id o65mr26883149pfg.222.1548782948048; Tue, 29 Jan 2019 09:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548782948; cv=none; d=google.com; s=arc-20160816; b=d1SQLIBY7wuitiA2yOdIFIS9rBvJxaW0Y50Q3HyVITCgoMgQ/kJmLzWiDCimEShZWb ymuGMsmT+pIPyA3deor8TTtNYYnD3JKYONzOnZd71zBuiXrzmqXQw5zkol/ZVRPEF1dS cP/PlQMziS3ZjKrouCxWu3S40iV9Cdc2QhZgi5eoTrsmAigxXrDE82rtFQeynLPDVTXb EmMFgv+plTTqoA1c53BrZrUy9nAoolQcy1YLby4O2V8l/eqVim4732oz4ZoHKkk3P2v+ BqwFZoiQs3FJHv+GYHA9DHpN4dUJhVI/E39pbTZ6ZVRNoyImEBer5XR5S33Ti0OeA7yP 9M/Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BCu2wp9KKl5c92Jjw+yFFflq5ziUFN34Xx4/6cWBtLE=; b=bU2c/EU0FHuyI+2hWYICyN7Yqx/AKzNL3VKc85E0aTvi5mjmP0ibOvar5LNWLd78g7 tiYoYIe0wMfdzgdoXfHUO4tEIcBiDHPxmfTpf4/+qQJJCY1s2ecTfTLw/DH1UCJZXAmI 4Th97HOz6ru77CyjcS4df2YKl3iIAVWhztoiY9KS1hzgF6QIMxb0h1DD541iYB+Qmml9 +EP5PGM2WXe3vGvdddA1kF6qa/ZXyXg0zQNLE2mVHw6DtoWr/KUsRCbP+caBeKtCk8SD vQwnX0/RoT133tTJYYIZThwnky/VSiVN19UIb8DNIfgoZd7+eZ2rw46OUhXRR5p6vxkT PiOg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si2910999pgl.30.2019.01.29.09.28.52; Tue, 29 Jan 2019 09:29:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728923AbfA2R1K (ORCPT + 99 others); Tue, 29 Jan 2019 12:27:10 -0500 Received: from muru.com ([72.249.23.125]:36656 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726999AbfA2R1K (ORCPT ); Tue, 29 Jan 2019 12:27:10 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 29F31804F; Tue, 29 Jan 2019 17:27:18 +0000 (UTC) Date: Tue, 29 Jan 2019 09:27:06 -0800 From: Tony Lindgren To: Sebastian Reichel Cc: Douglas Anderson , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: Re: New underflow of regulator enable count warnings in v5.0-rc1 Message-ID: <20190129172706.GE5720@atomide.com> References: <20190129164813.GA5720@atomide.com> <20190129171844.n6wflw4ehfdy3izs@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190129171844.n6wflw4ehfdy3izs@earth.universe> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [190129 17:18]: > Hi, > > On Tue, Jan 29, 2019 at 08:48:13AM -0800, Tony Lindgren wrote: > > Looks like commit 5451781dadf8 ("regulator: core: Only count load for > > enabled consumers") started showing new warnings with v5.0-rc cycle: > > > > regulator-dummy: Underflow of regulator enable count > > > > I'm seeing this at least with my pwm-vibra test case: > > > > # rumble-test /dev/input/by-path/platform-vibrator-event 0xffff > > pwm-vibrator vibrator: vibrator supply vcc not found, using dummy regulator > > input: pwm-vibrator as /devices/platform/vibrator/input/input4 > > regulator-dummy: Underflow of regulator enable count > > Upload rumble effect... id=0 > > regulator-dummy: Underflow of regulator enable count > > > > Are these bogus warnings for dummy regulator or do we have > > real unpaired regulator calls or somewhere? > > There are real unpaired regulator calls in the pwm-vibrator driver, > that I did not notice when I wrote the driver :(. Good news is, that > Paweł Chmiel and Jonathan Bakker are already working on fixing my mess: > > https://lore.kernel.org/patchwork/patch/1032759/ OK good to hear. > On Droid 4 it's a dummy regulator, since I did not know what > regulator is being used to supply the vibrator. Probably directly > from the battery. Yeah no idea.. Hmm maybe it's actually using the VVIB on the pmic? Regards, Tony