From 288a78a5d276028363b80de158df372ee688f918 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 23 Jan 2024 21:55:01 +0100 Subject: linux: Add noide and noahci kernel options They were meant to be temporary, but that got longer, and people seem to expect them to be there now. --- linux/src/drivers/block/ide.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux/src') diff --git a/linux/src/drivers/block/ide.c b/linux/src/drivers/block/ide.c index 67d939a9..c8dee846 100644 --- a/linux/src/drivers/block/ide.c +++ b/linux/src/drivers/block/ide.c @@ -3725,7 +3725,10 @@ static void probe_for_hwifs (void) #ifdef CONFIG_BLK_DEV_PROMISE init_dc4030(); #endif - ahci_probe_pci(); + extern char *kernel_cmdline; + if (strncmp(kernel_cmdline, "noahci", 6) && + !strstr(kernel_cmdline, " noahci")) + ahci_probe_pci(); } static int hwif_init (int h) -- cgit v1.2.3