Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171540
b: refs/heads/master
c: 1e1815b
h: refs/heads/master
v: v3
  • Loading branch information
Frank Blaschka authored and David S. Miller committed Nov 14, 2009
1 parent 412f64b commit d953c2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7c2aecc0747f5c86a1959bce6a7ce8170a556b0
refs/heads/master: 1e1815be87e45ce512f998ab35e9554c25031f4d
5 changes: 5 additions & 0 deletions trunk/drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,11 @@ static int ctcm_pm_suspend(struct ccwgroup_device *gdev)
return 0;
netif_device_detach(priv->channel[READ]->netdev);
ctcm_close(priv->channel[READ]->netdev);
if (!wait_event_timeout(priv->fsm->wait_q,
fsm_getstate(priv->fsm) == DEV_STATE_STOPPED, CTCM_TIME_5_SEC)) {
netif_device_attach(priv->channel[READ]->netdev);
return -EBUSY;
}
ccw_device_set_offline(gdev->cdev[1]);
ccw_device_set_offline(gdev->cdev[0]);
return 0;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/s390/net/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ init_fsm(char *name, const char **state_names, const char **event_names, int nr_
return NULL;
}
strlcpy(this->name, name, sizeof(this->name));
init_waitqueue_head(&this->wait_q);

f = kzalloc(sizeof(fsm), order);
if (f == NULL) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/s390/net/fsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ typedef struct fsm_instance_t {
char name[16];
void *userdata;
int userint;
wait_queue_head_t wait_q;
#if FSM_DEBUG_HISTORY
int history_index;
int history_size;
Expand Down Expand Up @@ -197,6 +198,7 @@ fsm_newstate(fsm_instance *fi, int newstate)
printk(KERN_DEBUG "fsm(%s): New state %s\n", fi->name,
fi->f->state_names[newstate]);
#endif
wake_up(&fi->wait_q);
}

/**
Expand Down

0 comments on commit d953c2e

Please sign in to comment.