Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
93104654
Commit
93104654
authored
Oct 16, 2007
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cs5530: always tune PIO
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
ffbcb017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
drivers/ide/pci/cs5530.c
drivers/ide/pci/cs5530.c
+6
-13
No files found.
drivers/ide/pci/cs5530.c
View file @
93104654
/*
/*
* linux/drivers/ide/pci/cs5530.c Version 0.7
4 Jul 28
2007
* linux/drivers/ide/pci/cs5530.c Version 0.7
5 Aug 2
2007
*
*
* Copyright (C) 2000 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 2000 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 2000 Mark Lord <mlord@pobox.com>
* Copyright (C) 2000 Mark Lord <mlord@pobox.com>
...
@@ -270,20 +270,13 @@ static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
...
@@ -270,20 +270,13 @@ static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
basereg
=
CS5530_BASEREG
(
hwif
);
basereg
=
CS5530_BASEREG
(
hwif
);
d0_timings
=
inl
(
basereg
+
0
);
d0_timings
=
inl
(
basereg
+
0
);
if
(
CS5530_BAD_PIO
(
d0_timings
))
{
if
(
CS5530_BAD_PIO
(
d0_timings
))
/* PIO timings not initialized? */
outl
(
cs5530_pio_timings
[(
d0_timings
>>
31
)
&
1
][
0
],
basereg
+
0
);
outl
(
cs5530_pio_timings
[(
d0_timings
>>
31
)
&
1
][
0
],
basereg
+
0
);
if
(
!
hwif
->
drives
[
0
].
autotune
)
if
(
CS5530_BAD_PIO
(
inl
(
basereg
+
8
)))
hwif
->
drives
[
0
].
autotune
=
1
;
/* needs autotuning later */
}
if
(
CS5530_BAD_PIO
(
inl
(
basereg
+
8
)))
{
/* PIO timings not initialized? */
outl
(
cs5530_pio_timings
[(
d0_timings
>>
31
)
&
1
][
0
],
basereg
+
8
);
outl
(
cs5530_pio_timings
[(
d0_timings
>>
31
)
&
1
][
0
],
basereg
+
8
);
if
(
!
hwif
->
drives
[
1
].
autotune
)
hwif
->
drives
[
1
].
autotune
=
1
;
hwif
->
drives
[
0
].
autotune
=
1
;
/* needs autotuning later */
hwif
->
drives
[
1
].
autotune
=
1
;
}
if
(
hwif
->
dma_base
==
0
)
if
(
hwif
->
dma_base
==
0
)
return
;
return
;
...
...
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