[PATCH v9 0/4] driver core: add probe error check helper
Mark Brown
broonie at kernel.org
Thu Jul 30 12:48:45 EDT 2020
On Thu, Jul 30, 2020 at 09:18:30AM -0700, Dmitry Torokhov wrote:
> I believe it still has not been answered why this can't be pushed into
> resource providers (clock, regulators, gpio, interrupts, etc),
> especially for devm APIs where we know exactly what device we are
> requesting a resource for, so that individual drivers do not need to
> change anything.
The error messages are frequently in the caller rather than the
frameworks, it's often helpful for the comprehensibility of the error
messages especially in cases where things may be legitimately absent.
> We can mark the device as being probed so that probe
> deferral is only handled when we actually execute probe() (and for the
> bonus points scream loudly if someone tries to return -EPROBE_DEFER
> outside of probe path).
Is this a big issue?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200730/a61401eb/attachment.sig>
More information about the linux-arm-kernel
mailing list