Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88407
b: refs/heads/master
c: fe6173d
h: refs/heads/master
i:
  88405: 352928f
  88403: 25359f7
  88399: 354f1d4
v: v3
  • Loading branch information
Cornelia Huck authored and Heiko Carstens committed Apr 17, 2008
1 parent 2a1450a commit b454188
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22806dc1a8ffd88a7c7bdd070879e6e323db496a
refs/heads/master: fe6173d9b33dba18ec462051750fb1b9abcd796d
9 changes: 8 additions & 1 deletion trunk/drivers/s390/cio/device_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,15 @@ int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa,
return -EACCES;
}
ret = cio_start_key (sch, cpa, lpm, key);
if (ret == 0)
switch (ret) {
case 0:
cdev->private->intparm = intparm;
break;
case -EACCES:
case -ENODEV:
dev_fsm_event(cdev, DEV_EVENT_VERIFY);
break;
}
return ret;
}

Expand Down
6 changes: 5 additions & 1 deletion trunk/drivers/s390/cio/device_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ ccw_device_do_sense(struct ccw_device *cdev, struct irb *irb)
{
struct subchannel *sch;
struct ccw1 *sense_ccw;
int rc;

sch = to_subchannel(cdev->dev.parent);

Expand All @@ -337,7 +338,10 @@ ccw_device_do_sense(struct ccw_device *cdev, struct irb *irb)
/* Reset internal retry indication. */
cdev->private->flags.intretry = 0;

return cio_start(sch, sense_ccw, 0xff);
rc = cio_start(sch, sense_ccw, 0xff);
if (rc == -ENODEV || rc == -EACCES)
dev_fsm_event(cdev, DEV_EVENT_VERIFY);
return rc;
}

/*
Expand Down

0 comments on commit b454188

Please sign in to comment.