/* Copy valid bits from the extended control word to device irb.  */
static void ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb)
/* Copy valid bits from the extended control word to device irb.  */
static void ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb)
{
	cdev->private->irb.scsw.cmd.ectl = 0;
	if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) &&
	    !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS))
		cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl;
	if (!cdev->private->irb.scsw.cmd.ectl)
		return;
	memcpy (&cdev->private->irb.ecw, irb->ecw, sizeof (irb->ecw));
}