diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:30 -0400 |
commit | 9dcba7f2b7697db787741cf6698bf5c95130ffce (patch) | |
tree | 2958283804386fb9a3259906b8b28d39cf00aab9 | |
parent | 4706a7e03a03d6d206a93a49a0c723dd612cf8e9 (diff) |
gayle: add "doubler" parameter
* Add "doubler" parameter to enable support for IDE doublers.
* Obsolete "ide=doubler" kernel parameter.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | Documentation/ide/ide.txt | 9 | ||||
-rw-r--r-- | drivers/ide/ide.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/gayle.c | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/Documentation/ide/ide.txt b/Documentation/ide/ide.txt index caf24b21e7f5..0c78f4b1d9d9 100644 --- a/Documentation/ide/ide.txt +++ b/Documentation/ide/ide.txt | |||
@@ -181,12 +181,6 @@ driver using the "options=" keyword to insmod, while replacing any ',' with | |||
181 | Summary of ide driver parameters for kernel command line | 181 | Summary of ide driver parameters for kernel command line |
182 | -------------------------------------------------------- | 182 | -------------------------------------------------------- |
183 | 183 | ||
184 | "ide=doubler" : probe/support IDE doublers on Amiga | ||
185 | |||
186 | There may be more options than shown -- use the source, Luke! | ||
187 | |||
188 | Everything else is rejected with a "BAD OPTION" message. | ||
189 | |||
190 | For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) | 184 | For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672) |
191 | you need to explicitly enable probing by using "probe" kernel parameter, | 185 | you need to explicitly enable probing by using "probe" kernel parameter, |
192 | i.e. to enable probing for ALI M14xx chipsets (ali14xx host driver) use: | 186 | i.e. to enable probing for ALI M14xx chipsets (ali14xx host driver) use: |
@@ -203,6 +197,9 @@ are detected automatically). | |||
203 | You also need to use "probe" kernel parameter for ide-4drives driver | 197 | You also need to use "probe" kernel parameter for ide-4drives driver |
204 | (support for IDE generic chipset with four drives on one port). | 198 | (support for IDE generic chipset with four drives on one port). |
205 | 199 | ||
200 | To enable support for IDE doublers on Amiga use "doubler" kernel parameter | ||
201 | for gayle host driver (i.e. "gayle.doubler" if the driver is built-in). | ||
202 | |||
206 | To force ignoring cable detection (this should be needed only if you're using | 203 | To force ignoring cable detection (this should be needed only if you're using |
207 | short 40-wires cable which cannot be automatically detected - if this is not | 204 | short 40-wires cable which cannot be automatically detected - if this is not |
208 | a case please report it as a bug instead) use "ignore_cable" kernel parameter: | 205 | a case please report it as a bug instead) use "ignore_cable" kernel parameter: |
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index a4bceeecde70..a017eb242604 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -866,7 +866,7 @@ static int __init ide_setup(char *s) | |||
866 | 866 | ||
867 | printk(" : Enabled support for IDE doublers\n"); | 867 | printk(" : Enabled support for IDE doublers\n"); |
868 | ide_doubler = 1; | 868 | ide_doubler = 1; |
869 | return 1; | 869 | goto obsolete_option; |
870 | } | 870 | } |
871 | #endif /* CONFIG_BLK_DEV_IDEDOUBLER */ | 871 | #endif /* CONFIG_BLK_DEV_IDEDOUBLER */ |
872 | 872 | ||
diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c index a0c9601bdaf0..61a713bf24b5 100644 --- a/drivers/ide/legacy/gayle.c +++ b/drivers/ide/legacy/gayle.c | |||
@@ -63,6 +63,8 @@ | |||
63 | #define GAYLE_HAS_CONTROL_REG (!ide_doubler) | 63 | #define GAYLE_HAS_CONTROL_REG (!ide_doubler) |
64 | #define GAYLE_IDEREG_SIZE (ide_doubler ? 0x1000 : 0x2000) | 64 | #define GAYLE_IDEREG_SIZE (ide_doubler ? 0x1000 : 0x2000) |
65 | int ide_doubler = 0; /* support IDE doublers? */ | 65 | int ide_doubler = 0; /* support IDE doublers? */ |
66 | module_param_named(doubler, ide_doubler, bool, 0); | ||
67 | MODULE_PARM_DESC(doubler, "enable support for IDE doublers"); | ||
66 | #endif /* CONFIG_BLK_DEV_IDEDOUBLER */ | 68 | #endif /* CONFIG_BLK_DEV_IDEDOUBLER */ |
67 | 69 | ||
68 | 70 | ||