From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from edu-smtp-01.edutel.nl (edu-smtp-01.edutel.nl [88.159.1.175]) by ozlabs.org (Postfix) with ESMTP id 606D0B70A7 for ; Mon, 16 Aug 2010 22:21:37 +1000 (EST) Message-ID: <4C692D4D.1030401@neli.hopto.org> Date: Mon, 16 Aug 2010 14:21:33 +0200 From: Micha Nelissen MIME-Version: 1.0 To: Alexandre Bounine Subject: Re: [PATCH 5/9] RapidIO: Add default handler for error_stopped state References: <1281712686-31308-1-git-send-email-alexandre.bounine@idt.com> <1281712686-31308-6-git-send-email-alexandre.bounine@idt.com> In-Reply-To: <1281712686-31308-6-git-send-email-alexandre.bounine@idt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev@ozlabs.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Alexandre Bounine wrote: > + > + if (err_status & RIO_PORT_N_ERR_STS_PW_OUT_ES) { > + pr_debug("RIO_EM: servicing Output Error-Stopped state\n"); > + /* > + * 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); 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. Micha