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
7d73dc11
Commit
7d73dc11
authored
Feb 13, 2003
by
Alan Cox
Committed by
David Woodhouse
Feb 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix aha1740
parent
51f3f3af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/scsi/aha1740.c
drivers/scsi/aha1740.c
+4
-4
No files found.
drivers/scsi/aha1740.c
View file @
7d73dc11
...
@@ -315,8 +315,8 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
...
@@ -315,8 +315,8 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
{
{
unchar
direction
;
unchar
direction
;
unchar
*
cmd
=
(
unchar
*
)
SCpnt
->
cmnd
;
unchar
*
cmd
=
(
unchar
*
)
SCpnt
->
cmnd
;
unchar
target
=
SCpnt
->
target
;
unchar
target
=
SCpnt
->
device
->
id
;
struct
aha1740_hostdata
*
host
=
HOSTDATA
(
SCpnt
->
host
);
struct
aha1740_hostdata
*
host
=
HOSTDATA
(
SCpnt
->
device
->
host
);
unsigned
long
flags
;
unsigned
long
flags
;
void
*
buff
=
SCpnt
->
request_buffer
;
void
*
buff
=
SCpnt
->
request_buffer
;
int
bufflen
=
SCpnt
->
request_bufflen
;
int
bufflen
=
SCpnt
->
request_bufflen
;
...
@@ -416,7 +416,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
...
@@ -416,7 +416,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
host
->
ecb
[
ecbno
].
datalen
=
bufflen
;
host
->
ecb
[
ecbno
].
datalen
=
bufflen
;
host
->
ecb
[
ecbno
].
dataptr
=
isa_virt_to_bus
(
buff
);
host
->
ecb
[
ecbno
].
dataptr
=
isa_virt_to_bus
(
buff
);
}
}
host
->
ecb
[
ecbno
].
lun
=
SCpnt
->
lun
;
host
->
ecb
[
ecbno
].
lun
=
SCpnt
->
device
->
lun
;
host
->
ecb
[
ecbno
].
ses
=
1
;
/* Suppress underrun errors */
host
->
ecb
[
ecbno
].
ses
=
1
;
/* Suppress underrun errors */
host
->
ecb
[
ecbno
].
dir
=
direction
;
host
->
ecb
[
ecbno
].
dir
=
direction
;
host
->
ecb
[
ecbno
].
ars
=
1
;
/* Yes, get the sense on an error */
host
->
ecb
[
ecbno
].
ars
=
1
;
/* Yes, get the sense on an error */
...
@@ -449,7 +449,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
...
@@ -449,7 +449,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
#define LOOPCNT_WARN 10
/* excessive mbxout wait -> syslog-msg */
#define LOOPCNT_WARN 10
/* excessive mbxout wait -> syslog-msg */
#define LOOPCNT_MAX 1000000
/* mbxout deadlock -> panic() after ~ 2 sec. */
#define LOOPCNT_MAX 1000000
/* mbxout deadlock -> panic() after ~ 2 sec. */
int
loopcnt
;
int
loopcnt
;
unsigned
int
base
=
SCpnt
->
host
->
io_port
;
unsigned
int
base
=
SCpnt
->
device
->
host
->
io_port
;
DEB
(
printk
(
"aha1740[%d] critical section
\n
"
,
ecbno
));
DEB
(
printk
(
"aha1740[%d] critical section
\n
"
,
ecbno
));
spin_lock_irqsave
(
&
aha1740_lock
,
flags
);
spin_lock_irqsave
(
&
aha1740_lock
,
flags
);
...
...
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