Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86406
b: refs/heads/master
c: c53ea18
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 26, 2008
1 parent 09aa751 commit 40ba19f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbd34d00af2960097ebd46a31dabc8bb9f16ea4e
refs/heads/master: c53ea18dc29a1ac075119f651d6ac4386a549a34
2 changes: 0 additions & 2 deletions trunk/Documentation/ide.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ Summary of ide driver parameters for kernel command line
As for VLB, it is safest to not specify it.
Bigger values are safer than smaller ones.

"idex=noprobe" : do not attempt to access/use this interface

"idex=base" : probe for an interface at the addr specified,
where "base" is usually 0x1f0 or 0x170
and "ctl" is assumed to be "base"+0x206
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ static int ide_probe_port(ide_hwif_t *hwif)

BUG_ON(hwif->present);

if (hwif->noprobe)
if (hwif->noprobe ||
(hwif->drives[0].noprobe && hwif->drives[1].noprobe))
return -EACCES;

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ static int __init ide_setup(char *s)

case -1: /* "noprobe" */
hwif->noprobe = 1;
goto done;
goto obsolete_option;

case 1: /* base */
vals[1] = vals[0] + 0x206; /* default ctl */
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/ide/pci/cmd640.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,8 @@ static int __init cmd640x_init(void)
/*
* Try to enable the secondary interface, if not already enabled
*/
if (cmd_hwif1->noprobe) {
if (cmd_hwif1->noprobe ||
(cmd_hwif1->drives[0].noprobe && cmd_hwif1->drives[1].noprobe)) {
port2 = "not probed";
} else {
b = get_cmd640_reg(CNTRL);
Expand Down

0 comments on commit 40ba19f

Please sign in to comment.