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
9c6c56a3
Commit
9c6c56a3
authored
May 23, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
May 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] misc AMD IDE driver fixes
Fix incorrect UDMA100 cable test (by Dave Jones). Fix compilation warning.
parent
e295deb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/ide/pci/amd74xx.c
drivers/ide/pci/amd74xx.c
+2
-6
No files found.
drivers/ide/pci/amd74xx.c
View file @
9c6c56a3
...
@@ -313,7 +313,8 @@ static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char
...
@@ -313,7 +313,8 @@ static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char
case
AMD_UDMA_100
:
case
AMD_UDMA_100
:
pci_read_config_byte
(
dev
,
AMD_CABLE_DETECT
,
&
t
);
pci_read_config_byte
(
dev
,
AMD_CABLE_DETECT
,
&
t
);
amd_80w
=
((
u
&
0x3
)
?
1
:
0
)
|
((
u
&
0xc
)
?
2
:
0
);
pci_read_config_dword
(
dev
,
AMD_UDMA_TIMING
,
&
u
);
amd_80w
=
((
t
&
0x3
)
?
1
:
0
)
|
((
t
&
0xc
)
?
2
:
0
);
for
(
i
=
24
;
i
>=
0
;
i
-=
8
)
for
(
i
=
24
;
i
>=
0
;
i
-=
8
)
if
(((
u
>>
i
)
&
4
)
&&
!
(
amd_80w
&
(
1
<<
(
1
-
(
i
>>
4
)))))
{
if
(((
u
>>
i
)
&
4
)
&&
!
(
amd_80w
&
(
1
<<
(
1
-
(
i
>>
4
)))))
{
printk
(
KERN_WARNING
"AMD_IDE: Bios didn't set cable bits correctly. Enabling workaround.
\n
"
);
printk
(
KERN_WARNING
"AMD_IDE: Bios didn't set cable bits correctly. Enabling workaround.
\n
"
);
...
@@ -383,11 +384,6 @@ static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char
...
@@ -383,11 +384,6 @@ static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char
return
0
;
return
0
;
}
}
static
unsigned
int
__init
ata66_amd74xx
(
ide_hwif_t
*
hwif
)
{
return
((
amd_enabled
&
amd_80w
)
>>
hwif
->
channel
)
&
1
;
}
static
void
__init
init_hwif_amd74xx
(
ide_hwif_t
*
hwif
)
static
void
__init
init_hwif_amd74xx
(
ide_hwif_t
*
hwif
)
{
{
int
i
;
int
i
;
...
...
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