login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
3
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Borislav Petkov
Subject:
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
Date: Sunday, August 3, 2008 - 7:54 am
On Sun, Aug 03, 2008 at 04:45:39PM +0200, Borislav Petkov wrote:
quoted text
> On Sun, Aug 03, 2008 at 04:11:10PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > On Sunday 03 August 2008, Borislav Petkov wrote: > > > From: Borislav Petkov <petkovbb@gmail.com> > > > Date: Sun, 3 Aug 2008 09:28:53 +0200 > > > Subject: [PATCH 2/2] ide-generic: handle probing of legacy io-ports > > > > > > Avoid probing the io-ports in case an IDE PCI controller is present and it uses > > > the legacy iobases. If we still want to enforce the probing, we do > > > > > > ide_generic.probe_mask=0x3f > > > > > > on the kernel command line. > > > > > > Signed-off-by: Borislav Petkov <petkovbb@gmail.com> > > > > Thanks for reworking the patch, looks much better now. > > > > There are still some issues to address though. > > > > > --- > > > drivers/ide/ide-generic.c | 23 ++++++++++++++++++----- > > > 1 files changed, 18 insertions(+), 5 deletions(-) > > > > > > diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c > > > index 8fe8b5b..7d79616 100644 > > > --- a/drivers/ide/ide-generic.c > > > +++ b/drivers/ide/ide-generic.c > > > @@ -27,7 +27,7 @@ > > > > > > #define DRV_NAME "ide_generic" > > > > > > -static int probe_mask = 0x03; > > > +static int probe_mask = 0x00; > > > > No need to initialize it now. > > right, static. > > > > module_param(probe_mask, int, 0); > > > MODULE_PARM_DESC(probe_mask, "probe mask for legacy ISA IDE ports"); > > > > > > @@ -105,18 +105,31 @@ static int __init ide_generic_init(void) > > > hw_regs_t hw[MAX_HWIFS], *hws[MAX_HWIFS]; > > > struct ide_host *host; > > > unsigned long io_addr; > > > - int i, rc; > > > + int i, rc, dummy, primary = 0, secondary = 0; > > > > > > #ifdef CONFIG_MIPS > > > if (!ide_probe_legacy()) > > > return -ENODEV; > > > #endif > > > - printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" module " > > > - "parameter for probing all legacy ISA IDE ports\n"); > > > + ata_legacy_check_iobases(&primary, &secondary, &dummy); > > > + > > > + if (primary) { > > > > Shouldn't this also check for secondary? > > you don't have to since primary is set to one in all cases.
crap, forget what i said here ^ :(. -- Regards/Gruss, Boris. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] ide-floppy fix
, Borislav Petkov
, (Mon Jul 14, 10:33 pm)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Mon Jul 14, 10:40 pm)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Tue Jul 15, 1:39 pm)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Tue Jul 15, 1:58 pm)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Tue Jul 15, 10:20 pm)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Wed Jul 16, 8:59 am)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Wed Jul 16, 10:56 am)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Sun Jul 20, 5:06 am)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Mon Jul 21, 12:03 pm)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Mon Jul 21, 10:27 pm)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Tue Jul 22, 12:49 pm)
Re: [PATCH] ide-floppy fix
, Borislav Petkov
, (Tue Jul 22, 11:32 pm)
Re: [PATCH] ide-floppy fix
, Bartlomiej Zolnierki ...
, (Wed Jul 23, 11:51 am)
[PATCH] ide-generic: skip automatic probing of legacy ioba ...
, Borislav Petkov
, (Thu Jul 31, 10:48 pm)
Re: [PATCH] ide-generic: skip automatic probing of legacy ...
, Bartlomiej Zolnierki ...
, (Sat Aug 2, 10:02 am)
Re: [PATCH] ide-generic: skip automatic probing of legacy ...
, Borislav Petkov
, (Sat Aug 2, 11:32 am)
Re: [PATCH] ide-generic: skip automatic probing of legacy ...
, Bartlomiej Zolnierki ...
, (Sat Aug 2, 11:46 am)
[PATCH 1/2] pata_legacy: export functionality to ide
, Borislav Petkov
, (Sun Aug 3, 12:37 am)
[PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Borislav Petkov
, (Sun Aug 3, 12:38 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Alan Cox
, (Sun Aug 3, 4:59 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Bartlomiej Zolnierki ...
, (Sun Aug 3, 6:37 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Alan Cox
, (Sun Aug 3, 6:39 am)
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Bartlomiej Zolnierki ...
, (Sun Aug 3, 7:11 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Borislav Petkov
, (Sun Aug 3, 7:38 am)
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Borislav Petkov
, (Sun Aug 3, 7:45 am)
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Borislav Petkov
, (Sun Aug 3, 7:54 am)
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Bartlomiej Zolnierki ...
, (Sun Aug 3, 7:59 am)
Re: [PATCH 2/2] ide-generic: handle probing of legacy io-ports
, Borislav Petkov
, (Sun Aug 3, 8:08 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Alan Cox
, (Sun Aug 3, 8:22 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Borislav Petkov
, (Sun Aug 3, 9:51 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Jeff Garzik
, (Sun Aug 3, 4:43 pm)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Sergei Shtylyov
, (Tue Aug 5, 7:26 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Boris Petkov
, (Tue Aug 5, 7:32 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Bartlomiej Zolnierki ...
, (Tue Aug 5, 7:41 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Borislav Petkov
, (Tue Aug 5, 11:10 pm)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Sergei Shtylyov
, (Wed Aug 6, 4:34 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Boris Petkov
, (Wed Aug 6, 7:03 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Sergei Shtylyov
, (Wed Aug 6, 8:57 am)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Alan Cox
, (Wed Aug 6, 12:46 pm)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Borislav Petkov
, (Wed Aug 6, 12:47 pm)
Re: [PATCH 1/2] pata_legacy: export functionality to ide
, Sergei Shtylyov
, (Wed Aug 6, 1:04 pm)
[PATCH] ide-generic: handle probing of legacy io-ports v5 ...
, Borislav Petkov
, (Wed Aug 6, 9:36 pm)
Re: [PATCH] ide-generic: handle probing of legacy io-ports ...
, Bartlomiej Zolnierki ...
, (Thu Aug 7, 10:06 am)
Re: [PATCH] ide-generic: handle probing of legacy io-ports v5
, Sergei Shtylyov
, (Fri Aug 8, 3:04 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate