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 8E72FC0502A for ; Tue, 30 Aug 2022 07:43:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 733148493F; Tue, 30 Aug 2022 09:43:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com 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=foss.st.com header.i=@foss.st.com header.b="UQSAKL3Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 94363847FF; Tue, 30 Aug 2022 09:43:42 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7E7DF8493A for ; Tue, 30 Aug 2022 09:43:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=5241bc3ff9=patrick.delaunay@foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27U4DhNO017626; Tue, 30 Aug 2022 09:43:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=6uDyH96jLLWzRAQ54RCd9gZ8JCWLNpDFSwQUbNOkaI4=; b=UQSAKL3ZZmJnUNmgWZUzU88ZL+ERVL4vkcU2Zwe9uaB9zPkzox5X2W0e+i10nLQnBale 0jWoFSiKaAPjj3sfFmeiUBkN3X7YZzWaV/e+S0oMu9Z0M0wpgk+inF4lRAYrltnxH9Ia gPxSDxfrX3f79waSlU5ziOTGrq9HihauO2XWw4NwpjcgEkV3Rpdib/m7IFWXhcvn3vSl 7cMYYZj4aM1OKXeEvm9UCQteCtCT/uX6SwMF+QZl5Q+mUuWFiXIU+RL4yn3PwAP6neeG lHiuvC57QM+ySm+13CJLw3+C/yqujYTs8VmhylMtpLFOEAOvjzgx1RdLwq9M5Henkoh8 nw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3j78pk6bpa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Aug 2022 09:43:38 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9B59010002A; Tue, 30 Aug 2022 09:43:37 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8C65721512A; Tue, 30 Aug 2022 09:43:37 +0200 (CEST) Received: from [10.48.0.213] (10.75.127.51) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.7; Tue, 30 Aug 2022 09:43:35 +0200 Message-ID: <8530bf52-5e8a-c146-cf88-df97ec065410@foss.st.com> Date: Tue, 30 Aug 2022 09:43:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCHv2 1/2] i2c: stm32f7: fix clearing the control register Content-Language: en-US To: Jorge Ramirez-Ortiz , , , CC: , References: <20220815145211.31342-1-jorge@foundries.io> From: Patrick DELAUNAY In-Reply-To: <20220815145211.31342-1-jorge@foundries.io> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-30_04,2022-08-25_01,2022-06-22_01 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 Hi, On 8/15/22 16:52, Jorge Ramirez-Ortiz wrote: > 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; Reviewed-by: Patrick Delaunay Thanks Patrick