[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210506155335.GC3377@sirena.org.uk>
Date: Thu, 6 May 2021 16:53:35 +0100
From: Mark Brown <broonie@...nel.org>
To: Michael Walle <michael@...le.cc>
Cc: linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
Andy Shevchenko <andy.shevchenko@...il.com>
Subject: Re: [PATCH 1/2] regmap: add regmap_might_sleep()
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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists