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
6228bab7
Commit
6228bab7
authored
Oct 27, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
6e1c6419
c0c6da72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
drivers/pcmcia/cistpl.c
drivers/pcmcia/cistpl.c
+8
-0
drivers/pcmcia/cs.c
drivers/pcmcia/cs.c
+8
-4
No files found.
drivers/pcmcia/cistpl.c
View file @
6228bab7
...
@@ -331,6 +331,14 @@ void destroy_cis_cache(struct pcmcia_socket *s)
...
@@ -331,6 +331,14 @@ void destroy_cis_cache(struct pcmcia_socket *s)
list_del
(
&
cis
->
node
);
list_del
(
&
cis
->
node
);
kfree
(
cis
);
kfree
(
cis
);
}
}
/*
* If there was a fake CIS, destroy that as well.
*/
if
(
s
->
fake_cis
)
{
kfree
(
s
->
fake_cis
);
s
->
fake_cis
=
NULL
;
}
}
}
/*======================================================================
/*======================================================================
...
...
drivers/pcmcia/cs.c
View file @
6228bab7
...
@@ -364,10 +364,6 @@ static void shutdown_socket(struct pcmcia_socket *s)
...
@@ -364,10 +364,6 @@ static void shutdown_socket(struct pcmcia_socket *s)
s
->
irq
.
AssignedIRQ
=
s
->
irq
.
Config
=
0
;
s
->
irq
.
AssignedIRQ
=
s
->
irq
.
Config
=
0
;
s
->
lock_count
=
0
;
s
->
lock_count
=
0
;
destroy_cis_cache
(
s
);
destroy_cis_cache
(
s
);
if
(
s
->
fake_cis
)
{
kfree
(
s
->
fake_cis
);
s
->
fake_cis
=
NULL
;
}
#ifdef CONFIG_CARDBUS
#ifdef CONFIG_CARDBUS
cb_free
(
s
);
cb_free
(
s
);
#endif
#endif
...
@@ -613,10 +609,18 @@ static int socket_resume(struct pcmcia_socket *skt)
...
@@ -613,10 +609,18 @@ static int socket_resume(struct pcmcia_socket *skt)
* FIXME: need a better check here for cardbus cards.
* FIXME: need a better check here for cardbus cards.
*/
*/
if
(
verify_cis_cache
(
skt
)
!=
0
)
{
if
(
verify_cis_cache
(
skt
)
!=
0
)
{
cs_dbg
(
skt
,
4
,
"cis mismatch - different card
\n
"
);
socket_remove_drivers
(
skt
);
socket_remove_drivers
(
skt
);
destroy_cis_cache
(
skt
);
destroy_cis_cache
(
skt
);
/*
* Workaround: give DS time to schedule removal.
* Remove me once the 100ms delay is eliminated
* in ds.c
*/
msleep
(
200
);
send_event
(
skt
,
CS_EVENT_CARD_INSERTION
,
CS_EVENT_PRI_LOW
);
send_event
(
skt
,
CS_EVENT_CARD_INSERTION
,
CS_EVENT_PRI_LOW
);
}
else
{
}
else
{
cs_dbg
(
skt
,
4
,
"cis matches cache
\n
"
);
send_event
(
skt
,
CS_EVENT_PM_RESUME
,
CS_EVENT_PRI_LOW
);
send_event
(
skt
,
CS_EVENT_PM_RESUME
,
CS_EVENT_PRI_LOW
);
}
}
}
else
{
}
else
{
...
...
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