mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
pcmcia: use state machine for extended requery
The requery callback now also handles the addition of a second pseudo
multifunction device. Avoids messing with dev_{g,s}et_drvdata(), and
fixes any workqueue <-> skt_mutex deadlock.
Tested-by: Wolfram Sang <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
af461fc187
commit
aa584ca4cd
2 changed files with 25 additions and 78 deletions
|
|
@ -230,18 +230,13 @@ struct pcmcia_socket {
|
|||
u8 busy:1;
|
||||
/* pcmcia module is being unloaded */
|
||||
u8 dead:1;
|
||||
/* a multifunction-device add event is pending */
|
||||
u8 device_add_pending:1;
|
||||
/* the pending event adds a mfc (1) or pfc (0) */
|
||||
u8 mfc_pfc:1;
|
||||
/* the PCMCIA card consists of two pseudo devices */
|
||||
u8 has_pfc:1;
|
||||
|
||||
u8 reserved:3;
|
||||
u8 reserved:4;
|
||||
} pcmcia_state;
|
||||
|
||||
|
||||
/* for adding further pseudo-multifunction devices */
|
||||
struct work_struct device_add;
|
||||
|
||||
#ifdef CONFIG_PCMCIA_IOCTL
|
||||
struct user_info_t *user;
|
||||
wait_queue_head_t queue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue