Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
98b54792
Commit
98b54792
authored
Mar 16, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Greg Kroah-Hartman
Mar 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove dead "hdXlun=" kernel parameter
parent
54cdbb65
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
23 deletions
+1
-23
Documentation/ide.txt
Documentation/ide.txt
+0
-2
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+0
-3
drivers/ide/ide.c
drivers/ide/ide.c
+1
-16
include/linux/ide.h
include/linux/ide.h
+0
-2
No files found.
Documentation/ide.txt
View file @
98b54792
...
@@ -250,8 +250,6 @@ Summary of ide driver parameters for kernel command line
...
@@ -250,8 +250,6 @@ Summary of ide driver parameters for kernel command line
allowing ide-floppy, ide-tape, and ide-cdrom|writers
allowing ide-floppy, ide-tape, and ide-cdrom|writers
to use ide-scsi emulation on a device specific option.
to use ide-scsi emulation on a device specific option.
"hdxlun=xx" : set the drive last logical unit
"idebus=xx" : inform IDE driver of VESA/PCI bus speed in MHz,
"idebus=xx" : inform IDE driver of VESA/PCI bus speed in MHz,
where "xx" is between 20 and 66 inclusive,
where "xx" is between 20 and 66 inclusive,
used when tuning chipset PIO modes.
used when tuning chipset PIO modes.
...
...
drivers/ide/ide-probe.c
View file @
98b54792
...
@@ -138,9 +138,6 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd)
...
@@ -138,9 +138,6 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd)
local_irq_enable
();
local_irq_enable
();
ide_fix_driveid
(
id
);
ide_fix_driveid
(
id
);
if
(
!
drive
->
forced_lun
)
drive
->
last_lun
=
id
->
last_lun
&
0x7
;
#if defined (CONFIG_SCSI_EATA_DMA) || defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA)
#if defined (CONFIG_SCSI_EATA_DMA) || defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA)
/*
/*
* EATA SCSI controllers do a hardware ATA emulation:
* EATA SCSI controllers do a hardware ATA emulation:
...
...
drivers/ide/ide.c
View file @
98b54792
...
@@ -1798,9 +1798,7 @@ int __init ide_setup (char *s)
...
@@ -1798,9 +1798,7 @@ int __init ide_setup (char *s)
if
(
strncmp
(
s
,
"hd"
,
2
)
==
0
&&
s
[
2
]
==
'='
)
/* hd= is for hd.c */
if
(
strncmp
(
s
,
"hd"
,
2
)
==
0
&&
s
[
2
]
==
'='
)
/* hd= is for hd.c */
return
0
;
/* driver and not us */
return
0
;
/* driver and not us */
if
(
strncmp
(
s
,
"ide"
,
3
)
&&
if
(
strncmp
(
s
,
"ide"
,
3
)
&&
strncmp
(
s
,
"idebus"
,
6
)
&&
strncmp
(
s
,
"hd"
,
2
))
strncmp
(
s
,
"idebus"
,
6
)
&&
strncmp
(
s
,
"hd"
,
2
))
/* hdx= & hdxlun= */
return
0
;
return
0
;
printk
(
KERN_INFO
"ide_setup: %s"
,
s
);
printk
(
KERN_INFO
"ide_setup: %s"
,
s
);
...
@@ -1847,19 +1845,6 @@ int __init ide_setup (char *s)
...
@@ -1847,19 +1845,6 @@ int __init ide_setup (char *s)
strlcpy
(
drive
->
driver_req
,
s
+
4
,
sizeof
(
drive
->
driver_req
));
strlcpy
(
drive
->
driver_req
,
s
+
4
,
sizeof
(
drive
->
driver_req
));
goto
done
;
goto
done
;
}
}
/*
* Look for last lun option: "hdxlun="
*/
if
(
s
[
3
]
==
'l'
&&
s
[
4
]
==
'u'
&&
s
[
5
]
==
'n'
)
{
if
(
match_parm
(
&
s
[
6
],
NULL
,
vals
,
1
)
!=
1
)
goto
bad_option
;
if
(
vals
[
0
]
>=
0
&&
vals
[
0
]
<=
7
)
{
drive
->
last_lun
=
vals
[
0
];
drive
->
forced_lun
=
1
;
}
else
printk
(
" -- BAD LAST LUN! Expected value from 0 to 7"
);
goto
done
;
}
switch
(
match_parm
(
&
s
[
3
],
hd_words
,
vals
,
3
))
{
switch
(
match_parm
(
&
s
[
3
],
hd_words
,
vals
,
3
))
{
case
-
1
:
/* "none" */
case
-
1
:
/* "none" */
case
-
2
:
/* "noprobe" */
case
-
2
:
/* "noprobe" */
...
...
include/linux/ide.h
View file @
98b54792
...
@@ -742,8 +742,6 @@ typedef struct ide_drive_s {
...
@@ -742,8 +742,6 @@ typedef struct ide_drive_s {
u64
capacity64
;
/* total number of sectors */
u64
capacity64
;
/* total number of sectors */
int
last_lun
;
/* last logical unit */
int
forced_lun
;
/* if hdxlun was given at boot */
int
lun
;
/* logical unit */
int
lun
;
/* logical unit */
int
crc_count
;
/* crc counter to reduce drive speed */
int
crc_count
;
/* crc counter to reduce drive speed */
struct
list_head
list
;
struct
list_head
list
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment