Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp412023rdh; Tue, 19 Dec 2023 02:48:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpHQK3DsDRqI2cxWs90VpsaHQzjsRfjm9kFsmiAZ3kMh33PBb0jVg0TdA/XU0c7Fx4Kyas X-Received: by 2002:a05:6808:1689:b0:3ba:3743:693e with SMTP id bb9-20020a056808168900b003ba3743693emr11656214oib.95.1702982916300; Tue, 19 Dec 2023 02:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702982916; cv=none; d=google.com; s=arc-20160816; b=KcialaL3mwK9ZBBThDQ3gt8Ek4eR+CSzUMslmgtBJ6TNPzN7yMBq1UyKLTNeYFg4Mw 3FXBhkftLfLP4BLSOL1wUfdijoEQqQNNCoQ+w27BEexos2Np8OmvbvpY4uaLmPAkE3rP 0fu49MZKwW5sCkry8JfH/l2z9xw0PuvXL/HRrzDeHOwEdH8FcEr2bUazr4PaiGwn5FpT 6dxGe1tmUe544l/6qvZW1IweA6juxDJpAqoXOwVXAQtlcBmM5qG/7y/k56Q2j56iLXWN +UU0GkpIqdHU3w+pXgpkKZwb3+Y0exTHZxpAYdoFlftA43bVrGBM6LyYFZ8HY3LqaRpQ jaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=m0yDNQUTzvodWEDvtBbstPo3KYaYH/E7fv3GZp8yaBg=; fh=x1bQf2koaDkU39g9cHrRgbmTMZaRlGFPZUfv7TsPtxs=; b=Mtq9JJksatCTlCHaQa7uh49joJ04JfeISgD3r+DW6H4slQ1nRYMruQ9Z7M/QLWDEzH 6pKT+zfzpJnPRuu79MSjZhcfRTPTCsohkP84S4pz0I29Fe1eO5gaDcF1N7i/ZrgJL58C ZgqYxmoCWFpaaSqME3QefIkINVjUmN2hSJZRFNCDBgwGSpi1qTEeIlAaNlirokDCqrBV HmCwc9mebmWq0bKPNtfGDsx41HZPJuGAMopQdSA/w+5aPMjAzkpzX5E7P2AJy4AEB5l0 W7IvuRMxC+oWmtBUH3+c1dpaVrSTC35jckPabMYV9VZlNil4KM6YVetoflUGHr35fvYR f3Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=CTXmnvAx; spf=pass (google.com: domain of linux-kernel+bounces-5028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f19-20020a0ccc93000000b0067f65b3857bsi203191qvl.15.2023.12.19.02.48.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 02:48:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=CTXmnvAx; spf=pass (google.com: domain of linux-kernel+bounces-5028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1006D1C22EC6 for ; Tue, 19 Dec 2023 10:48:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0258B14ABF; Tue, 19 Dec 2023 10:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="CTXmnvAx" X-Original-To: linux-kernel@vger.kernel.org Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89E2314AA1; Tue, 19 Dec 2023 10:48:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=m0yDNQUTzvodWEDvtBbstPo3KYaYH/E7fv3GZp8yaBg=; b=CTXmnvAx0w2obrey6tf4Jym2mq OK5pluK9R8CymBcfGvC7I3dEqZ4bqt218V2kKYdrgOnDGE11zCVwiorsjZADS2GteC/9Lc/48P8eG T++PXSZlxH/d3jTAbtjejmLzrsyAVI2Ci/2j7fbcjvqezt6fu65f/qrkyszFweFLOHueA579GMYzn +qN/SJCh4065efueYNaGtKElN98/+J84H6B/0cwyKANngiqctw1Ow4fXdXxD0E27uTGka2V+2h/Zk z3sAtHfxbu2p/IEAHJUKQY/sy3rS+xD37iRzpNGZ2z9PcJUDK+v+YDdyGg8KrCDe7fU80uMK//BEd TGXIm3+Q==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFXe6-000KUe-D3; Tue, 19 Dec 2023 11:48:18 +0100 Received: from [80.62.117.166] (helo=localhost) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rFXe5-00051Z-Je; Tue, 19 Dec 2023 11:48:17 +0100 From: esben@geanix.com To: Gregor Herburger Cc: Oleksij Rempel , Pengutronix Kernel Team , Andi Shyti , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , "linux-i2c@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux@ew.tq-group.com" Subject: Re: [PATCH] i2c: i2c-imx: allow bus recovery on non-muxable pads In-Reply-To: (Gregor Herburger's message of "Tue, 19 Dec 2023 10:58:42 +0100") References: <20231218-i2c-imx-recovery-v1-1-f69fa85b228c@ew.tq-group.com> <87frzyprhq.fsf@geanix.com> Date: Tue, 19 Dec 2023 11:48:17 +0100 Message-ID: <877clapixa.fsf@geanix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27128/Tue Dec 19 10:36:48 2023) Gregor Herburger writes: > Hi Esben, > >> Why not move to use the generic GPIO recovery instead? Will something >> like this be able to cover at least the same scenarios as your change? > > I was not aware of the generic GPIO recovery functions. At a first > glance I think your solution should work. I will give it a try and test > it on hardware. Great. Let me know if it works for me. If it does, I guess I should send the patch to the list in it's own thread. /Esben