From patchwork Wed Mar 26 11:22:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3892791 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D91589F382 for ; Wed, 26 Mar 2014 11:25:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E23A220222 for ; Wed, 26 Mar 2014 11:25:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C8DA2021A for ; Wed, 26 Mar 2014 11:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754434AbaCZLWU (ORCPT ); Wed, 26 Mar 2014 07:22:20 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:48372 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbaCZLWS (ORCPT ); Wed, 26 Mar 2014 07:22:18 -0400 Received: by mail-pb0-f42.google.com with SMTP id rr13so1797972pbb.15 for ; Wed, 26 Mar 2014 04:22:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=jIzqS4oJq2MFI2f3Y2tmhwbIhl0zL0t6CpbFrpMEWsU=; b=ZmOcXaRp5hqNMDLWTAdrH3CuMK0WT0rB7JUwJlwUG0fCSkyXcIhm47K7n2RClqrx2z XPbxenJqddPvEsl/vot6PKUl9oU5k9Xo3NxfaGQkFbSlY8D6AeURKURr8U17WfrxhjhI dvlo41oibwZ5+9PKiJFUq3lD8jYJ0/vRrMVOuFcufqrmr1sTUtuLIdP2l2VNwPVYP/n5 9FnjuAYPxn0ci6/lX2+x9GEbj4fU8B9yHL9jcysI4vGHJdMtbc9dHXZ/WByzfDGiWmqL czZJEM2D+qWqgs/maS2/7TZeAn9OR6PgNBonZnGUr5whgWtUkK7+Uom34neOtsU+HqrL KnGw== X-Gm-Message-State: ALoCoQnTegFvQ9XEi44Y2BhL5vKc5J7yIc7f7SnM1PCUbqm1cOG7U0StoQAPOwsvKyMz2ut3Staa X-Received: by 10.68.58.34 with SMTP id n2mr86461522pbq.122.1395832937607; Wed, 26 Mar 2014 04:22:17 -0700 (PDT) Received: from [1.167.67.0] (1-167-67-0.dynamic.hinet.net. [1.167.67.0]) by mx.google.com with ESMTPSA id bz4sm56943387pbb.12.2014.03.26.04.22.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:16 -0700 (PDT) Message-ID: <1395832928.19941.4.camel@phoenix> Subject: [PATCH] spi: omap-uwire: Remove full duplex check From: Axel Lin To: Mark Brown Cc: Imre Deak , Tony Lindgren , linux-spi@vger.kernel.org Date: Wed, 26 Mar 2014 19:22:08 +0800 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver sets the SPI_MASTER_HALF_DUPLEX flag, so the spi core will check transfers to ensure they are not full duplex. Signed-off-by: Axel Lin --- drivers/spi/spi-omap-uwire.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c index 95cc694..f5176bb 100644 --- a/drivers/spi/spi-omap-uwire.c +++ b/drivers/spi/spi-omap-uwire.c @@ -218,10 +218,6 @@ static int uwire_txrx(struct spi_device *spi, struct spi_transfer *t) if (!t->tx_buf && !t->rx_buf) return 0; - /* Microwire doesn't read and write concurrently */ - if (t->tx_buf && t->rx_buf) - return -EPERM; - w = spi->chip_select << 10; w |= CS_CMD;