From patchwork Tue Oct 6 06:37:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjugk manjugk X-Patchwork-Id: 51883 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 n966jRdC023892 for ; Tue, 6 Oct 2009 06:45:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756573AbZJFGh7 (ORCPT ); Tue, 6 Oct 2009 02:37:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756571AbZJFGh7 (ORCPT ); Tue, 6 Oct 2009 02:37:59 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:46868 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756548AbZJFGh6 (ORCPT ); Tue, 6 Oct 2009 02:37:58 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n966bJqC011482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Oct 2009 01:37:21 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n966bHlS028805; Tue, 6 Oct 2009 12:07:18 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id n966bHhm022723; Tue, 6 Oct 2009 12:07:17 +0530 Received: (from x0084895@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id n966bGb8022721; Tue, 6 Oct 2009 12:07:16 +0530 From: manjugk@ti.com To: linux-omap@vger.kernel.org Cc: Manjunatha GK Subject: [PATCH] OMAP3 : Fix McSPI RX Timeout Date: Tue, 6 Oct 2009 12:07:16 +0530 Message-Id: <1254811036-22666-1-git-send-email-manjugk@ti.com> X-Mailer: git-send-email 1.5.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index ba1a872..846485c 100644 --- a/drivers/spi/omap2_mcspi.c +++ b/drivers/spi/omap2_mcspi.c @@ -802,7 +802,6 @@ static void omap2_mcspi_work(struct work_struct *work) spi = m->spi; cs = spi->controller_state; - omap2_mcspi_set_enable(spi, 1); list_for_each_entry(t, &m->transfers, transfer_list) { if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { status = -EINVAL; @@ -830,6 +829,9 @@ static void omap2_mcspi_work(struct work_struct *work) chconf |= OMAP2_MCSPI_CHCONF_TRM_TX_ONLY; mcspi_write_chconf0(spi, chconf); + omap2_mcspi_set_master_mode(mcspi->master); + + omap2_mcspi_set_enable(spi, 1); if (t->len) { unsigned count;