[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1391722055.22187.7.camel@x220>
Date: Thu, 06 Feb 2014 22:27:35 +0100
From: Paul Bolle <pebolle@...cali.nl>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Tomas Winkler <tomas.winkler@...el.com>,
Alexander Usyskin <alexander.usyskin@...el.com>
Subject: Re: [PATCH 3.13 054/140] mei: use hbm idle state to prevent
spurious resets
On Tue, 2014-02-04 at 13:10 -0800, Greg Kroah-Hartman wrote:
> From: Tomas Winkler <tomas.winkler@...el.com>
>
> commit 66ae460b13c31a176b41550259683c841a62af3e upstream.
>
> When reset is caused by hbm protocol mismatch or timeout
> we might end up in an endless reset loop and hbm protocol
> will never sync
>
> Signed-off-by: Tomas Winkler <tomas.winkler@...el.com>
> Signed-off-by: Alexander Usyskin <alexander.usyskin@...el.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> ---
> drivers/misc/mei/hbm.c | 19 +++++++++++++++++++
> drivers/misc/mei/hbm.h | 1 +
> drivers/misc/mei/init.c | 12 ++++++++----
> drivers/misc/mei/interrupt.c | 25 +++++++++++++++----------
> 4 files changed, 43 insertions(+), 14 deletions(-)
>
> --- a/drivers/misc/mei/hbm.c
> +++ b/drivers/misc/mei/hbm.c
> [...]
> @@ -577,6 +588,14 @@ void mei_hbm_dispatch(struct mei_device
> mei_read_slots(dev, dev->rd_msg_buf, hdr->length);
> mei_msg = (struct mei_bus_message *)dev->rd_msg_buf;
>
> + /* ignore spurious message and prevent reset nesting
> + * hbm is put to idle during system reset
> + */
> + if (dev->hbm_state == MEI_HBM_IDLE) {
> + dev_dbg(&dev->pdev->dev, "hbm: state is idle ignore spurious messages\n");
> + return 0;
> + }
> +
> switch (mei_msg->hbm_cmd) {
> case HOST_START_RES_CMD:
> version_res = (struct hbm_host_version_response *)mei_msg;
This chunk triggers this, obviously correct, warning:
drivers/misc/mei/hbm.c: In function 'mei_hbm_dispatch':
drivers/misc/mei/hbm.c:596:3: warning: 'return' with a value, in function returning void [enabled by default
return 0;
^
I know that v3.13.2 has just been released. Would it be worth the
trouble to submit a clean up patch (v3.13 specific, as in v3.14-rc1 this
function returns int)?
Paul Bolle
--
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