Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
dcc2d1e7
Commit
dcc2d1e7
authored
19 years ago
by
Mark Lord
Committed by
Jeff Garzik
19 years ago
Browse files
Options
Download
Email Patches
Plain Diff
[libata passthru] address slave devices correctly
parent
e12a1be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+6
-0
No files found.
drivers/scsi/libata-scsi.c
View file @
dcc2d1e7
...
...
@@ -2276,6 +2276,12 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd)
tf
->
device
=
scsicmd
[
8
];
tf
->
command
=
scsicmd
[
9
];
}
/*
* If slave is possible, enforce correct master/slave bit
*/
if
(
qc
->
ap
->
flags
&
ATA_FLAG_SLAVE_POSS
)
tf
->
device
=
qc
->
dev
->
devno
?
tf
->
device
|
ATA_DEV1
:
tf
->
device
&
~
ATA_DEV1
;
/*
* Filter SET_FEATURES - XFER MODE command -- otherwise,
...
...
This diff is collapsed.
Click to expand it.
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