From patchwork Mon Feb 22 12:39:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 586135 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E7D5D140BA7 for ; Mon, 22 Feb 2016 23:40:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6A9BFA75F6; Mon, 22 Feb 2016 13:40:07 +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 i_8jlIl_t8zv; Mon, 22 Feb 2016 13:40:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BB7ECA7564; Mon, 22 Feb 2016 13:40:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B4D99A75D6 for ; Mon, 22 Feb 2016 13:40:02 +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 L0nA8WYL5OPw for ; Mon, 22 Feb 2016 13:40:02 +0100 (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 mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by theia.denx.de (Postfix) with ESMTPS id 1070BA75F6 for ; Mon, 22 Feb 2016 13:39:55 +0100 (CET) Received: by mail-pa0-f54.google.com with SMTP id ho8so93203989pac.2 for ; Mon, 22 Feb 2016 04:39:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v0bFdQKjbQqpqtPsoY3JMDT6z8Rhf3IxAXRJXMWeTiM=; b=CUvoHV3+XJD4NP6Awr99402QayrPXEVziQfNIs1xPOfzp7hFYn39UPx5RIOXD/nXjg h1p5ZVauZ0HK/XiHvknZjOH46YKyoMLeLLfMqs63tf8hNpc/f/hqB939NAAjEIiQAp8F kZZ4VzOR/hKbQxQREzR9nBIMC5vxf7k1iZc7gxPFjDlAHGLTrbGXEivg5r9i3ztUKLeW GPOelbSKx6L50VZe+dqZgfGCAXrhOq6oQAikPJZwrTquAnzFcZ43XdfpBy/ERJkSzeo0 AB2fZ5Q//uYWt0CsQPDwZERcntJb2JUk4809VSQPBK9wcLjhcoUJhlmgRAeMiuf9g/D7 3Z0Q== X-Gm-Message-State: AG10YOQiUN0g8c/+qgUPOgkOGGfnZzm/4NZllLQBxWllcBMeP/RAU6TqtTbC1r+F8yuOAg== X-Received: by 10.66.221.10 with SMTP id qa10mr37589299pac.4.1456144793908; Mon, 22 Feb 2016 04:39:53 -0800 (PST) Received: from Jubuntu.amcc.com ([182.73.239.130]) by smtp.gmail.com with ESMTPSA id 70sm36693250pfs.78.2016.02.22.04.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 04:39:52 -0800 (PST) From: Jagan Teki To: u-boot@lists.denx.de Date: Mon, 22 Feb 2016 18:09:17 +0530 Message-Id: <1456144760-24372-3-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456144760-24372-1-git-send-email-jteki@openedev.com> References: <1456144760-24372-1-git-send-email-jteki@openedev.com> Cc: Tom Rini , Christophe Ricard , Christophe Ricard Subject: [U-Boot] [PATCH v4 2/5] spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Christophe Ricard In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default. Signed-off-by: Christophe Ricard Reviewed-by: Simon Glass Reviewed-by: Jagan Teki --- drivers/spi/spi-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 677c020..5561f36 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -158,6 +158,7 @@ static int spi_child_pre_probe(struct udevice *dev) slave->max_hz = plat->max_hz; slave->mode = plat->mode; slave->mode_rx = plat->mode_rx; + slave->wordlen = SPI_DEFAULT_WORDLEN; return 0; }