From patchwork Mon May 26 19:33:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 30939 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1AF5120A25 for ; Mon, 26 May 2014 19:33:39 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id i50sf20326290qgf.1 for ; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=IgwCs1q0BYxpMco+NVXaX9p2SbMGChsP8M9b07gJaSE=; b=kghh3swSVnNsVJKKbSz1F1zRwxhfslfVCEeksBIW088Jms34D6I4Gzal3COfBqgf+C 4anEtBL6OVyl94ERq1VfLJsOr8wh9c1A18m1c5CWdCxBNmYDA83iFyHoLy0ZUL2TuG6n kNnnxNpjzLeVOIY+YOVcH2+2dzhH+BgYj+ofMWRHTnLZGCVM1dQxCf4QUyHzijLSswdb bTTHTlacpfvjWoaynNYWNvY+RbVMZqWgw8wXKjtSOBI/AC7P/AAS+rkXxAlzSCZg2MCm PwSoJmmTxLInwaWcEAdcOuNp13X9rbphsr58iRAkgHAwOvYiO/BgfhIX2jtTuECxdpOf Dc3Q== X-Gm-Message-State: ALoCoQki2edwz+MGEhxhmsRW0Hb+EEA2yQMz04h5pZK+fInsfQ+w84er5pqfeQ8Z4kj703RD6dio X-Received: by 10.58.195.202 with SMTP id ig10mr10873585vec.38.1401132818671; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.33 with SMTP id e30ls2859034qge.89.gmail; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-Received: by 10.52.149.99 with SMTP id tz3mr81815vdb.92.1401132818583; Mon, 26 May 2014 12:33:38 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id dp3si6774077vdc.106.2014.05.26.12.33.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 May 2014 12:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so9650079vcb.13 for ; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr22962804vcb.0.1401132818471; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp65586vcb; Mon, 26 May 2014 12:33:38 -0700 (PDT) X-Received: by 10.180.77.225 with SMTP id v1mr30552450wiw.5.1401132817575; Mon, 26 May 2014 12:33:37 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id dk2si1783353wib.78.2014.05.26.12.33.36 for ; Mon, 26 May 2014 12:33:37 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 20BEA4B625; Mon, 26 May 2014 21:33:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 V7-tjDr+1w59; Mon, 26 May 2014 21:33:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 50D6C4B629; Mon, 26 May 2014 21:33:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 682C74B629 for ; Mon, 26 May 2014 21:33:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 NXw3Owu+Cuvi for ; Mon, 26 May 2014 21:33:25 +0200 (CEST) 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 mail-gw2-out.broadcom.com (mail-gw2-out.broadcom.com [216.31.210.63]) by theia.denx.de (Postfix) with ESMTP id 128B34B625 for ; Mon, 26 May 2014 21:33:21 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.98,914,1392192000"; d="scan'208";a="31305939" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 26 May 2014 12:34:33 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 26 May 2014 12:33:20 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Mon, 26 May 2014 12:33:20 -0700 Received: from mail.broadcom.com (lbrmn-vmlnx03.ric.broadcom.com [10.136.4.105]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id EB45A9F9F7; Mon, 26 May 2014 12:33:19 -0700 (PDT) From: Steve Rae To: Date: Mon, 26 May 2014 12:33:29 -0700 Message-ID: <1401132809-18486-1-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 MIME-Version: 1.0 Cc: Tom Rini , Rae , Steve@theia.denx.de Subject: [U-Boot] [PATCH] i2c: kona: Resolve Kona I2C driver issue X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srae@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 - "i2c mw" command hangs (with some compilers) Signed-off-by: Steve Rae --- drivers/i2c/kona_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/kona_i2c.c b/drivers/i2c/kona_i2c.c index 0b1715a..5eab338 100644 --- a/drivers/i2c/kona_i2c.c +++ b/drivers/i2c/kona_i2c.c @@ -663,7 +663,7 @@ static int kona_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, static int kona_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, int alen, uchar *buffer, int len) { - struct i2c_msg msg[0]; + struct i2c_msg msg[1]; unsigned char msgbuf0[64]; unsigned int i; struct bcm_kona_i2c_dev *dev = kona_get_dev(adap);