Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp4038734ybt; Sun, 5 Jul 2020 15:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd9PE6HMlfMnHlcdMYS9ISXCoh9ZwpJ0Ib/otNPOHeG5RS2645tmgD05o99VVB8kcZLPrn X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr39615030ejr.20.1593986575593; Sun, 05 Jul 2020 15:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593986575; cv=none; d=google.com; s=arc-20160816; b=wp85T6FvkXyHp7ijmvZ4Gp8mbZ6Gw/1Q+EgtMVFbbks0W+VB57AtMcvJXwPWnEx5zC QgDKQvOh5tvKvA0Flj33v2hkNqt4kr78gw52HtpZv705tLksQD9CBs0msqcmxLVqNPwL Al3esc1w3WnG1m6AKc+9fhxPNUqqwjpGuquPEpoufv48sqFSmPxvhTPXTTZrwyaRAsiQ XHgQrk67oboHPVjwNRbX9nK+nUMkVYHR/5GsHhhUpmXcASOKx0rggbSJOp6WnjaWEu7U 5nmDvTldbjyOxW7GJK9p27Svp0znLZWnP98Hs0JEW53k/ZLKyk//OU3QwH344x2TMZNj RI8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/CSI7abxLv8Pc3WAATfmk0MQHaUctOQmqgjenee+WS4=; b=xiUjSs0knhF+3zvID6UaC6TsIerSUFRgQEZc6e8vgrpkl68sZ2vq84scZaGIisdxqo avQDaU/EsWbXvP5ieIhUvq2eqvlDXtbgXorRgU7eYMdv2fgFqQcQeuuKBJQ6w6eJ/8IO VS8NG9KTxI3Y7EWR8F/6wJOej+YOMRU+kC0vjU4lGr/+wsfjZJj2vk61PZmPPDMjmnQX Z8uFKoWpUvAshuKfhorPCzlse+GxS0kYNuhdRBo1mNljQgrT9bySoUGKtlBdIC+2CiDu aDpZyEGQwp1s7TKi8f2sgZo6iHiGJ29DU18JEfrH6VlIL9sHS85hVsy4/fl5q6bu7kyP duGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hVbmiwgQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si12281264ejb.465.2020.07.05.15.02.30; Sun, 05 Jul 2020 15:02:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hVbmiwgQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbgGEVJ6 (ORCPT + 99 others); Sun, 5 Jul 2020 17:09:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbgGEVJ6 (ORCPT ); Sun, 5 Jul 2020 17:09:58 -0400 Received: from localhost (p54b33111.dip0.t-ipconnect.de [84.179.49.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66BD920708; Sun, 5 Jul 2020 21:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593983397; bh=/CSI7abxLv8Pc3WAATfmk0MQHaUctOQmqgjenee+WS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hVbmiwgQ+gyxLGOWmEQrsr/+QFj3HrZ6kILQ9SdqDqD71MSP+avP5cp+0NXZ5WGKy mtCciswcqwa+VB1OpLoiH016DRJ6IVwEJNbsJOWE8rurmnkR8oPHVWzogfLVXoEarj 8dbk6u7VMdQYtjR3ZVUwIMYq+k9ZppWVGZuh2rL8= Date: Sun, 5 Jul 2020 23:09:42 +0200 From: Wolfram Sang To: Codrin Ciubotariu Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, ludovic.desroches@microchip.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, linux@armlinux.org.uk, kamel.bouhara@bootlin.com Subject: Re: [RFC PATCH 0/4] i2c: core: add generic GPIO bus recovery Message-ID: <20200705210942.GA1055@kunai> References: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20200619141904.910889-1-codrin.ciubotariu@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 19, 2020 at 05:19:00PM +0300, Codrin Ciubotariu wrote: > GPIO recovery has been added already for some I2C bus drivers, such as > imx, pxa and at91. These drivers use similar bindings and have more or > less the same code for recovery. For this reason, we aim to move the > GPIO bus recovery implementation to the I2C core so that other drivers > can benefit from it, with small modifications. > This implementation initializes the pinctrl states and the SDA/SCL > GPIOs based on common bindings. The I2C bus drivers can still use > different bindings or other particular recovery steps if needed. > The ugly part with this patch series is the handle of PROBE_DEFER > which could be returned by devm_gpiod_get(). This changes things a > little for i2c_register_adapter() and for this reason this step is > implemented in a sperate patch. > The at91 Microchip driver is the first to use this implementation, > with an AI to move the rest of the drivers in the following steps. Thanks for doing this! On a first high level review, this looks very good. I have one question in patch 1. From Tuesday on, I'll be off-the-net for two weeks. Still I think it will be all good for the 5.9 merge window unless we encounter an unexpected problem. But as said, so far it is looking good! --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl8CQZIACgkQFA3kzBSg KbZSFw//V/RqkgvKSxNeOBqifHvPPJFZFRuqwrFgRyi0NpSS8q7zgZBRvd1uVk9Q eRLfGCd6DPjbpi8M2FfNaPHoROvZEQ6pFdQw61Uqd2Z1ELrTBpG2Pvq0J9FFaWbl U6U5MA+9EaAXSKAA/ylVU3kyCFDgaqpqSRBGGYydIQsUOSf5Bj3lJs1ep4Jtpuq/ nBjbGhuKUP7kegTM8MwRcQuHTG/vX+2FBssKtsqgULgeBwuNjS4BHsXTcE7cJIeV Egz0998d1vTQsy4GvUc1qfHtcYivCsoG7NKsKA8reos5aPrIjlhMWQ5/YPJDma65 ePGye2rMUdH2bUPBtZ01Px6+4DSJmON6vlAtbseay21yvWr0PaDgpuPTD7jvvMwq VjHdCEE1EapZTEVySj1plRiPX80wcKlR8RqQZErpdQxEsG911lKEuItG2ppZodOv 25hGQr+R0Cm91WzHvtgKibHoBmauGhHhJWx1yvc+h6S0ZHCE+IeskqEUzetNbZqw XaJCsD0l1iUY6o5ph5z2NrD1GZ4aCxvNlt/8oyIUvxzyUk8KrQKwXAZW02saIiu+ p87dpYOYLWp/IDri/JZ6tNoehnoeX355UqVb1Wqhk0gfWqQZTIOGmbsLU1D2cTJa Ti108H0CVqSfuAmkwdUIJAe1BjIVYnaB9INhiYHBgGLzuaX9ft4= =jI5N -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--