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
6bbb049e
Commit
6bbb049e
authored
Feb 26, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] wd33c93 sync up with 2.4
parent
9f58fa60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
drivers/scsi/wd33c93.c
drivers/scsi/wd33c93.c
+21
-1
No files found.
drivers/scsi/wd33c93.c
View file @
6bbb049e
...
...
@@ -1419,12 +1419,32 @@ DB(DB_INTR,printk("} "))
static
void
reset_wd33c93
(
struct
Scsi_Host
*
instance
)
void
reset_wd33c93
(
struct
Scsi_Host
*
instance
)
{
struct
WD33C93_hostdata
*
hostdata
=
(
struct
WD33C93_hostdata
*
)
instance
->
hostdata
;
const
wd33c93_regs
regs
=
hostdata
->
regs
;
uchar
sr
;
#ifdef CONFIG_SGI_IP22
{
int
busycount
=
0
;
extern
void
sgiwd93_reset
(
unsigned
long
);
/* wait 'til the chip gets some time for us */
while
((
READ_AUX_STAT
()
&
ASR_BSY
)
&&
busycount
++
<
100
)
udelay
(
10
);
/*
* there are scsi devices out there, which manage to lock up
* the wd33c93 in a busy condition. In this state it won't
* accept the reset command. The only way to solve this is to
* give the chip a hardware reset (if possible). The code below
* does this for the SGI Indy, where this is possible
*/
/* still busy ? */
if
(
READ_AUX_STAT
()
&
ASR_BSY
)
sgiwd93_reset
(
instance
->
base
);
/* yeah, give it the hard one */
}
#endif
write_wd33c93
(
regs
,
WD_OWN_ID
,
OWNID_EAF
|
OWNID_RAF
|
instance
->
this_id
|
hostdata
->
clock_freq
);
write_wd33c93
(
regs
,
WD_CONTROL
,
CTRL_IDI
|
CTRL_EDI
|
CTRL_POLLED
);
...
...
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