mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
scsi/atari: Revive "atascsi=" setup option
It was documented in Documentation/m68k/kernel-options.txt and Documentation/scsi/scsi-parameters.txt, but the implementation was missing. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michael Schmitz <schmitzmic@googlemail.com> Cc: James E.J. Bottomley <JBottomley@parallels.com> Cc: linux-scsi@vger.kernel.org
This commit is contained in:
parent
0eb8694b18
commit
7b54e43a8d
1 changed files with 11 additions and 2 deletions
|
@ -734,17 +734,21 @@ int atari_scsi_release(struct Scsi_Host *sh)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init atari_scsi_setup(char *str, int *ints)
|
#ifndef MODULE
|
||||||
|
static int __init atari_scsi_setup(char *str)
|
||||||
{
|
{
|
||||||
/* Format of atascsi parameter is:
|
/* Format of atascsi parameter is:
|
||||||
* atascsi=<can_queue>,<cmd_per_lun>,<sg_tablesize>,<hostid>,<use_tags>
|
* atascsi=<can_queue>,<cmd_per_lun>,<sg_tablesize>,<hostid>,<use_tags>
|
||||||
* Defaults depend on TT or Falcon, hostid determined at run time.
|
* Defaults depend on TT or Falcon, hostid determined at run time.
|
||||||
* Negative values mean don't change.
|
* Negative values mean don't change.
|
||||||
*/
|
*/
|
||||||
|
int ints[6];
|
||||||
|
|
||||||
|
get_options(str, ARRAY_SIZE(ints), ints);
|
||||||
|
|
||||||
if (ints[0] < 1) {
|
if (ints[0] < 1) {
|
||||||
printk("atari_scsi_setup: no arguments!\n");
|
printk("atari_scsi_setup: no arguments!\n");
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ints[0] >= 1) {
|
if (ints[0] >= 1) {
|
||||||
|
@ -777,8 +781,13 @@ void __init atari_scsi_setup(char *str, int *ints)
|
||||||
setup_use_tagged_queuing = !!ints[5];
|
setup_use_tagged_queuing = !!ints[5];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__setup("atascsi=", atari_scsi_setup);
|
||||||
|
#endif /* !MODULE */
|
||||||
|
|
||||||
int atari_scsi_bus_reset(Scsi_Cmnd *cmd)
|
int atari_scsi_bus_reset(Scsi_Cmnd *cmd)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
|
Loading…
Reference in a new issue