Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1510320
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Viresh Kumar <viresh.kumar@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V3] mfd: wm8994-core: Don't use managed regulator bulk get API |
| Date | Thu, 27 Oct 2016 16:50:01 +0200 |
| Message-ID | <swUad-3cE-9@gated-at.bofh.it> (permalink) |
| References | <swJRv-4Jq-5@gated-at.bofh.it> <swP0S-8pq-39@gated-at.bofh.it> |
| X-Original-To | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5dPZGV3B5hmel7VXkWKQJWSCHH0dPX5ywmjh9Ccu/3k=; b=JLr+A+hH4SGzFbQaXEu+EBGshlPHuuL1KYB/yD4WLlnCcyuLDWkk799V7frntY81Xs IyNYkpaUwRagzpSj763XpyYdh1WhzO2YXmsjXY5Rr0ny13nGSr7oaGx1PiP1Q0R8oIfB uYQ6eQKbiLc/laLzUwF/+xnME2bTLSQel5Srg= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5dPZGV3B5hmel7VXkWKQJWSCHH0dPX5ywmjh9Ccu/3k=; b=Mhuz4iODegBXilAn4U5HoroSTht6CKWcSHxRho/67l5n6vzxPUgWOcPOFDZYcCTu7W FY4iu14kJ8uMnGKlp28Ss9x6Pu7dB6ut5yPJhiryVnUg4TqrU42tmqNXLhSrbIaEgJ2F Jaz5c/SzP98WCODXxL1zQ/uYl6EWcO4rJapX7et8BfEpvZ8cyd1vk+KI/+AxT7fZzWzX s/RL9MQmTd92n7rou4K63m+MQXbYQUnyQRU/CeGwsdKAlDFdlhBg6GnfNX5N+L09NXeV 1W0wveo9ZwE2/lkLPuwE3US2TUVFcXIAbESNcgMNf8sfn8Uko6lPdzVEna0gb/luWOXo 4gtw== |
| X-Gm-Message-State | ABUngvdYGjNCPkOMIgJlXC1EWXGqS+PmuMO+FLW57zq35aPrLStOAO9eTXHR+PYi0xNL6/ip |
| X-Received | by 10.98.108.4 with SMTP id h4mr12974292pfc.11.1477563665479; Thu, 27 Oct 2016 03:21:05 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 31 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Lee Jones <lee.jones@linaro.org>, linaro-kernel@lists.linaro.org, broonie@kernel.org, patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org |
| X-Original-Date | Thu, 27 Oct 2016 15:51:02 +0530 |
| X-Original-Message-ID | <20161027102102.GE10423@vireshk-i7> |
| X-Original-References | <ceb6ba8e70efae6f268295c0e04a4ca58c1f6d0b.1477539388.git.viresh.kumar@linaro.org> <20161027091413.GI28180@localhost.localdomain> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1510320 |
Show key headers only | View raw
On 27-10-16, 10:14, Charles Keepax wrote: > On Thu, Oct 27, 2016 at 09:09:30AM +0530, Viresh Kumar wrote: > > The kernel WARNs and then crashes today if wm8994_device_init() fails > > after calling devm_regulator_bulk_get(). > > > > That happens because there are multiple devices involved here and the > > order in which resources are freed isn't correct. > > > > The regulators are added as children of wm8994->dev. > > devm_regulator_bulk_get() receives wm8994->dev as the device, though it > > gets the same regulators which were added as children of wm8994->dev > > earlier. > > > > During failures, the children are removed first and the core eventually > > calls regulator_unregister() for them. As regulator_put() was never done > > for them (opposite of devm_regulator_bulk_get()), the kernel WARNs at > > > > WARN_ON(rdev->open_count); > > > > And eventually it crashes from debugfs_remove_recursive(). > > > > --------x------------------x---------------- > > The back track seems to have got really really long again. Not just that, even the code moved a version back. Sorry for the noise, the right version is sent now :( -- viresh
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V3] mfd: wm8994-core: Don't use managed regulator bulk get API Viresh Kumar <viresh.kumar@linaro.org> - 2016-10-27 05:50 +0200
Re: [PATCH V3] mfd: wm8994-core: Don't use managed regulator bulk get API Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2016-10-27 11:20 +0200
Re: [PATCH V3] mfd: wm8994-core: Don't use managed regulator bulk get API Viresh Kumar <viresh.kumar@linaro.org> - 2016-10-27 16:50 +0200
csiph-web