Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1500667imm; Tue, 22 May 2018 05:12:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqXaYSl8YHL4YN+QQFSShbrjnIRZc0xZ66gtnKSZ1ZREdtV7F/M4uBo3kFI2eOZdJOyxloC X-Received: by 2002:a65:590e:: with SMTP id f14-v6mr18905044pgu.282.1526991127282; Tue, 22 May 2018 05:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526991127; cv=none; d=google.com; s=arc-20160816; b=AJqm2Tkjfvko1LgzuD441DN01Abi4QS3z2t8aOAF6LUDPfyaPf4o1N4KlL/xwEe1lz iF30cucKaSttge5qcRa8bE1hWcTQQW25OgO5ZAu1CHblnUeYxbjiBb/gvp+GEXa14heZ qxdZh3Xyq2+Ytv/SJ6vFaPspIcLyOTSLEMH6KCBkHtirT1KIkihLgFG4Xumttu//hy/s B06+89dJ3yaUKhNV7/c0bksK2VgNntDnd17FSGnjKS2OOnfEPWkvLo9tzeQpK9gxgB/7 8NCrOaG9Q8P+PWTnE7d29Jy5AuZL8SlXYvMA+BIFm/9XyqIFUb+7OnYPN9/N3Xvj2+vh mxcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=JinDHo7McnFJ9h2vplRYLimJwrb+2XN7Frd4nW7esCE=; b=0+BJHUK2iQKkfe9rEkLzWrElfLW/DBe3nLozhCBB3ExpXxuuO9M3F6gtmLMR3MSr8k FfPCCmjxdN/E2ohj6EGksPAsKKbDPVyIjFHxCexAOu/YymwgtpdWjsdHgeo1H89tmSQM WviBsuotwo/+kEfmJbQcm0Jsyf9m3/BbKDvYFlcWOcplbdHaoZbAhHt8SgSDxXP7mdPi zFQSwmnowD7Xl4iVMoR/rdvqraV5TuVmWPeeCP0hu3GZ/I6VwK1gIvT9Pw0V5obHMkcv H/k34u/Gn5hYH9Qi4S8UPIGcwMp3WVfGsqSs++vQqmNRQnrNXfFpoMNsWomoMvmhF0K7 5C2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20-v6si16153982pll.223.2018.05.22.05.11.52; Tue, 22 May 2018 05:12:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753086AbeEVMKZ (ORCPT + 99 others); Tue, 22 May 2018 08:10:25 -0400 Received: from sauhun.de ([88.99.104.3]:58570 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016AbeEVMIh (ORCPT ); Tue, 22 May 2018 08:08:37 -0400 Received: from localhost (p54B334DC.dip0.t-ipconnect.de [84.179.52.220]) by pokefinder.org (Postfix) with ESMTPSA id 42A693640AA; Tue, 22 May 2018 14:08:36 +0200 (CEST) Date: Tue, 22 May 2018 14:08:35 +0200 From: Wolfram Sang To: George Cherian Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, jglauber@cavium.com, kamlakant.patel@cavium.com, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linus.walleij@linaro.org, rdunlap@infradead.org, Jayachandran C Subject: Re: [PATCH 2/4] i2c: xlp9xx: Fix issue seen when updating receive length Message-ID: <20180522120835.okaho5xuahtozhoc@ninjato> References: <1526454019-32714-1-git-send-email-george.cherian@cavium.com> <1526454019-32714-3-git-send-email-george.cherian@cavium.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="enegb25e522ccrec" Content-Disposition: inline In-Reply-To: <1526454019-32714-3-git-send-email-george.cherian@cavium.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --enegb25e522ccrec Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 16, 2018 at 12:00:17AM -0700, George Cherian wrote: > The hardware does not handle updates to the length register gracefully > if the new value is less than the number of bytes received so far. If > this happens, the i2c controller will not stop the receive transaction > properly. >=20 > Fix this by ensuring that the updated length is ok. This is done by > making sure that the new length written to hardware is at least few > bytes more than the bytes received so far. >=20 > While at that refactor the length updation to a new function. >=20 > Signed-off-by: Jayachandran C > Signed-off-by: George Cherian Applied to for-next, thanks! --enegb25e522ccrec Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlsECEMACgkQFA3kzBSg KbbwyQ//feJ4Q63YiClatugj1hhm2p8lThiAOIXn4z8gBOckIKiQ5aXsnjYFR9Zz +F4len4L7RsnvG4ZHC0FtSE1M6kRFYmjWxLQmqTrfxxHgoitcdc+YQvpG50rjfCE 9Chu6yIW+TcqFvhvn8iNdXTrsoH9Ul1Vhsz9DbKUchNgU+J0Ah+/PMtHF2cRzfYn 7OJun+d4SxR3++ryG92efZ2OCdGjupqZhodHa2J1Z8K0c/W1gOoW2uF59aGQ79HC 0u+zXAP1vmKsjH/KGU8X0sQ6cjgumSotdfYSbDujbviLTK5VS3y52LF859+WDN/X nBbK1qwYpQH1w/Djlep/QLyDZ3erc4RS0sqRDb8WYLPYbswV8+zPFIaXApfFDqUH C5WABCQNiCIdrBpJhcLzQNKZdhpCQ8fcWeqe5xxGhfAm2gKjzOtEiaHVVrOP/fbV V1hL3r03zRnATJB7dx3Mq/y6a3pEZcy91jUDrIw1q/31WN5xH1b2l0E7ue+PWOMs Lm7OV+7anaAEnU79BemjFMLoSYSaLBv4Wn5LuhD2cOsv3xZhPTIkPMXqa0E0HkEi cI/7K2OjpXImHInDxv56zAAFi3mkzJLAVZ1LSLIJhJwNNCucaZVIsHU3BAncl18R UKHHdHh0dZg4J2FxDmx3JvxSSm5l+exL/VYiiyoALwBFyNYtgK4= =Zym2 -----END PGP SIGNATURE----- --enegb25e522ccrec--