Commit 9dcba7f2b7697db787741cf6698bf5c95130ffce

Authored by Bartlomiej Zolnierkiewicz
1 parent 4706a7e03a

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>

Showing 3 changed files with 6 additions and 7 deletions Side-by-side Diff

Documentation/ide/ide.txt
... ... @@ -181,12 +181,6 @@
181 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 184 For legacy IDE VLB host drivers (ali14xx/dtc2278/ht6560b/qd65xx/umc8672)
191 185 you need to explicitly enable probing by using "probe" kernel parameter,
192 186 i.e. to enable probing for ALI M14xx chipsets (ali14xx host driver) use:
... ... @@ -202,6 +196,9 @@
202 196  
203 197 You also need to use "probe" kernel parameter for ide-4drives driver
204 198 (support for IDE generic chipset with four drives on one port).
  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).
205 202  
206 203 To force ignoring cable detection (this should be needed only if you're using
207 204 short 40-wires cable which cannot be automatically detected - if this is not
... ... @@ -866,7 +866,7 @@
866 866  
867 867 printk(" : Enabled support for IDE doublers\n");
868 868 ide_doubler = 1;
869   - return 1;
  869 + goto obsolete_option;
870 870 }
871 871 #endif /* CONFIG_BLK_DEV_IDEDOUBLER */
872 872  
drivers/ide/legacy/gayle.c
... ... @@ -63,6 +63,8 @@
63 63 #define GAYLE_HAS_CONTROL_REG (!ide_doubler)
64 64 #define GAYLE_IDEREG_SIZE (ide_doubler ? 0x1000 : 0x2000)
65 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 68 #endif /* CONFIG_BLK_DEV_IDEDOUBLER */
67 69  
68 70