From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf() Date: Fri, 8 Mar 2019 15:52:03 +0100 Message-ID: <20190308145203.GA4743@kunai> References: <20190215090202.157100-1-hsinyi@chromium.org> <20190215090959.soxkf3ho3or2geme@ninjato> <20190215092500.6q3hqnoufyowiqaz@ninjato> <20190215163657.fs6t7p3vqez53su3@ninjato> <20190308112919.GA1674@kunai> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Hsin-Yi Wang Cc: linux-arm-kernel@lists.infradead.org, Matthias Brugger , Jun Gao , Ryder Lee , linux-i2c@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, qii.wang@mediatek.com List-Id: linux-i2c@vger.kernel.org --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > > I just checked this issue again and concluded that both are reasonable, > > the suggestion from me below with the adapter quirk AND your original > > patch setting the threshold to 1. With my suggestion the core will > > prevent 0-length messages. But still, we should set the threshold to 1 > > because 0 is a value the HW is not capable of. > > > I think quirk might be better, since mediatek said they might have some ICs > that can handle zero-length transfer in the future, so flags might be > more clear if they want to restore functionality. But I guess you don't want to do the zero-length transfer with DMA then? With that in mind, raising the threshold still makes sense to me. --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlyCgY8ACgkQFA3kzBSg KbZ2Qg/9GaOmyLxHs9ayEmGtGSYNxgpXmj+fMfBqvL2OlsSPG8EDNtIs5n7+p7Lq gPz2Tm0EnnCkIWmpp4EFhON17ZkuIVthAO7lMTacqk6lAxMqP2d5qtbtTllHerdZ 2whXvhfxEOobWGDQoxstTv/mgSLckRaltjteITi17UqFdRAQsIJOerJ+MY9QOFrt xi+bDnwiV8YEsgRX9iWSUx3kKPel+n36oiAY+5/ONHE1+R5KOmdGHpRPHTzhB99Q sn8XZe2hGPKNbF/j3RdDOmO6Qbd5jlWEg7IlHnqJx1Bbi2rJfEqPG/Z6kcI+lE8l gUPlYlS2VMLZ7D6td11AVgBAThDjlguVzzVr0vf/kKBXRojRf3rNd6AQDg46TSE4 5k73pVpD2G1mnlbryQKG2tQOw1XB8CCIfgRQA1AquCoUdwrPZAdTYD9V7qdqkW7y 9OWwM/bmkEZHpnpUZNxxGBKuGoTIOOmhAIgjMpKw1/z2iIm3cZM/T/J9wRCH70Jr 1cRwRSUgz2SgrqZ2SjGC/arXgyhUCv6Xtn1XXRRr+dnhOVQGynfls0ooNcLO6O9V TlrASHvc5wmXTtYr3QIeytDqwmbZmj7H8LtItRlTAz2XH7zTkfDHEijW9HAMJ0zu 3k4PWLCIwV93n3127uNNwXGpUTHlhgxWlIwVR1WsLOsreLblXZY= =7FL8 -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--