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 BEF3EC00140 for ; Mon, 15 Aug 2022 11:19:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 66226845F2; Mon, 15 Aug 2022 13:19: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=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="Q6yyano4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC70684979; Mon, 15 Aug 2022 13:19:12 +0200 (CEST) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 15E1D845F2 for ; Mon, 15 Aug 2022 13:19:10 +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-x332.google.com with SMTP id k6-20020a05600c1c8600b003a54ecc62f6so3751229wms.5 for ; Mon, 15 Aug 2022 04:19:10 -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=Zzw0tD28lKrfnnhC+ucdnirdxcYSjaljiNw88J/r6bU=; b=Q6yyano4XU0c73B9xJW/14fzFFvegD1SoAK84Jjs3FBYlC0HvUvz6dQqxSqyMLg6BR 3no9dEf/8YQIFfiA8u0JW7JwCTW3LAOfqeYZqXx5B6F4PoFif2rUvQh5IKxT3vpMT2vz rrP16jUHiSVcfT9LC1WdN3QzQpllpcQz9P58Dtipt9GTdu/tNKHXy4XGdHSM3Ygbh06u C1wvqZfPRGttEnRncLgab3GU827AYGPuJ3QwLv6TQo5jRMTqn37T3nlBGlxPNKsHns5q bVlHpeVOEwGzSnlIaAMonO/12XLctJX4nMDA1T/5wPklmlJZw5HH7KXTWr/5BwUjCJnD Hijg== 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=Zzw0tD28lKrfnnhC+ucdnirdxcYSjaljiNw88J/r6bU=; b=597CgWABdWzvoAqivxkYUjhZn05BkLb/uHDelnZoqEoghwbNIlIQLIccgBvXKRz2H7 dwYHwI54OnblqIh5CXezjKs/7I9JmPbAimvm/nLsG5avM71CJc36lf8w6ZChGxrMU0Xj GBGb7WUjcFq075LcNNC/Ay0O0q+CwCYyDaLJimdVQsy4Gm1wt7ey0mjzui+ciNGS3pa4 KV1P8/pCyj9PpyuGPJAGo1rMeTVkl27iWak2oibtzfB8tVm4hxN43if462RF5yk3/3Qy zC+D8GB/tphtrEdyISKE6OGHf6WuKrn7Mzl+T2lrqG1zhyL3iIEEgMcC4ZXm4SL7B1Mr vXMg== X-Gm-Message-State: ACgBeo05YF6S8FVZ2DvG3V1NJ0mIJDPFCOPgLAW+3y34oyZ6LX+efDMa yDTUQasDuSxM9fQIKp95i1ZJJg== X-Google-Smtp-Source: AA6agR41DMiYGe5S8eNhBzB1SgbbsNwrIkoaeqz6xaRJ6Q8sQfnRLlCjAkFlrRJEEywHe9mBy85lUA== X-Received: by 2002:a05:600c:23ce:b0:3a5:c1b1:f952 with SMTP id p14-20020a05600c23ce00b003a5c1b1f952mr12534795wmb.137.1660562349563; Mon, 15 Aug 2022 04:19:09 -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 p15-20020adf9d8f000000b00223654e0eccsm9100656wre.9.2022.08.15.04.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 04:19:09 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, hs@denx.de, patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com Cc: uboot-stm32@st-md-mailman.stormreply.com, u-boot@lists.denx.de Subject: [PATCH 1/2] i2c: stm32f7: fix clearing the control register Date: Mon, 15 Aug 2022 13:19:04 +0200 Message-Id: <20220815111905.4090289-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 --- 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