From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3542BC32796 for ; Wed, 24 Aug 2022 15:56:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6FD57847FC; Wed, 24 Aug 2022 17:56:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="HS0cSQcF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 596B484811; Wed, 24 Aug 2022 17:56:17 +0200 (CEST) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 EAA7B847FC for ; Wed, 24 Aug 2022 17:56:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wm1-x329.google.com with SMTP id ay12so8978907wmb.1 for ; Wed, 24 Aug 2022 08:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=y4bfuOeB6+agywo7UJ8kDQhw11NRvOfumnXn5XLy9K8=; b=HS0cSQcFMcTqQtbfIAfQTPGBP3lDSpl7OPQau7msnKxDrpfknTER287b3sfOvXFZkq q+8oKtqw6vYJOBb9UswIOqygqTgas72tZFGsblzSBhBVPuPwk3uy1W9Q2YLDPALs1gEe wc3zyI6E34fqLgHMfMlSs3uDtwKZZ+bsJtZvIbNM9prJYoPxp8pjeOIvYo20Fyl6X8V3 XGlYLZKN4jR7Eqs7boMuWxcP6J5jwSXsCqgRzZrq7b5K3WiPgi2myr5bExR9Ly4Gpbia /EMKZwJEUikGf+TTLEWO+bb+2QehBSQwH7/zYdtl0uUAqHMiZKqAmCJXFQvVgZoU7ZJh Fp6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=y4bfuOeB6+agywo7UJ8kDQhw11NRvOfumnXn5XLy9K8=; b=BuNrkpSdAPL3HOLloxrkA/3iwqqSRh9f0oH6Ciq9zvjEeyBDCgKnP3bpMxJicP1LgM gq0wnoOZrIW7f17wLdSAb551qk9xFDelRW1HQhFbnNZSVhOBtfoOJddEMjTDCykgO+4n g4l3Z0dZ+BYkGQwyk/AjPy4bZW3ivw5jzTFdTApi5RApw1aNOn23I/25kfv0W0DiDmQR I1Lk+9e4OTJtKanM2woGECvIV2AxLMnRndbeY6aJRg01rj4LmS0kQSNU9C1ATZFvPiSh Ng80LtIpAiRoQi6MiA9WL1JhiThzNDF9IpWTGF03bzF5bP0T6uo3KnywpZ0G/XZwQ9Nc HwOw== X-Gm-Message-State: ACgBeo0XSdMxkuZtnTn6c2IMnQ+FNO86OSpN3EMhV7I32vlYv7FNL4P3 /D9Sp+KrttwhsZ9+3KzlukbNBg== X-Google-Smtp-Source: AA6agR544m7kJ2w9zNqsmrfh37/uaS1RueM5SFUqvkagOtxDMwLtlk1DuW3yLNI1XDxFThzfc76JAg== X-Received: by 2002:a05:600c:29ca:b0:3a6:75fe:82af with SMTP id s10-20020a05600c29ca00b003a675fe82afmr5840934wmd.3.1661356574425; Wed, 24 Aug 2022 08:56:14 -0700 (PDT) Received: from localhost.localdomain (78.red-83-60-92.dynamicip.rima-tde.net. [83.60.92.78]) by smtp.gmail.com with ESMTPSA id z1-20020a05600c0a0100b003a2f2bb72d5sm3509208wmp.45.2022.08.24.08.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 08:56:13 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, patrice.chotard@foss.st.com, hs@denx.de, patrick.delaunay@foss.st.com, oleksandr.suvorov@foundries.io Cc: uboot-stm32@st-md-mailman.stormreply.com, u-boot@lists.denx.de Subject: [PATCHv2 1/2] i2c: stm32f7: fix clearing the control register Date: Wed, 24 Aug 2022 17:56:10 +0200 Message-Id: <20220824155610.3835981-1-jorge@foundries.io> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Bits should be set to 0, not 1. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Patrice Chotard --- drivers/i2c/stm32f7_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index bf2a6c9b4b..3a727e68ac 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -413,7 +413,7 @@ static int stm32_i2c_check_end_of_message(struct stm32_i2c_priv *i2c_priv) setbits_le32(®s->icr, STM32_I2C_ICR_STOPCF); /* Clear control register 2 */ - setbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); + clrbits_le32(®s->cr2, STM32_I2C_CR2_RESET_MASK); } return ret; -- 2.34.1