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
644a9e89
Commit
644a9e89
authored
Oct 30, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata] fix bugs in SATA reset code path
parent
4edbdf9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+12
-3
No files found.
drivers/scsi/libata-core.c
View file @
644a9e89
...
...
@@ -1086,6 +1086,11 @@ void sata_phy_reset(struct ata_port *ap)
if
(
ap
->
flags
&
ATA_FLAG_PORT_DISABLED
)
return
;
if
(
ata_busy_sleep
(
ap
,
ATA_TMOUT_BOOT_QUICK
,
ATA_TMOUT_BOOT
))
{
ata_port_disable
(
ap
);
return
;
}
ata_bus_reset
(
ap
);
}
...
...
@@ -1339,9 +1344,13 @@ void ata_bus_reset(struct ata_port *ap)
outb
(
ap
->
ctl
,
ioaddr
->
ctl_addr
);
/* determine if device 0/1 are present */
dev0
=
ata_dev_devchk
(
ap
,
0
);
if
(
slave_possible
)
dev1
=
ata_dev_devchk
(
ap
,
1
);
if
(
ap
->
flags
&
ATA_FLAG_SATA_RESET
)
dev0
=
1
;
else
{
dev0
=
ata_dev_devchk
(
ap
,
0
);
if
(
slave_possible
)
dev1
=
ata_dev_devchk
(
ap
,
1
);
}
if
(
dev0
)
devmask
|=
(
1
<<
0
);
...
...
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