* [PATCH 1/2] Documentation: devres: add missing mailbox helpers
@ 2024-11-06 23:52 anish kumar
2024-11-06 23:52 ` [PATCH 2/2] Documentation: devres: add missing remoteproc helpers anish kumar
2024-11-11 16:58 ` [PATCH 1/2] Documentation: devres: add missing mailbox helpers David Lechner
0 siblings, 2 replies; 5+ messages in thread
From: anish kumar @ 2024-11-06 23:52 UTC (permalink / raw)
To: corbet, broonie, dlechner, u.kleine-koenig, Jonathan.Cameron,
pstanner
Cc: linux-kernel, linux-doc, anish kumar
mailbox api's were missing from the devres documentation.
This patch adds them.
Signed-off-by: anish kumar <yesanishhere@gmail.com>
---
Documentation/driver-api/driver-model/devres.rst | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
index 5f2ee8d717b1..8350a098f81f 100644
--- a/Documentation/driver-api/driver-model/devres.rst
+++ b/Documentation/driver-api/driver-model/devres.rst
@@ -346,6 +346,10 @@ LED
devm_led_trigger_register()
devm_of_led_get()
+MAILBOX
+ devm_mbox_controller_register()
+ devm_mbox_controller_unregister()
+
MDIO
devm_mdiobus_alloc()
devm_mdiobus_alloc_size()
--
2.39.3 (Apple Git-146)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] Documentation: devres: add missing remoteproc helpers
2024-11-06 23:52 [PATCH 1/2] Documentation: devres: add missing mailbox helpers anish kumar
@ 2024-11-06 23:52 ` anish kumar
2024-11-11 16:58 ` [PATCH 1/2] Documentation: devres: add missing mailbox helpers David Lechner
1 sibling, 0 replies; 5+ messages in thread
From: anish kumar @ 2024-11-06 23:52 UTC (permalink / raw)
To: corbet, broonie, dlechner, u.kleine-koenig, Jonathan.Cameron,
pstanner
Cc: linux-kernel, linux-doc, anish kumar
remoteproc helpers were missing from the devres documentation.
This patch adds them.
Signed-off-by: anish kumar <yesanishhere@gmail.com>
---
Documentation/driver-api/driver-model/devres.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
index 8350a098f81f..7bf06e5c9274 100644
--- a/Documentation/driver-api/driver-model/devres.rst
+++ b/Documentation/driver-api/driver-model/devres.rst
@@ -448,6 +448,12 @@ REGULATOR
devm_regulator_register_supply_alias()
devm_regulator_unregister_notifier()
+REMOTEPROC
+ devm_rproc_add()
+ devm_rproc_free()
+ devm_rproc_alloc()
+ devm_rproc_remove()
+
RESET
devm_reset_control_get()
devm_reset_controller_register()
--
2.39.3 (Apple Git-146)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] Documentation: devres: add missing mailbox helpers
2024-11-06 23:52 [PATCH 1/2] Documentation: devres: add missing mailbox helpers anish kumar
2024-11-06 23:52 ` [PATCH 2/2] Documentation: devres: add missing remoteproc helpers anish kumar
@ 2024-11-11 16:58 ` David Lechner
2024-11-11 17:35 ` anish kumar
2024-11-12 20:12 ` Jonathan Corbet
1 sibling, 2 replies; 5+ messages in thread
From: David Lechner @ 2024-11-11 16:58 UTC (permalink / raw)
To: anish kumar, corbet, broonie, u.kleine-koenig, Jonathan.Cameron,
pstanner
Cc: linux-kernel, linux-doc
On 11/6/24 5:52 PM, anish kumar wrote:
> mailbox api's were missing from the devres documentation.
> This patch adds them.
I've been wondering... Is it really that useful to have all
of the devn_ functions listed in the documentation?
My opinion is no, we can grep the source code for these if
we want to find them and we should just delete these lists
instead of spending effort trying to keep them up-to-date.
Or if the consensus is yes it is useful, maybe we should
add something in checkpatch to avoid missing these like
we do for MAINTAINERS?
>
> Signed-off-by: anish kumar <yesanishhere@gmail.com>
> ---
> Documentation/driver-api/driver-model/devres.rst | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
> index 5f2ee8d717b1..8350a098f81f 100644
> --- a/Documentation/driver-api/driver-model/devres.rst
> +++ b/Documentation/driver-api/driver-model/devres.rst
> @@ -346,6 +346,10 @@ LED
> devm_led_trigger_register()
> devm_of_led_get()
>
> +MAILBOX
> + devm_mbox_controller_register()
> + devm_mbox_controller_unregister()
> +
> MDIO
> devm_mdiobus_alloc()
> devm_mdiobus_alloc_size()
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] Documentation: devres: add missing mailbox helpers
2024-11-11 16:58 ` [PATCH 1/2] Documentation: devres: add missing mailbox helpers David Lechner
@ 2024-11-11 17:35 ` anish kumar
2024-11-12 20:12 ` Jonathan Corbet
1 sibling, 0 replies; 5+ messages in thread
From: anish kumar @ 2024-11-11 17:35 UTC (permalink / raw)
To: David Lechner
Cc: corbet, broonie, u.kleine-koenig, Jonathan.Cameron, pstanner,
linux-kernel, linux-doc
On Mon, Nov 11, 2024 at 8:58 AM David Lechner <dlechner@baylibre.com> wrote:
>
> On 11/6/24 5:52 PM, anish kumar wrote:
> > mailbox api's were missing from the devres documentation.
> > This patch adds them.
>
> I've been wondering... Is it really that useful to have all
> of the devn_ functions listed in the documentation?
>
> My opinion is no, we can grep the source code for these if
> we want to find them and we should just delete these lists
Agreed.
> instead of spending effort trying to keep them up-to-date.
>
> Or if the consensus is yes it is useful, maybe we should
> add something in checkpatch to avoid missing these like
> we do for MAINTAINERS?
excellent idea, checkpatch can warn if a corresponding devm_*
variant is available and the patch is not utilizing it.
>
> >
> > Signed-off-by: anish kumar <yesanishhere@gmail.com>
> > ---
> > Documentation/driver-api/driver-model/devres.rst | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
> > index 5f2ee8d717b1..8350a098f81f 100644
> > --- a/Documentation/driver-api/driver-model/devres.rst
> > +++ b/Documentation/driver-api/driver-model/devres.rst
> > @@ -346,6 +346,10 @@ LED
> > devm_led_trigger_register()
> > devm_of_led_get()
> >
> > +MAILBOX
> > + devm_mbox_controller_register()
> > + devm_mbox_controller_unregister()
> > +
> > MDIO
> > devm_mdiobus_alloc()
> > devm_mdiobus_alloc_size()
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] Documentation: devres: add missing mailbox helpers
2024-11-11 16:58 ` [PATCH 1/2] Documentation: devres: add missing mailbox helpers David Lechner
2024-11-11 17:35 ` anish kumar
@ 2024-11-12 20:12 ` Jonathan Corbet
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2024-11-12 20:12 UTC (permalink / raw)
To: David Lechner, anish kumar, broonie, u.kleine-koenig,
Jonathan.Cameron, pstanner
Cc: linux-kernel, linux-doc
David Lechner <dlechner@baylibre.com> writes:
> On 11/6/24 5:52 PM, anish kumar wrote:
>> mailbox api's were missing from the devres documentation.
>> This patch adds them.
>
> I've been wondering... Is it really that useful to have all
> of the devn_ functions listed in the documentation?
Not particularly, no.
Far better would be to use the docs build system to bring in the
kerneldoc comments that are there for at least a good subset of those
functions.
Thanks,
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-11-12 20:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 23:52 [PATCH 1/2] Documentation: devres: add missing mailbox helpers anish kumar
2024-11-06 23:52 ` [PATCH 2/2] Documentation: devres: add missing remoteproc helpers anish kumar
2024-11-11 16:58 ` [PATCH 1/2] Documentation: devres: add missing mailbox helpers David Lechner
2024-11-11 17:35 ` anish kumar
2024-11-12 20:12 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox