From patchwork Mon Aug 15 11:19:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1666421 X-Patchwork-Delegate: patrice.chotard@st.com Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=Q6yyano4; dkim-atps=neutral Received: from legolas.ozlabs.org (legolas.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee2:8c49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M5sHc4chFz9s07 for ; Mon, 15 Aug 2022 21:19:24 +1000 (AEST) Received: by legolas.ozlabs.org (Postfix) id 4M5sHb61QFz1ygN; Mon, 15 Aug 2022 21:19:23 +1000 (AEST) Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=Q6yyano4; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M5sHb1DZ0z1yfq for ; Mon, 15 Aug 2022 21:19:21 +1000 (AEST) 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) 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-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 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;