From: Olivier Stoltz Douchet Date: Thu, 1 Dec 2011 16:31:47 +0000 (+0100) Subject: [PORT FROM R2] hsi_ffl_tty.c: add a TX timeout trace in the logs X-Git-Tag: 2.1b_release~1582 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=563dc9e6169185baf69071c57de580040a43f2d4;p=kernel%2Fkernel-mfld-blackbay.git [PORT FROM R2] hsi_ffl_tty.c: add a TX timeout trace in the logs BZ: 16049 This patch is adding a TX timeout trace in the FFL modem protocol driver. It is also correcting a misleading comment. Change-Id: I5729c586d67459426bc3a822c0b8d23b90fb6a79 Orig-change-Id: Ic9bdbdcd194eec9b56d57ad71586f81842366a4b Signed-off-by: Olivier Stoltz Douchet Reviewed-on: http://android.intel.com:8080/31424 Reviewed-by: Robert, Denis Reviewed-by: Akue, LoicX Reviewed-by: Morel, YannickX Reviewed-by: Pillet, VincentX Reviewed-by: Predon, Frederic Reviewed-by: Lebsir, SamiX Tested-by: Lebsir, SamiX Reviewed-by: buildbot Tested-by: buildbot --- diff --git a/drivers/hsi/clients/hsi_ffl_tty.c b/drivers/hsi/clients/hsi_ffl_tty.c index 5ae407e..2aaf97a 100644 --- a/drivers/hsi/clients/hsi_ffl_tty.c +++ b/drivers/hsi/clients/hsi_ffl_tty.c @@ -2145,11 +2145,13 @@ static void ffl_tty_tx_timeout(unsigned long int param) { struct ffl_ctx *ctx = (struct ffl_ctx *)param; + pr_err(DRVNAME ": TX timeout"); + ffl_throw_tty_hangup(ctx, HU_TIMEOUT); } /** - * ffl_do_tx_hangup - initiate a hangup due to TX timeout + * ffl_do_tx_hangup - initiate a hangup (TX timeout, modem reset or core dump) * @work: a reference to work queue element * * Required since port shutdown calls a mutex that might sleep