/* msch can silently fail, so do it again if necessary */
for (retry = 0; retry < 3; retry++) {
/* prepare schib */
- stsch(sch->schid, schib);
+ if (cio_update_schib(sch))
+ return -ENODEV;
schib->pmcw.mme = mme;
schib->pmcw.mbfc = mbfc;
/* address can be either a block address or a block index */
ret = -EINVAL;
break;
}
- stsch(sch->schid, schib); /* restore the schib */
+ if (cio_update_schib(sch))
+ return -ENODEV;
if (ret)
break;
sch = to_subchannel(cdev->dev.parent);
- if (stsch(sch->schid, &sch->schib))
+ if (cio_update_schib(sch))
return -ENODEV;
if (scsw_fctl(&sch->schib.scsw) & SCSW_FCTL_START_FUNC) {