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
3f066887
Commit
3f066887
authored
Aug 09, 2006
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' into upstream
parents
f4b5cc87
22aac089
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
drivers/scsi/ata_piix.c
drivers/scsi/ata_piix.c
+2
-2
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+13
-0
No files found.
drivers/scsi/ata_piix.c
View file @
3f066887
...
...
@@ -567,8 +567,8 @@ static int piix_sata_prereset(struct ata_port *ap)
present
=
1
;
}
DPRINTK
(
"ata%u: LEAVE, pcs=0x%x present
_mask
=0x%x
\n
"
,
ap
->
id
,
pcs
,
present
_mask
);
DPRINTK
(
"ata%u: LEAVE, pcs=0x%x present=0x%x
\n
"
,
ap
->
id
,
pcs
,
present
);
if
(
!
present
)
{
ata_port_printk
(
ap
,
KERN_INFO
,
"SATA port has no device.
\n
"
);
...
...
drivers/scsi/libata-scsi.c
View file @
3f066887
...
...
@@ -2353,6 +2353,19 @@ static void atapi_qc_complete(struct ata_queued_cmd *qc)
ata_gen_ata_desc_sense
(
qc
);
}
/* SCSI EH automatically locks door if sdev->locked is
* set. Sometimes door lock request continues to
* fail, for example, when no media is present. This
* creates a loop - SCSI EH issues door lock which
* fails and gets invoked again to acquire sense data
* for the failed command.
*
* If door lock fails, always clear sdev->locked to
* avoid this infinite loop.
*/
if
(
qc
->
cdb
[
0
]
==
ALLOW_MEDIUM_REMOVAL
)
qc
->
dev
->
sdev
->
locked
=
0
;
qc
->
scsicmd
->
result
=
SAM_STAT_CHECK_CONDITION
;
qc
->
scsidone
(
cmd
);
ata_qc_free
(
qc
);
...
...
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