lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <qFul607Amxy21SnrHljzWlk1zF1aanKgSpEIH0--hvj9t9wRzQR5xx80eFgl_2I6pppi8NNFp0TTHwkQw0uQD0Xl-8vth8-KOsbfwrLIHNg=@alfasys.se>
Date:   Sat, 15 Jan 2022 16:42:02 +0000
From:   Alfasys <alfred@...asys.se>
To:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Damian Hobson-Garcia <dhobsong@...l.co.jp>
Subject: [PATCH 001/001] UIO: allow binding uio_dmem_genirq to devices using command line options

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@...uxfoundation.org>
CC: Damian Hobson-Garcia <dhobsong@...l.co.jp>
Signed-off-by: Alfred Patriksson <alfred@...asys.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

Download attachment "signature.asc" of type "application/pgp-signature" (250 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ