From patchwork Mon Mar 23 21:06:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guzman Lugo, Fernando" X-Patchwork-Id: 13836 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2NL6M1C003276 for ; Mon, 23 Mar 2009 21:06:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756022AbZCWVG2 (ORCPT ); Mon, 23 Mar 2009 17:06:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756195AbZCWVG2 (ORCPT ); Mon, 23 Mar 2009 17:06:28 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:44639 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756022AbZCWVG2 convert rfc822-to-8bit (ORCPT ); Mon, 23 Mar 2009 17:06:28 -0400 Received: from dlep95.itg.ti.com ([157.170.170.107]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2NL6LkS008243 for ; Mon, 23 Mar 2009 16:06:26 -0500 Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep95.itg.ti.com (8.13.8/8.13.8) with ESMTP id n2NL6LQu029244 for ; Mon, 23 Mar 2009 16:06:21 -0500 (CDT) Received: from dlee06.ent.ti.com ([157.170.170.11]) by dlee73.ent.ti.com ([157.170.170.88]) with mapi; Mon, 23 Mar 2009 16:06:21 -0500 From: "Guzman Lugo, Fernando" To: "Pandita, Vikram" , "Aguilar Pena, Leed" CC: "linux-omap@vger.kernel.org" Date: Mon, 23 Mar 2009 16:06:19 -0500 Subject: [OMAPZOOM][PATCH 3/3] DSPBRIDGE: changed mail box timeout to avoid losing messages. Thread-Topic: [OMAPZOOM][PATCH 3/3] DSPBRIDGE: changed mail box timeout to avoid losing messages. Thread-Index: Acmr+zaM0twNoNXWS862v7sqJz09AA== Message-ID: <496565EC904933469F292DDA3F1663E60287E2B12D@dlee06.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Fernando Guzman Lugo Date: Mon, 23 Mar 2009 13:30:36 -0500 Subject: [PATCH] DSPBRIDGE: changed mail box timeout to avoid losing messages. This patch is based on Felipe Contreras patch, but chanegd the mail box timeout to 35ms to avoid losing messages. Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/wmd/tiomap_sm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap_sm.c b/drivers/dsp/bridge/wmd/tiomap_sm.c index 91930a8..c536f4d 100755 --- a/drivers/dsp/bridge/wmd/tiomap_sm.c +++ b/drivers/dsp/bridge/wmd/tiomap_sm.c @@ -168,7 +168,7 @@ DSP_STATUS CHNLSM_InterruptDSP2(struct WMD_DEV_CONTEXT *pDevContext, pDevContext->dwBrdState = BRD_RUNNING; } - timeout = jiffies + msecs_to_jiffies(10); + timeout = jiffies + msecs_to_jiffies(35); while (HW_MBOX_IsFull(resources.dwMboxBase, MBOX_ARM2DSP)) { if (time_after(jiffies, timeout)) { printk(KERN_ERR "dspbridge: "