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
Kirill Smelkov
linux
Commits
3ea71ecf
Commit
3ea71ecf
authored
Nov 04, 2002
by
Alan Cox
Committed by
Dave Jones
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill old reset stuff in nsp - it supports new_eh anyway
parent
f4b5f77e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
43 deletions
+0
-43
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/nsp_cs.c
+0
-41
drivers/scsi/pcmcia/nsp_cs.h
drivers/scsi/pcmcia/nsp_cs.h
+0
-2
No files found.
drivers/scsi/pcmcia/nsp_cs.c
View file @
3ea71ecf
...
...
@@ -147,8 +147,6 @@ static Scsi_Host_Template driver_template = {
/* .eh_device_reset_handler = nsp_eh_device_reset,*/
.
eh_bus_reset_handler
=
nsp_eh_bus_reset
,
.
eh_host_reset_handler
=
nsp_eh_host_reset
,
.
abort
=
nsp_abort
,
.
reset
=
nsp_reset
,
/* .slave_attach = NULL,*/
/* .bios_param = NULL,*/
.
can_queue
=
1
,
...
...
@@ -1393,45 +1391,6 @@ static int nsp_proc_info(char *buffer,
}
#undef SPRINTF
/*---------------------------------------------------------------*/
/* error handler */
/*---------------------------------------------------------------*/
static
int
nsp_reset
(
Scsi_Cmnd
*
SCpnt
,
unsigned
int
reset_flags
)
{
nsp_hw_data
*
data
=
&
nsp_data
;
int
ret
=
0
;
DEBUG
(
0
,
"%s: SCpnt=0x%p why=%d
\n
"
,
__FUNCTION__
,
SCpnt
,
reset_flags
);
if
(
reset_flags
&
SCSI_RESET_SUGGEST_BUS_RESET
)
{
nsp_eh_bus_reset
(
SCpnt
);
ret
|=
SCSI_RESET_BUS_RESET
;
}
if
(
reset_flags
&
SCSI_RESET_SUGGEST_HOST_RESET
)
{
nsp_eh_host_reset
(
SCpnt
);
ret
|=
SCSI_RESET_HOST_RESET
;
}
if
(
ret
!=
0
)
{
return
SCSI_RESET_SUCCESS
|
ret
;
}
else
{
nsphw_init_sync
(
data
);
return
SCSI_RESET_PUNT
;
}
}
static
int
nsp_abort
(
Scsi_Cmnd
*
SCpnt
)
{
DEBUG
(
0
,
"%s: SCpnt=0x%p
\n
"
,
__FUNCTION__
,
SCpnt
);
nsp_eh_host_reset
(
SCpnt
);
nsp_eh_bus_reset
(
SCpnt
);
return
SCSI_ABORT_SUCCESS
;
}
/*static int nsp_eh_strategy(struct Scsi_Host *Shost)
{
...
...
drivers/scsi/pcmcia/nsp_cs.h
View file @
3ea71ecf
...
...
@@ -285,8 +285,6 @@ static int nsp_proc_info(char *buffer, char **start, off_t offset,
int
length
,
int
hostno
,
int
inout
);
static
int
nsp_queuecommand
(
Scsi_Cmnd
*
,
void
(
*
done
)(
Scsi_Cmnd
*
));
static
int
nsp_abort
(
Scsi_Cmnd
*
);
static
int
nsp_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
/*static int nsp_eh_abort(Scsi_Cmnd * SCpnt);*/
/*static int nsp_eh_device_reset(Scsi_Cmnd *SCpnt);*/
...
...
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