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
17ce0350
Commit
17ce0350
authored
Jun 26, 2003
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SCSI data direction issues in aha1740 merger
and also remove no longer used .command entry
parent
3f576ab5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/scsi/aha1740.c
drivers/scsi/aha1740.c
+2
-3
No files found.
drivers/scsi/aha1740.c
View file @
17ce0350
...
@@ -275,7 +275,7 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id,
...
@@ -275,7 +275,7 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id,
dma_unmap_sg
(
&
edev
->
dev
,
dma_unmap_sg
(
&
edev
->
dev
,
(
struct
scatterlist
*
)
SCtmp
->
request_buffer
,
(
struct
scatterlist
*
)
SCtmp
->
request_buffer
,
SCtmp
->
use_sg
,
SCtmp
->
use_sg
,
scsi_to_dma_dir
(
SCtmp
->
sc_data_direction
)
);
SCtmp
->
sc_data_direction
);
}
else
{
}
else
{
dma_unmap_single
(
&
edev
->
dev
,
dma_unmap_single
(
&
edev
->
dev
,
sgptr
->
buf_dma_addr
,
sgptr
->
buf_dma_addr
,
...
@@ -433,7 +433,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
...
@@ -433,7 +433,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
sgpnt
=
(
struct
scatterlist
*
)
SCpnt
->
request_buffer
;
sgpnt
=
(
struct
scatterlist
*
)
SCpnt
->
request_buffer
;
cptr
=
sgptr
->
sg_chain
;
cptr
=
sgptr
->
sg_chain
;
count
=
dma_map_sg
(
&
host
->
edev
->
dev
,
sgpnt
,
SCpnt
->
use_sg
,
count
=
dma_map_sg
(
&
host
->
edev
->
dev
,
sgpnt
,
SCpnt
->
use_sg
,
scsi_to_dma_dir
(
SCpnt
->
sc_data_direction
)
);
SCpnt
->
sc_data_direction
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
for
(
i
=
0
;
i
<
count
;
i
++
)
{
cptr
[
i
].
datalen
=
sg_dma_len
(
sgpnt
+
i
);
cptr
[
i
].
datalen
=
sg_dma_len
(
sgpnt
+
i
);
cptr
[
i
].
dataptr
=
sg_dma_address
(
sgpnt
+
i
);
cptr
[
i
].
dataptr
=
sg_dma_address
(
sgpnt
+
i
);
...
@@ -570,7 +570,6 @@ static Scsi_Host_Template aha1740_template = {
...
@@ -570,7 +570,6 @@ static Scsi_Host_Template aha1740_template = {
.
proc_name
=
"aha1740"
,
.
proc_name
=
"aha1740"
,
.
proc_info
=
aha1740_proc_info
,
.
proc_info
=
aha1740_proc_info
,
.
name
=
"Adaptec 174x (EISA)"
,
.
name
=
"Adaptec 174x (EISA)"
,
.
command
=
aha1740_command
,
.
queuecommand
=
aha1740_queuecommand
,
.
queuecommand
=
aha1740_queuecommand
,
.
bios_param
=
aha1740_biosparam
,
.
bios_param
=
aha1740_biosparam
,
.
can_queue
=
AHA1740_ECBS
,
.
can_queue
=
AHA1740_ECBS
,
...
...
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