[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120310035850.843723E06B6@localhost>
Date: Fri, 09 Mar 2012 20:58:50 -0700
From: Grant Likely <grant.likely@...retlab.ca>
To: Tomoya MORINAGA <tomoya.rohm@...il.com>,
spi-devel-general@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Cc: qi.wang@...el.com, yong.y.wang@...el.com, joel.clark@...el.com,
kok.howg.ewe@...el.com, Wolfram Sang <w.sang@...gutronix.de>,
Tomoya MORINAGA <tomoya.rohm@...il.com>
Subject: Re: [PATCH 4/4] spi-topcliff-pch: add recovery processing in case wait-event timeout
On Fri, 9 Dec 2011 13:13:29 +0900, Tomoya MORINAGA <tomoya.rohm@...il.com> wrote:
> Currently, pch_spi_start_transfer failure is not anticipated.
> This patch adds the processing.
>
> Signed-off-by: Tomoya MORINAGA <tomoya.rohm@...il.com>
Applied, thanks.
g.
> ---
> drivers/spi/spi-topcliff-pch.c | 10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c
> index 1864555..10b684c 100644
> --- a/drivers/spi/spi-topcliff-pch.c
> +++ b/drivers/spi/spi-topcliff-pch.c
> @@ -1262,8 +1262,16 @@ static void pch_spi_process_messages(struct work_struct *pwork)
> char *save_rx_buf = data->cur_trans->rx_buf;
> for (i = 0; i < cnt; i ++) {
> pch_spi_handle_dma(data, &bpw);
> - if (!pch_spi_start_transfer(data))
> + if (!pch_spi_start_transfer(data)) {
> + data->transfer_complete = true;
> + data->current_msg->status = -EIO;
> + data->current_msg->complete
> + (data->current_msg->context);
> + data->bcurrent_msg_processing = false;
> + data->current_msg = NULL;
> + data->cur_trans = NULL;
> goto out;
> + }
> pch_spi_copy_rx_data_for_dma(data, bpw);
> }
> data->cur_trans->rx_buf = save_rx_buf;
> --
> 1.7.4.4
>
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies,Ltd.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists