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

From: Mark Brown
Date: Thu May 06 2021 - 11:54:20 EST


On Thu, May 06, 2021 at 03:35:26PM +0200, Michael Walle wrote:
> Am 2021-05-06 14:43, schrieb Mark Brown:

> > 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.

Attachment: signature.asc
Description: PGP signature