Thread (9 messages) 9 messages, 2 authors, 2021-05-06

Re: [PATCH 1/2] regmap: add regmap_might_sleep()

From: Mark Brown <broonie@kernel.org>
Date: 2021-05-06 15:54:21
Also in: lkml

On Thu, May 06, 2021 at 03:35:26PM +0200, Michael Walle wrote:
Am 2021-05-06 14:43, schrieb Mark Brown:
quoted
Surely it's just a case of the device that's creating the gpio regmap
setting a flag when it instantiates it?  It's just one more thing that
the parent knows about the device.  This doesn't seem insurmountable.
No its not. It just seemed like it is way easier to just ask the regmap.
I'd rather cause a small amount of hoop jumping for one or two users
than open up an API that feels like it's going to encourage dodgy usage,
there's already enough problems with things like regulator_get_optional()
and this feels like it's going down similar roads.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help