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
962bb57f
Commit
962bb57f
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] i60scsi to new eh
parent
f2f48586
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
drivers/scsi/i60uscsi.c
drivers/scsi/i60uscsi.c
+11
-13
No files found.
drivers/scsi/i60uscsi.c
View file @
962bb57f
...
...
@@ -566,10 +566,10 @@ int orc_reset_scsi_bus(ORC_HCS * pHCB)
ORC_WR
(
pHCB
->
HCS_Base
+
ORC_HCTRL
,
SCSIRST
);
if
(
waitSCSIRSTdone
(
pHCB
)
==
FALSE
)
{
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_RESET_ERROR
)
;
return
FAILED
;
}
else
{
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_RESET_SUCCESS
)
;
return
SUCCESS
;
}
}
...
...
@@ -581,7 +581,7 @@ int orc_reset_scsi_bus(ORC_HCS * pHCB)
Output : None.
Return : pSRB - Pointer to SCSI request block.
*****************************************************************************/
int
orc_device_reset
(
ORC_HCS
*
pHCB
,
Scsi_Cmnd
*
SCpnt
,
unsigned
int
target
,
unsigned
int
ResetFlags
)
int
orc_device_reset
(
ORC_HCS
*
pHCB
,
Scsi_Cmnd
*
SCpnt
,
unsigned
int
target
)
{
/* I need Host Control Block Information */
ORC_SCB
*
pScb
;
ESCB
*
pVirEscb
;
...
...
@@ -608,11 +608,11 @@ int orc_device_reset(ORC_HCS * pHCB, Scsi_Cmnd *SCpnt, unsigned int target, unsi
if
(
i
==
ORC_MAXQUEUE
)
{
printk
(
"Unable to Reset - No SCB Found
\n
"
);
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_RESET_NOT_RUNNING
)
;
return
FAILED
;
}
if
((
pScb
=
orc_alloc_scb
(
pHCB
))
==
NULL
)
{
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_RESET_NOT_RUNNING
)
;
return
FAILED
;
}
pScb
->
SCB_Opcode
=
ORC_BUSDEVRST
;
pScb
->
SCB_Target
=
target
;
...
...
@@ -626,12 +626,10 @@ int orc_device_reset(ORC_HCS * pHCB, Scsi_Cmnd *SCpnt, unsigned int target, unsi
pScb
->
SCB_SGLen
=
0
;
pVirEscb
->
SCB_Srb
=
0
;
if
(
ResetFlags
&
SCSI_RESET_SYNCHRONOUS
)
{
pVirEscb
->
SCB_Srb
=
SCpnt
;
}
pVirEscb
->
SCB_Srb
=
SCpnt
;
orc_exec_scb
(
pHCB
,
pScb
);
/* Start execute SCB */
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
return
S
CSI_RESET_PENDING
;
return
S
UCCESS
;
}
...
...
@@ -838,21 +836,21 @@ int orc_abort_srb(ORC_HCS * hcsp, Scsi_Cmnd *SCpnt)
if
((
pVirScb
->
SCB_Status
)
&&
(
pVirEscb
->
SCB_Srb
==
SCpnt
))
{
if
(
pVirScb
->
SCB_TagMsg
==
0
)
{
spin_unlock_irqrestore
(
&
(
hcsp
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_ABORT_BUSY
)
;
return
FAILED
;
}
else
{
if
(
abort_SCB
(
hcsp
,
pVirScb
))
{
pVirEscb
->
SCB_Srb
=
NULL
;
spin_unlock_irqrestore
(
&
(
hcsp
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_ABORT_SUCCESS
)
;
return
SUCCESS
;
}
else
{
spin_unlock_irqrestore
(
&
(
hcsp
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_ABORT_NOT_RUNNING
)
;
return
FAILED
;
}
}
}
}
spin_unlock_irqrestore
(
&
(
hcsp
->
BitAllocFlagLock
),
flags
);
return
(
SCSI_ABORT_NOT_RUNNING
)
;
return
FAILED
;
}
/***********************************************************************
...
...
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