/* RETURN VALUES erp pointer to the modified ERP, or NULL  */
static struct dasd_ccw_req* dasd_3990_erp_inspect_alias(struct dasd_ccw_req *erp)
/* RETURN VALUES erp pointer to the modified ERP, or NULL  */
static struct dasd_ccw_req* dasd_3990_erp_inspect_alias(struct dasd_ccw_req *erp)
{
	struct dasd_ccw_req *cqr = erp->refers;
	if (cqr->block &&
	    (cqr->block->base != cqr->startdev)) {
		if (cqr->startdev->features & DASD_FEATURE_ERPLOG) {
			DBF_DEV_EVENT(DBF_ERR, cqr->startdev,
				    "ERP on alias device for request %p,"
				    " recover on base device %s", cqr,
				    dev_name(&cqr->block->base->cdev->dev));
		}
		dasd_eckd_reset_ccw_to_base_io(cqr);
		erp->startdev = cqr->block->base;
		erp->function = dasd_3990_erp_inspect_alias;
		return erp;
	} else
		return NULL;
}