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 4B1F6C4332F for ; Mon, 14 Nov 2022 06:13:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 37EB684FE0; Mon, 14 Nov 2022 07:13:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1668406395; bh=RzmE/pIZRSQGTo/qbr4mMUfNSI8tMU+tGBqLLSPXAvw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=s6bvTuzP56SvqsOlpxiHD/nV3YAsAcuHaImDRIHphNRzoeCh/4qYCLCCL5eRhTHfW vRkMIw8LFmBwFnXg9NIKFTFs8KaQZLwUgwn5p9cxrAuLB7dCpmIwrnmNi4x4cMnvpd 15q9azvcn5lZ8PGOEOanjl2Rzp5Rz9dcJ6NSURisO8z9rnY3D770WymN/cfGkZxPQV lcRxQ86458CeU2qnAWImtcdt09HPtME+ERfc311hmjEquUmLsAXNeX9xKkcZVZajcs 2zOhEdob1mouP6nqkrpccC6a5kBdcHEz0cjRrzBqsFTqZ1ubZIslnLGiy1QK50Uo5l JcsaTxEzOZ0Kg== Received: from [192.168.1.107] (82-131-200-171.pool.digikabel.hu [82.131.200.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hs@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AF53284FAC; Mon, 14 Nov 2022 07:13:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1668406393; bh=RzmE/pIZRSQGTo/qbr4mMUfNSI8tMU+tGBqLLSPXAvw=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hR+kMBwK1I8SqkfPQ/3GeQG9gvNrFgv0byNuFot3z1jY4ZrDPiXF+Q3qjkCnvZjz8 FHBiBekFIvPuTCbF/t+xVZ0fQ0f49JJeggzcumBeu2E3A/QS/mDeB1GcGSp5siB5JJ ptlHL/hsNtEMmCOR+Dcl2Cpdrgc6BtU8zuaYRIi99/aT9IHfAeoELrcFQBbID6/VTf 9Vl8X/z4BOJz30tMt5O2538heKjcFgZBD+iNG5QHQsps1Hxuo3rYPBRU6O/+BpwV7j ni0GsoxkZWMDUxtgzkktVhXsEmQvfcIZL+9CpB0Q7Lgfj5tpq+gvGAHuRRawBuh9dn cW8kWB7eCg6wg== Subject: Re: [PATCH v1 2/2] i2c: microchip: fix erroneous late ack send To: Conor Dooley , Leo Yu-Chi Liang , Padmarao Begari Cc: Andreas Buerkler , u-boot@lists.denx.de References: <20221026074918.3657055-1-conor.dooley@microchip.com> <20221026074918.3657055-3-conor.dooley@microchip.com> From: Heiko Schocher Message-ID: <091bd008-e8a6-1688-3e7b-1f60603fccc9@denx.de> Date: Mon, 14 Nov 2022 07:13:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20221026074918.3657055-3-conor.dooley@microchip.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , Reply-To: hs@denx.de 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 Hello Conor, On 26.10.22 09:49, Conor Dooley wrote: > A late ack is currently being sent at the end of a transfer due to > incorrect logic in mchp_corei2c_empty_rx(). Currently the Assert Ack > bit is being written to the controller's control reg after the last > byte has been received, causing it to sent another byte with the ack. > Instead, the AA flag should be written to the control register when > the penultimate byte is read so it is sent out for the last byte. > > Reported-by: Andreas Buerkler > Fixes: 0dc0d1e094 ("i2c: Add Microchip PolarFire SoC I2C driver") > Fixes: 0190d48488 ("i2c: microchip: fix ack sending logic") > Signed-off-by: Conor Dooley > --- > drivers/i2c/i2c-microchip.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de