Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1646770
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] regmap: add regmap_debugfs_exit as devres action |
| Date | 2017-05-22 13:40 +0200 |
| Message-ID | <tJTQS-56Q-7@gated-at.bofh.it> (permalink) |
| References | <tHjeN-5u9-3@gated-at.bofh.it> <tITgd-4Pp-5@gated-at.bofh.it> <tJ6dr-5Nj-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Fri, May 19, 2017 at 11:36:00PM -0700, Stefan Agner wrote: > The case I observed this is when reprobing > drivers/pinctrl/freescale/pinctrl-imx.c. In this driver > regmap_attach_dev is used in imx_pinctrl_probe. When the driver gets > removed and probed again, the above warning appears since the debugfs > entries have not been removed in between... There's a jump somewhere between the problem you're reporting here and devres being a fix - surely the problem here is that we're not cleaning things up properly on destruction of the regmap? > Afaics, at least for external users, using devres for debugfs makes > sense since regmap (m) is already using devres... We should be able to destroy a regmap separately to removal of a device. If we're requiring managed access something is wrong. > We can drop this change, but then we have to add a private version of > regmap_attach_dev which does not add resource managed cleanup of > regmap_debugfs_exit... I'm sorry but I'm still not following the logic here.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] regmap: add regmap_debugfs_exit as devres action Stefan Agner <stefan@agner.ch> - 2017-05-15 10:10 +0200
Re: [PATCH] regmap: add regmap_debugfs_exit as devres action Mark Brown <broonie@kernel.org> - 2017-05-19 18:50 +0200
Re: [PATCH] regmap: add regmap_debugfs_exit as devres action Stefan Agner <stefan@agner.ch> - 2017-05-20 08:40 +0200
Re: [PATCH] regmap: add regmap_debugfs_exit as devres action Mark Brown <broonie@kernel.org> - 2017-05-22 13:40 +0200
csiph-web