* [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options
@ 2022-01-15 16:42 Alfasys
2022-01-18 6:51 ` Damian Hobson-Garcia
2022-01-26 18:02 ` Greg Kroah-Hartman
0 siblings, 2 replies; 3+ messages in thread
From: Alfasys @ 2022-01-15 16:42 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman, Damian Hobson-Garcia
[-- Attachment #1.1: Type: text/plain, Size: 1225 bytes --]
Add an option to bind the uio_dmem_genirq driver to a given device
using command line options.
Make uio_dmem_genirq match uio_pdrv_genirq functionality added in
commit 05c3e0bb5629 ("UIO: allow binding uio_pdrv_genirq.c to devices
using command line option")
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Alfred Patriksson <alfred@alfasys.se>
---
git diff c9e6606c7fe92 #(tag: v5.16-rc8)
diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
index 6b5cfa5b0673..7f6c9b594dd4 100644
--- a/drivers/uio/uio_dmem_genirq.c
+++ b/drivers/uio/uio_dmem_genirq.c
@@ -317,10 +317,13 @@ static const struct dev_pm_ops uio_dmem_genirq_dev_pm_ops = {
};
#ifdef CONFIG_OF
-static const struct of_device_id uio_of_genirq_match[] = {
- { /* empty for now */ },
+static struct of_device_id uio_of_genirq_match[] = {
+ { /* This is filled with module_parm */ },
+ { /* Sentinel */ },
};
MODULE_DEVICE_TABLE(of, uio_of_genirq_match);
+module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
+MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio");
#endif
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options
2022-01-15 16:42 [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options Alfasys
@ 2022-01-18 6:51 ` Damian Hobson-Garcia
2022-01-26 18:02 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Damian Hobson-Garcia @ 2022-01-18 6:51 UTC (permalink / raw)
To: Alfasys, linux-kernel; +Cc: Greg Kroah-Hartman
On 2022/01/16 1:42, Alfasys wrote:
> Add an option to bind the uio_dmem_genirq driver to a given device
> using command line options.
> Make uio_dmem_genirq match uio_pdrv_genirq functionality added in
> commit 05c3e0bb5629 ("UIO: allow binding uio_pdrv_genirq.c to devices
>
> using command line option")
A bit of a weird extra line break here, but other than that, looks ok I
think.
Acked-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options
2022-01-15 16:42 [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options Alfasys
2022-01-18 6:51 ` Damian Hobson-Garcia
@ 2022-01-26 18:02 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2022-01-26 18:02 UTC (permalink / raw)
To: Alfasys; +Cc: linux-kernel, Damian Hobson-Garcia
On Sat, Jan 15, 2022 at 04:42:02PM +0000, Alfasys wrote:
> Add an option to bind the uio_dmem_genirq driver to a given device
> using command line options.
> Make uio_dmem_genirq match uio_pdrv_genirq functionality added in
> commit 05c3e0bb5629 ("UIO: allow binding uio_pdrv_genirq.c to devices
>
> using command line option")
>
> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> CC: Damian Hobson-Garcia <dhobsong@igel.co.jp>
> Signed-off-by: Alfred Patriksson <alfred@alfasys.se>
>
> ---
>
> git diff c9e6606c7fe92 #(tag: v5.16-rc8)
> diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
> index 6b5cfa5b0673..7f6c9b594dd4 100644
> --- a/drivers/uio/uio_dmem_genirq.c
> +++ b/drivers/uio/uio_dmem_genirq.c
> @@ -317,10 +317,13 @@ static const struct dev_pm_ops uio_dmem_genirq_dev_pm_ops = {
> };
>
>
> #ifdef CONFIG_OF
> -static const struct of_device_id uio_of_genirq_match[] = {
> - { /* empty for now */ },
> +static struct of_device_id uio_of_genirq_match[] = {
> + { /* This is filled with module_parm */ },
> + { /* Sentinel */ },
> };
> MODULE_DEVICE_TABLE(of, uio_of_genirq_match);
> +module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
> +MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio");
I do not want to add new module parameters, this is not the 1990's
anymore.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-26 18:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 16:42 [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options Alfasys
2022-01-18 6:51 ` Damian Hobson-Garcia
2022-01-26 18:02 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®