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
af4c0be5
Commit
af4c0be5
authored
Oct 21, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata] only reset if ATA_FLAG_SATA_RESET is present
parent
dc84a4e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+6
-4
No files found.
drivers/scsi/libata-core.c
View file @
af4c0be5
...
...
@@ -1058,10 +1058,12 @@ void sata_phy_reset(struct ata_port *ap)
u32
sstatus
;
unsigned
long
timeout
=
jiffies
+
(
HZ
*
5
);
if
(
ap
->
flags
&
ATA_FLAG_SATA_RESET
)
{
scr_write
(
ap
,
SCR_CONTROL
,
0x301
);
/* issue phy wake/reset */
scr_read
(
ap
,
SCR_CONTROL
);
/* dummy read; flush */
scr_read
(
ap
,
SCR_STATUS
);
/* dummy read; flush */
udelay
(
400
);
/* FIXME: a guess */
scr_write
(
ap
,
SCR_CONTROL
,
0x300
);
/* issue phy wake/reset */
}
scr_write
(
ap
,
SCR_CONTROL
,
0x300
);
/* issue phy wake/clear reset */
/* wait for phy to become ready, if necessary */
do
{
...
...
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