mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Kelley <mhklinux@outlook.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Haiyang Zhang" <haiyangz@microsoft.com>,
	"Wei Liu" <wei.liu@kernel.org>,
	"Dexuan Cui" <decui@microsoft.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: RE: [PATCH v2 05/10] uio: Allow untainted use of driver_override
Date: Fri, 20 Nov 2026 20:08:28 +0000	[thread overview]
Message-ID: <MN2PR02MB6863416350047853E8C13756D4782@MN2PR02MB6863.namprd02.prod.outlook.com> (raw)
In-Reply-To: <190f97fdc22c161c4721283a2beb20bb477f9e56.1795171088.git.u.kleine-koenig@baylibre.com>

From: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Sent: Friday, November 20, 2026 3:11 AM
> 
> uio drivers support being matched to devices using the driver_override
> mechanism. Add .support_driver_override = true to continue having
> this mechanism work for them without tainting the kernel.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>   # uio_hv_generic.c change only

> ---
>  drivers/uio/uio_dmem_genirq.c | 1 +
>  drivers/uio/uio_hv_generic.c  | 1 +
>  drivers/uio/uio_pci_generic.c | 1 +
>  drivers/uio/uio_pdrv_genirq.c | 1 +
>  4 files changed, 4 insertions(+)
> 
> diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
> index 263c1ebc2d57..71992431770e 100644
> --- a/drivers/uio/uio_dmem_genirq.c
> +++ b/drivers/uio/uio_dmem_genirq.c
> @@ -309,6 +309,7 @@ static struct platform_driver uio_dmem_genirq = {
>  	.driver = {
>  		.name = DRIVER_NAME,
>  		.of_match_table = of_match_ptr(uio_of_genirq_match),
> +		.support_driver_override = true,
>  	},
>  };
> 
> diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c
> index dff92dcbb10d..255c2b5730f6 100644
> --- a/drivers/uio/uio_hv_generic.c
> +++ b/drivers/uio/uio_hv_generic.c
> @@ -407,6 +407,7 @@ static struct hv_driver hv_uio_drv = {
>  	.id_table = hv_uio_id_table,
>  	.probe = hv_uio_probe,
>  	.remove = hv_uio_remove,
> +	.driver.support_driver_override = true,
>  };
> 
>  static int __init
> diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c
> index c0cab3adb7b0..9785df9fc5de 100644
> --- a/drivers/uio/uio_pci_generic.c
> +++ b/drivers/uio/uio_pci_generic.c
> @@ -140,6 +140,7 @@ static struct pci_driver uio_pci_driver = {
>  	.name = "uio_pci_generic",
>  	.id_table = NULL, /* only dynamic id's */
>  	.probe = probe,
> +	.driver.support_driver_override = true,
>  };
> 
>  module_pci_driver(uio_pci_driver);
> diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
> index 87e43821ab0c..022178248962 100644
> --- a/drivers/uio/uio_pdrv_genirq.c
> +++ b/drivers/uio/uio_pdrv_genirq.c
> @@ -261,6 +261,7 @@ static struct platform_driver uio_pdrv_genirq = {
>  	.driver = {
>  		.name = DRIVER_NAME,
>  		.of_match_table = of_match_ptr(uio_of_genirq_match),
> +		.support_driver_override = true,
>  	},
>  };
> 
> --
> 2.56.0.rc1
> 


  reply	other threads:[~2026-11-20 20:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 11:11 [PATCH v2 00/10] driver core: Disable driver overriding by default Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 01/10] " Uwe Kleine-König
2026-11-20 18:59   ` Jason Gunthorpe
2026-11-20 20:07   ` Michael Kelley
2026-11-20 11:11 ` [PATCH v2 05/10] uio: Allow untainted use of driver_override Uwe Kleine-König
2026-11-20 20:08   ` Michael Kelley [this message]
2026-11-21  1:16 ` [PATCH v2 00/10] driver core: Disable driver overriding by default Danilo Krummrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MN2PR02MB6863416350047853E8C13756D4782@MN2PR02MB6863.namprd02.prod.outlook.com \
    --to=mhklinux@outlook.com \
    --cc=decui@microsoft.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=haiyangz@microsoft.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=wei.liu@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®