/* Return value: 0 if reset not allowed / non-zero if reset is allowed  */
static int ipr_reset_allowed(struct ipr_ioa_cfg *ioa_cfg)
/* Return value: 0 if reset not allowed / non-zero if reset is allowed  */
static int ipr_reset_allowed(struct ipr_ioa_cfg *ioa_cfg)
{
	volatile u32 temp_reg;
	temp_reg = readl(ioa_cfg->regs.sense_interrupt_reg);
	return ((temp_reg & IPR_PCII_CRITICAL_OPERATION) == 0);
}