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
nexedi
linux
Commits
04f8ba95
Commit
04f8ba95
authored
Feb 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Feb 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] part fix the highpoint timing/overclock bug
parent
dbc9f2a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
drivers/ide/pci/hpt366.c
drivers/ide/pci/hpt366.c
+10
-4
No files found.
drivers/ide/pci/hpt366.c
View file @
04f8ba95
/*
/*
* linux/drivers/ide/hpt366.c Version 0.34 Sept 17, 2002
* linux/drivers/ide/
pci/
hpt366.c Version 0.34 Sept 17, 2002
*
*
* Copyright (C) 1999-2002 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 1999-2002 Andre Hedrick <andre@linux-ide.org>
* Portions Copyright (C) 2001 Sun Microsystems, Inc.
* Portions Copyright (C) 2001 Sun Microsystems, Inc.
...
@@ -807,7 +807,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
...
@@ -807,7 +807,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
}
else
if
(
freq
<
0xc8
)
{
}
else
if
(
freq
<
0xc8
)
{
pll
=
F_LOW_PCI_50
;
pll
=
F_LOW_PCI_50
;
if
(
hpt_minimum_revision
(
dev
,
8
))
if
(
hpt_minimum_revision
(
dev
,
8
))
return
-
EOPNOTSUPP
;
pci_set_drvdata
(
dev
,
NULL
)
;
else
if
(
hpt_minimum_revision
(
dev
,
5
))
else
if
(
hpt_minimum_revision
(
dev
,
5
))
pci_set_drvdata
(
dev
,
(
void
*
)
fifty_base_hpt372
);
pci_set_drvdata
(
dev
,
(
void
*
)
fifty_base_hpt372
);
else
if
(
hpt_minimum_revision
(
dev
,
4
))
else
if
(
hpt_minimum_revision
(
dev
,
4
))
...
@@ -820,7 +820,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
...
@@ -820,7 +820,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
if
(
hpt_minimum_revision
(
dev
,
8
))
if
(
hpt_minimum_revision
(
dev
,
8
))
{
{
printk
(
KERN_ERR
"HPT37x: 66MHz timings are not supported.
\n
"
);
printk
(
KERN_ERR
"HPT37x: 66MHz timings are not supported.
\n
"
);
return
-
EOPNOTSUPP
;
pci_set_drvdata
(
dev
,
NULL
)
;
}
}
else
if
(
hpt_minimum_revision
(
dev
,
5
))
else
if
(
hpt_minimum_revision
(
dev
,
5
))
pci_set_drvdata
(
dev
,
(
void
*
)
sixty_six_base_hpt372
);
pci_set_drvdata
(
dev
,
(
void
*
)
sixty_six_base_hpt372
);
...
@@ -923,7 +923,7 @@ static int __init init_hpt366 (struct pci_dev *dev)
...
@@ -923,7 +923,7 @@ static int __init init_hpt366 (struct pci_dev *dev)
if
(
!
pci_get_drvdata
(
dev
))
if
(
!
pci_get_drvdata
(
dev
))
{
{
printk
(
KERN_ERR
"hpt366: unknown bus timing.
\n
"
);
printk
(
KERN_ERR
"hpt366: unknown bus timing.
\n
"
);
return
-
EOPNOTSUPP
;
pci_set_drvdata
(
dev
,
NULL
)
;
}
}
return
0
;
return
0
;
}
}
...
@@ -1061,6 +1061,12 @@ static void __init init_dma_hpt366 (ide_hwif_t *hwif, unsigned long dmabase)
...
@@ -1061,6 +1061,12 @@ static void __init init_dma_hpt366 (ide_hwif_t *hwif, unsigned long dmabase)
if
(
!
dmabase
)
if
(
!
dmabase
)
return
;
return
;
if
(
pci_get_drvdata
(
hwif
->
pci_dev
)
==
NULL
)
{
printk
(
KERN_WARNING
"hpt: no known IDE timings, disabling DMA.
\n
"
);
return
;
}
dma_old
=
hwif
->
INB
(
dmabase
+
2
);
dma_old
=
hwif
->
INB
(
dmabase
+
2
);
...
...
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