Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752632AbbDBU2l (ORCPT ); Thu, 2 Apr 2015 16:28:41 -0400 Received: from sauhun.de ([89.238.76.85]:58999 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbbDBU2j (ORCPT ); Thu, 2 Apr 2015 16:28:39 -0400 Date: Thu, 2 Apr 2015 22:29:09 +0200 From: Wolfram Sang To: Harini Katakam Cc: Nava kishore Manne , Michal Simek , =?utf-8?B?U8O2cmVu?= Brinkmann , "linux-arm-kernel@lists.infradead.org" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , anirudh@xilinx.com, svemula@xilinx.com, Nava kishore Manne Subject: Re: [PATCH] i2c: cadence: Handling Slave monitor mode Message-ID: <20150402202909.GA3501@katana> References: <20150327153713.GC27238@katana> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2618 Lines: 72 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > >> In slave monitor mode, the I2C interface is set up as a master and > >> continues to attempt a transfer to a particular slave until the > >> slave device responds with an ACK. > >> > >> Added this feature for zero length transfers enable the controller > >> for slave monitor interrupt and get the status. Disable the slave > >> monitor mode feature upon successful handling. > >> > >> Signed-off-by: Nava kishore Manne > >> Acked-by: Harini Katakam > > > > I am not sure this is going to work. > > > > How often is this access tried when there is no device? It should be > > tried only once. >=20 > Once slave monitor is enabled in the host controller, it retries till the= re's an > ACK or slave monitor is disabled. The SW wont be involved and need not So, it is kind of flooding the bus until the timeout? That is not a single zero byte message. > be interrupted in this gap. The way this feature works in the controller = though, > I'm afraid there's no way to distinguish between no slave/ busy slave. > The out is the software timeout in that case. > Please suggest how to use this feature better. I suggest to not use the feature and accept that this device cannot do zero byte length messages. Thanks, Wolfram --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVHaaVAAoJEBQN5MwUoCm23kEP/2W0f9Rg9DLF+nQo/0PSbO+n sbzZ4FD5ZrS+ChNR/jLAnw5cSrB/OOy3Nz92AOZExh91k71SDz3YQS3+cfhp/QxD fnaiwb/u19Z7aJNXWxHatyNzneEUAvfrA8mQsVRIXGXO5Xy1lFD5mdeURq3sMcUo YIbgahQzRY8tb23XW/yTJQfrbMMQ53nxTeWS52qYes8tysTOFnIESW37ry8Lrlgo CArRXlVdsRluc0v8TCocsELgWZqHklhp03+xD7C3GQPZ0lt5ZjzRVDCwJMnFg6Ei cqtmZhPPA7fNi71Xs6XBCr65ijLhtpdWyx20lYc9HB1I5GFRlmCy1/wzWOZ0Dt8e uTRvq1/rqCZ78eOy7J3hrSvSQtuFDfdEdNBtGoKfeYVcGUR1yh3wee51hKpbdGZX oeMaz07g3XHMv/65W048A+P+yuq9ZLo3/5vOBYYQeIUdZWTK8MfJ0I/A3J6BT5TV IvdbPtaRBRJck8vlDmKJTJmpHjdOzmTYTbEgtuIabMeXvwwb4/xrhfd3fmlQPwlf FoLAwmQke6dWjtYwA0mmNhfWlkiUOE+ftdsvkozrvoV+oP3zw9Ft0omTF8qaNQr/ 2s7WWhEfl1W9Wh6TaT7PpaXdpTv8lc1jN0k7C5uid50YEke/LKII+xIyqD8NdVvO s3q1alrYQDeiYRVqx0yD =rOzs -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/