Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp688535ybk; Wed, 20 May 2020 09:29:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQL4lBDTHVlT9/FkZyA+EurGNs4XsV/TryE9k49+oWEUWowpKarr9QPyxoeF0EFpfaDtXF X-Received: by 2002:a17:906:1dd1:: with SMTP id v17mr4393748ejh.395.1589992162653; Wed, 20 May 2020 09:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589992162; cv=none; d=google.com; s=arc-20160816; b=ya/y6u30xZS0xJqcuY+ypRH6z9+V/oqiwekgtCggzNe7RabIQ0CYv/JDNhuOa4bbGQ 2zblb2lUTQY4SuhiqNhgQNeCeluWmhpTSlVR3Pj9dgVbtAtpeL5mbcybBhMgKHsEb8zr Kny/XudZdq1IiHx4lFkmdvNALUXZHDcvd7xdiQo0/AmIjFKKbBybVN8w6jNmDn+ZqC57 DfPg0a+p0ohxgvBQhb3blTSkNj6iAHUhzBe2FcE44zTg4TSWgMUAdmpzCcCktUfy2D/1 jh2oUrrP0opgqRsUhJ+FPcsg30ulHUhwXsbi/5kkjcQlrIrAR977slkOaVXGoix4x+/E frEw== 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; bh=3XuzgzpjDhVexn8r2GM59Twr9sNI6aSxhQ5ZKlwSEkQ=; b=TMJlK5yM52qVbZfJkaeII6qUnAdR5hEg0hSB/PQOOk7r8AbiZ+G7PHTL5EW19fpvgr s8quHNULKavpckHsPZ0U9FeQ2dmG1X89N2TNARyeC0hswzRyHOnEj73qsSg3zK+3f8HC 45/RPVVqqEpawtRow9QKo7InSlHfzd2r53lxkaVFVbV7i9KuvZfU8RT7bcONWcEjcULp 71DKCa5JtapNw2SBLWPcpvoPqti8XHmIectgHyGGe5G+9N+nqwuRwIoTSFfA8VxcYSgD VaxqeYStIlwsZs8U5YEDpCdIDnwIU0QIHB5cEcARP76QrgX7SEz2tiwAtCofA1yV7AFz DcGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ng5si1901110ejb.661.2020.05.20.09.28.59; Wed, 20 May 2020 09:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbgETQ11 (ORCPT + 99 others); Wed, 20 May 2020 12:27:27 -0400 Received: from sauhun.de ([88.99.104.3]:39468 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbgETQ11 (ORCPT ); Wed, 20 May 2020 12:27:27 -0400 Received: from localhost (p5486cd24.dip0.t-ipconnect.de [84.134.205.36]) by pokefinder.org (Postfix) with ESMTPSA id 9119C2C1FD1; Wed, 20 May 2020 18:27:24 +0200 (CEST) Date: Wed, 20 May 2020 18:27:24 +0200 From: Wolfram Sang To: Codrin.Ciubotariu@microchip.com Cc: linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ludovic.Desroches@microchip.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, kamel.bouhara@bootlin.com, linux@armlinux.org.uk, linus.walleij@linaro.org, alan@softiron.com Subject: Re: Re: [RFC PATCH] i2c: at91: Fix pinmux after devm_gpiod_get() for bus recovery Message-ID: <20200520162724.GG5759@ninjato> References: <20200415070643.23663-1-codrin.ciubotariu@microchip.com> <20200505151256.GF2468@ninjato> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DWg365Y4B18r8evw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --DWg365Y4B18r8evw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > This will do for 5.7. For 5.8 or 5.9, I can imagine to take the two > > pinctrl_state pointers into bus_recovery_info and handle all this in the > > core. I will try this later this week if noone is super-eager to try it > > out before. > >=20 >=20 > By 'all this' you mean to move the entire function in the core, right?=20 > Having just these two pointers bus_recinovery_info won't help much. I=20 > can try it, if you haven't already started... I mean to add those two pointers to bus_recinovery_info and if they are populated, then the I2C core is doing the necessary magic (or maybe just the pinctrl handle and assume the states have fixed names?). Russell just sent patches to add it to the PXA driver, so we could now double check how much could be factored out. I haven't started yet, let's keep in touch who started first :) --DWg365Y4B18r8evw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl7FWmgACgkQFA3kzBSg KbYxwRAAmUjg/PPDIGnjUCza3uhJUYZsY2bgkfy5OcjxXVotYkKYSBhrtw26GG33 DU2gPBQzDKZWB3T0kZo54GA6ZvzxRGuLKhfWLvLhbDdzz/hy94jX+DpoNJQ8mzr5 VPpn61UjFAd8/+W+DkpYzovXAQP78o2luuhnFuoqNZbhyEGJ4yWfHY+qICUJd1Ac bdtL8oikCf653etM0rtpUPQQ6x/iw1cMH4u6xmtFSFi56jzdVnZB0MJKnc//t7VT HfCkBiuOBu78HE007oPG0ylKU7TL8f5a2QCd0cLt87oDr2frfHTTVpLj+n7m8BAY VEqc4bchKi58nHL8nD3h1kqFFjSxN08AFRcd6gWeUxyfVUTeuNhhxrzHnGObWJVp ZKXcCnS6dgfKm2o/589Qo6I5H6VzYPTGUSwNLrSwUizT8sdqPawhQaKE3CE5sLYs 8OC7B/QmHT3+jk7Zlz0rQDT9w5mmvyP600CczkK+6ZXNFMuKjDz67X8IERmWoH6e lp/7qtxPKxAXSPJ4qTNa3oIW2LIWNJ2dZJVSHGXPi/CuKwJMvJZs8HnXAY6BIWFj MEFg1qbTxQ8fn3DNyRwf2iFkmS20RHoh2m80TsNcv71LYoq0ioASu/U4swiPh249 KnaM3i59M9VIN8cvqnpiAQCmgNJv+hzJifmd8tVpfswSfprOJgk= =IUMo -----END PGP SIGNATURE----- --DWg365Y4B18r8evw--