From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sauhun.de ([88.99.104.3]:59810 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934087AbeF0JKa (ORCPT ); Wed, 27 Jun 2018 05:10:30 -0400 Date: Wed, 27 Jun 2018 11:10:28 +0200 From: Wolfram Sang To: Geert Uytterhoeven Cc: Yoshihiro Shimoda , Wolfram Sang , Linux I2C , Linux-Renesas , Hiromitsu Yamasaki Subject: Re: [RFC PATCH 1/1] i2c: rcar: handle RXDMA HW bug on Gen3 Message-ID: <20180627091028.lh3gqiqgervnxzcf@ninjato> References: <20180626030510.gq3xyejsrc5gd5wj@ninjato> <20180627084421.zrtpsms5eyftqcfb@ninjato> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wywkdvuwlakap5ou" Content-Disposition: inline In-Reply-To: Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: --wywkdvuwlakap5ou Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > Doesn't make this writing device drivers a bit harder, I wonder? If we > > follow the above, we need to know per driver (like i2c-rcar.c) if > > reset_control_reset() is enough or if we need to call > > reset_control_status() additionally. For a driver author, it would be > > much less error prone IMHO, if reset_control_reset() just does the right > > thing. It has also the advantage that we can handle special handling on > > different SoCs differently (if that is ever needed) because MSSR driver > > is per SoC. >=20 > True. >=20 > But this seems to be a bug in the R-Car Gen3 I2C controller implementatio= n. I see. If this is more of "a bug in the IP core", then I can live with having the workaround in the I2C driver. With a comment explaining the situation, of course. If it was more like "intended" special handling needed for different IP cores (not only I2C), then we should maybe reconsider. > > > Note that reset controller support is optional, so we want to add > > > > > > select RESET_CONTROLLER if ARCH_RENESAS && ARM64 > > > > > > to the I2C_RCAR section drivers/i2c/busses/Kconfig. Else reset will f= ail > > > silently. > > > > Technically, it should also be "&& HAS_DMA". But this is maybe a tad too > > defensive? >=20 > s/HAS_DMA/RCAR_DMAC/ :-) Yes, this is better. Thanks! --wywkdvuwlakap5ou Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlszVIQACgkQFA3kzBSg Kbbdpw/+Ogq3oi8rDkMQ0crNubj7+vcSuP6ewfi0GJGh0n0xTwO6oGWaQVoMiZj9 45Y36oLea0RvsHan9GCXQmtU0iUa462Loe1D+pym2jX0XJle123lpqIaJTetbegO JmFrWBxdItlNg6kcq3xAWCqU0ZKo8AzsNtemBYutlYca2FryNafh/PhuP6zedQx3 qihIRmspFU/9+5sfDFiHc5ZUrNHlfTwmcM90TgjSl1SXdWTmBnQe+bjkKPGlmbp5 NLNYynUHPACSwWrmLswpRYqcLL0eIi73iiBjh9ELpATfdYkMcV0oYtK4pOxJKBB1 uJ061FY+5iM4SPYreBDSnE85rQDQxm8Y3yri/MsH1ZtSitMJVEs2dfFFF/Ct3bbm 9ctigNrmGeQMt7iA/JOKLWhut4pe0gF7WCbUhgKLkDdHQFWNGqwVG+NXdbR8Vi7C B66OmpTs6iw9ZDM1zdn0akN0eNexG4u79++Cgo/DkcaRiK392i65tbxqi0NVQlWd LmphsSImwRMNKJnxN5NF0weiSwIRAtNhbYXKqMQAaGwLKgz085WTQskMKj8ek9a2 mbyDtLGM2/owE7D5X48HpkP5dJ0hQF5QuUZN77NdP0lNRFpPUKkhggfSUjYAdJOO Gi1OXzIIaKhir5FpKjmfdkjtskzq8fmQfsDKwBwzjjLCIehgQEA= =b5sd -----END PGP SIGNATURE----- --wywkdvuwlakap5ou--