From patchwork Wed Nov 2 00:00:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brock Zheng X-Patchwork-Id: 80465 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp74954qge; Wed, 2 Nov 2016 04:14:06 -0700 (PDT) X-Received: by 10.28.11.208 with SMTP id 199mr2268312wml.97.1478085246634; Wed, 02 Nov 2016 04:14:06 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id hn4si1867323wjc.169.2016.11.02.04.14.06; Wed, 02 Nov 2016 04:14:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BFC88A7559; Wed, 2 Nov 2016 12:14:05 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VLSMkaYW3Din; Wed, 2 Nov 2016 12:14:04 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D50D1A7537; Wed, 2 Nov 2016 12:14:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F38A4BDBD for ; Wed, 2 Nov 2016 01:11:23 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J5cSAnuuDOhl for ; Wed, 2 Nov 2016 01:11:23 +0100 (CET) X-Greylist: delayed 499 seconds by postgrey-1.34 at theia; Wed, 02 Nov 2016 01:11:20 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtphy.263.net (irl-smtp01.263.net [54.76.167.174]) by theia.denx.de (Postfix) with ESMTPS id 2614B4BA35 for ; Wed, 2 Nov 2016 01:11:20 +0100 (CET) Received: from transport.263xmail.com (transportfm.263xmail.com [211.150.65.123]) by smtphy.263.net (Postfix) with ESMTPS id 59D77E01A7 for ; Wed, 2 Nov 2016 08:02:59 +0800 (CST) Received: from regular2.263xmail.com (unknown [192.168.165.161]) by transport.263xmail.com (Postfix) with ESMTP id 46F6A1F05 for ; Wed, 2 Nov 2016 08:02:57 +0800 (CST) Received: from regular1.263xmail.com (unknown [192.168.165.235]) by regular2.263xmail.com (Postfix) with ESMTP id 192B418EB39 for ; Wed, 2 Nov 2016 08:02:46 +0800 (CST) Received: from yzheng?techyauld.com (unknown [192.168.167.159]) by regular1.263xmail.com (Postfix) with ESMTP id E6BA41DE86; Wed, 2 Nov 2016 08:02:36 +0800 (CST) X-263anti-spam: KSV:0;BIG:0;ABS:1;DNS:0;ATT:1;SPF:S; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ADDR-CHECKED: 0 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 82A44393; Wed, 2 Nov 2016 08:02:36 +0800 (CST) X-RL-SENDER: yzheng@techyauld.com X-FST-TO: u-boot@lists.denx.de X-SENDER-IP: 106.39.52.90 X-LOGIN-NAME: yzheng@techyauld.com X-UNIQUE-TAG: <66d9592ea8e5b56a9187fd09aff0430d> X-ATTACHMENT-NUM: 1 X-SENDER: yzheng@techyauld.com X-DNS-TYPE: 0 Received: from localhost (unknown [106.39.52.90]) by smtp.263.net (Postfix) whith ESMTP id 915067IGX8; Wed, 02 Nov 2016 08:02:36 +0800 (CST) Date: Wed, 2 Nov 2016 08:00:20 +0800 From: =?utf-8?B?6YORIOeljg==?= To: u-boot@lists.denx.de Message-ID: <20161102000020.GG1282@techyauld.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-Mailman-Approved-At: Wed, 02 Nov 2016 12:14:01 +0100 Subject: [U-Boot] fixup typo in omap SPI driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" It seems that the register arrary should be indexed by cs, not by wordlen. -- Brock Zheng 郑 祎 北京中科腾越科技发展有限公司 北京市海淀区东北旺西路8号中关村软件园21号楼启明星辰大厦二层六区(邮编:100094) _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 60e9d6e..2380a0e 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -416,7 +416,7 @@ static void _omap3_spi_set_wordlen(struct omap3_spi_priv *priv) unsigned int confr; /* McSPI individual channel configuration */ - confr = readl(&priv->regs->channel[priv->wordlen].chconf); + confr = readl(&priv->regs->channel[priv->cs].chconf); /* wordlength */ confr &= ~OMAP3_MCSPI_CHCONF_WL_MASK;