RE: [PATCH 5/9] RapidIO: Add default handler for error_stopped state
From: Bounine, Alexandre <hidden>
Date: 2010-08-16 14:47:51
Also in:
lkml
From: Bounine, Alexandre <hidden>
Date: 2010-08-16 14:47:51
Also in:
lkml
Micha Nelissen wrote:
=20 Alexandre Bounine wrote:quoted
+ + if (err_status & RIO_PORT_N_ERR_STS_PW_OUT_ES) { + pr_debug("RIO_EM: servicing Output Error-Stopped
state\n");
quoted
+ /* + * Send a Link-Request/Input-Status control symbol + */ + + /* Read from link maintenance response register + * to clear valid bit */ + rio_mport_read_config_32(mport, destid, hopcount, + rdev->phys_efptr + RIO_PORT_N_MNT_RSP_CSR(pnum), + ®val); + udelay(50);=20 Perhaps this whole part of operating the MNT_RSP registers (sending link-request symbol is the only useful action IIRC?) can be put in a separate function for readability. =20
I was on the fence with this one. Now I have an extra vote in favor of a separate function ;) Will do. =20