Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151099
b: refs/heads/master
c: 93a2759
h: refs/heads/master
i:
  151097: ca2af42
  151095: 0baa2cb
v: v3
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Jun 16, 2009
1 parent f3f78b9 commit 4ff4abf
Show file tree
Hide file tree
Showing 2 changed files with 15 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: dcbd16d5111258df7c821ec1e4124fe6ffbf3c16
refs/heads/master: 93a275921daf83e6e4efbafdd82712bcaa93f491
14 changes: 14 additions & 0 deletions trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ static struct css_device_id io_subchannel_ids[] = {
};
MODULE_DEVICE_TABLE(css, io_subchannel_ids);

static int io_subchannel_prepare(struct subchannel *sch)
{
struct ccw_device *cdev;
/*
* Don't allow suspend while a ccw device registration
* is still outstanding.
*/
cdev = sch_get_cdev(sch);
if (cdev && !device_is_registered(&cdev->dev))
return -EAGAIN;
return 0;
}

static struct css_driver io_subchannel_driver = {
.owner = THIS_MODULE,
.subchannel_type = io_subchannel_ids,
Expand All @@ -148,6 +161,7 @@ static struct css_driver io_subchannel_driver = {
.probe = io_subchannel_probe,
.remove = io_subchannel_remove,
.shutdown = io_subchannel_shutdown,
.prepare = io_subchannel_prepare,
};

struct workqueue_struct *ccw_device_work;
Expand Down

0 comments on commit 4ff4abf

Please sign in to comment.