From patchwork Tue May 17 08:41:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 573443 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1f0e:0:0:0:0 with SMTP id hs14csp200253mab; Tue, 17 May 2022 01:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtoXhqMN79Eg8WJoBJJOf5NeKmDwLK1ac2ZLSRWw0+pAb+aYUhf8ED+ib4XJV9IPRU4t5V X-Received: by 2002:a17:907:16a9:b0:6f4:f0f6:3f35 with SMTP id hc41-20020a17090716a900b006f4f0f63f35mr19082111ejc.683.1652776910800; Tue, 17 May 2022 01:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652776910; cv=none; d=google.com; s=arc-20160816; b=X8Cl70H4/Y5XQuVwww8v9UTB+oMyQACL6B612c5vhWElkZn3/GNPeQ0azGtBpN6bUa KybLxHgIp7cu1ur6vg4PVqpNOEEpobumRiaY4x0SbiF7X4zVn4pS5tj00WizpfoeR00q zOQh6AaskJ5sm9hqpJGQ73kpsyIFsskaq01Sl+/5+rw6xD+p9tzq9WS4Ir7k4fm03Kz9 t3uYE8H1UDuX1C1vjl0nPBnXCximGEpCTGAPCvG+KlzQG1TWIzUDRV6To5nT0cqdUsV4 9RheFRolHEtVcuPP02zJxKF/xADBlqQxYSMqVxiDln9RvBZCwP8kfoTtW23QGd4B0U3X wn0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pJfx7e+okUIDSW8hZDJ586IQ1VGzh18BIIdwmE6tJmU=; b=o1CJkNdChivJUwkjcT760zMWFaZZTua9U+/DUkNuCdm/p/fqgmCfKXOCUQzwpbrjnW vRLQzRlIZzzaybIsXhsOobUroZTqnInM7fQVOGQPWlqd23m4r0cL+jQWamA0xIYyZ6Gr f5xcLKmdukNY2NWezITe2K2w2A8sr1h11G9jlJ2YkRpYwbcVU6ZL2XlSVymbIB9tVimN UO2T5kvjDJv174iK0LmBuUWWcKkHeTcwXnroaRSzkX6y9P5No1T7fnTjqWh94O50nn4j dLzRWpJlLEtkeoszjavSb5h/oaRVjDTqYemY5B/x7B4w980GNVU5KCpGb7woA5DVAvR9 FCZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rxBBlHSD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id sb2-20020a1709076d8200b006e840aa94e9si2220734ejc.305.2022.05.17.01.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 01:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rxBBlHSD; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FE4584262; Tue, 17 May 2022 10:41:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="rxBBlHSD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31BFE8421D; Tue, 17 May 2022 10:41:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4088383B1E for ; Tue, 17 May 2022 10:41:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pj1-x1029.google.com with SMTP id f10so4838699pjs.3 for ; Tue, 17 May 2022 01:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pJfx7e+okUIDSW8hZDJ586IQ1VGzh18BIIdwmE6tJmU=; b=rxBBlHSDWXTy2rhIH3vxYqHjAey6BcvL8RHQuZePtx/214CgY44ci9Cy0C/cck8gpc EFby9ceEzjhKN8ao/2HlG3fjO2vnIEkLwioLGjCOfqeEl4BaGXd/DN+nTivQsI/e25IT YevMiVhgihUcdwvcOTnSYuHmbj9x3mykxN8jtHpaKzfSy9Y45HL3lelm47JYDOvC65Ge jiZ9TimOo1p2bWiluRWzmURUHESf1Wi0AhTQiYT/V8Rf1rP0qudHUZW82tkpZJNJaiNv L/ge3ptPuWi+TKOnp9CnN9Np4LhO444RAFMz4TUc2Dn5qFNehA8zLW19n8zun7MVchGC trAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pJfx7e+okUIDSW8hZDJ586IQ1VGzh18BIIdwmE6tJmU=; b=HQw+r6VYWhVTKwV5JkPXGPPm9siedMoQ+PMvz051WwbE5IbZcq2hAMJOHo1k9RCPRM UmYlmsieNIGHrnSrpXRRa5QsJtFXwY7gDUt7roIkB7+TOTjhfsYg2V8AelrMsz97VMJw gJcMSCsCoX5HYMr4zo54/sQG+Giq4neKxMy16aaAe9RKiqp7saaXTWqjHDWhyOhm2Yq/ KL7AvAf0ytqvw0yC/ONxFB80xkT1RLfte9whgKQ5vGc8l9u7ahyPHyK23T5aBGT/O29b IMo6Hqx3uP3QikNIKypRal6dIRKDpJyIMRUIjHoD1Ezq5zu+rEOnRUzKDal5zaeGLLRE l7Ng== X-Gm-Message-State: AOAM5327FOj1E0pwxD7PuPpy9Jnvwg9//n7bz/vtYm2kzYXkBzD+6+j1 mQEeKANjkdjb7kIfqJTiT9RR+8QjV4603A== X-Received: by 2002:a17:903:2cf:b0:151:a932:f1f0 with SMTP id s15-20020a17090302cf00b00151a932f1f0mr21568499plk.130.1652776888586; Tue, 17 May 2022 01:41:28 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id s200-20020a632cd1000000b003f5912ba179sm741569pgs.58.2022.05.17.01.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 01:41:28 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Jassi Brar , Satoru Okamoto , Masahisa Kojima , Jagan Teki Subject: [PATCH 1/4] spi: synquacer: busy variable must be initialized before use Date: Tue, 17 May 2022 17:41:36 +0900 Message-Id: <20220517084139.6986-2-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220517084139.6986-1-masahisa.kojima@linaro.org> References: <20220517084139.6986-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean "busy" variable is ORed without being initialized, must be zeroed before use. Signed-off-by: Masahisa Kojima Signed-off-by: Satoru Okamoto Acked-by: Jassi Brar --- drivers/spi/spi-synquacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index ce558c4bc0..62f85f0335 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -275,7 +275,7 @@ static int synquacer_spi_xfer(struct udevice *dev, unsigned int bitlen, { struct udevice *bus = dev->parent; struct synquacer_spi_priv *priv = dev_get_priv(bus); - u32 val, words, busy; + u32 val, words, busy = 0; val = readl(priv->base + FIFOCFG); val |= (1 << RX_FLUSH);