Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3818601pxf; Mon, 29 Mar 2021 12:19:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpUTw0SSLjoWdaDNE8Hv9efc1TMEsRTSBJM/3YAsHKDrYacrMBIH8bTfQ+luKBf3ge379F X-Received: by 2002:a17:906:1519:: with SMTP id b25mr29856047ejd.254.1617045579965; Mon, 29 Mar 2021 12:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617045579; cv=none; d=google.com; s=arc-20160816; b=n5c1+Trd6w7vcI8JNQYwAASIl3Jy2Qi7YUxoKoB0PKRWprKCW9g7q4m1hbhmLF3XhI ek2l/munpzbSDXIZQO3TcmlQXwDtQz2KFEj9z0+YRwvDMQj/synqs7dvWVtkaNsPmy/A 39dcny1m3RAJ9y/1H31sDCdgr1ctFNzSi17tO2IahB/d2/EtSKCFY+H/ugOD4QIls5Kk 1fDR0JVfXK6YhSNS7hSfzFVAP9a+iIeucy0eLc44XO6BZVYoEdLw1UZdYagly5aT9rZy IMEzG2QFTW1v/eGBLGoUyUHEDoPAoZof9tqOKUbZPGMPxgCfWk8P9aRZdjt1lNV64X4S 2b5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=7K14b1w2kDdkQMbwxCBM7oWItJ4kw65lj0MRDhZ7Qpc=; b=vI4I6OmBGDyWp7kh5llXB7rU3M7yGznXlH/gXPz69mf2WaJ5nqMcwQReMjsib8HmzK XX4siWgn6R79+5+oi4CD735LVnCYH9kNwL/IVfRDPfyYd63MiqHIMdgcLfv+xnLqGaI9 1ynGZw/6K7NUmq1BQaNrR2q/ADhwyG+7qEhTxyDNw2WBK/EF2IXhavn8ulD0kxzgBAOG dLjfj0NP7XSUYOtMmX7hk9iUmYMXD8/kAAsXYP4G7SB1DlC0m7Q7kDJu4Uh4fxS2zG5l MyyKRvs80+pacgIzISFmX1CvYFSy6keLln3HObB+HBZ4Wj81imnA48le7Q1GHO8GGLbo ElSQ== 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 do3si13766864ejc.486.2021.03.29.12.19.16; Mon, 29 Mar 2021 12:19:39 -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 S231533AbhC2TQJ (ORCPT + 99 others); Mon, 29 Mar 2021 15:16:09 -0400 Received: from sauhun.de ([88.99.104.3]:40786 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbhC2TPi (ORCPT ); Mon, 29 Mar 2021 15:15:38 -0400 Received: from localhost (p5486ce89.dip0.t-ipconnect.de [84.134.206.137]) by pokefinder.org (Postfix) with ESMTPSA id 404B72C00E6; Mon, 29 Mar 2021 21:15:32 +0200 (CEST) Date: Mon, 29 Mar 2021 21:15:31 +0200 From: Wolfram Sang To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i2c: tegra: Improve handling of i2c_recover_bus() Message-ID: <20210329191531.GA6654@kunai> Mail-Followup-To: Wolfram Sang , Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210329190546.24869-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20210329190546.24869-1-digetx@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 29, 2021 at 10:05:46PM +0300, Dmitry Osipenko wrote: > The i2c_recover_bus() returns -EOPNOTSUPP if bus recovery isn't wired up, > which the case for older Tegra SoCs at the moment. This error code is then > propagated to I2C client and might be confusing, thus return -EIO instead. Hmm, makes sense. Maybe we should change it in the core? But with EBUSY instead? --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmBiJ08ACgkQFA3kzBSg KbZXcQ//b4NDYu49tVixZRw1UuqFH90MPZl+g5ZducdspzSu8V1HRKEV1LZb980q JbVxhTb0b1VImvGtmR2uaRTTb2SKGEBbQ8CzlOz9st3PVvukOpycQZSyHNTTJv0p m/mYzu9VPrH4HTPqLmXRL2SPD4AGlaFTl+qXr78x6HFRb6u125a4C9zekEAYdi5P t4dFBsyEaswHgbGD7W4eAWzav7zFPmmJjjQsvC96gyo/muGplZQEjta33Pi6vSjF 7xx3R4To8Tbqnq+2pk07IP7hnCann5tsePHcXqbgRxAgCGStNNHCoJxfyUHO5V0t flHD//nE0snrOLNBx5JE/wq0UxVefAg+kesDL4YI353CAyN4LX/WhhA2W8j7PQ1T 9z3MBiiNxFBUSTm3Ck5Ps6CfK2pT9PgJyhOQjoBaBHT06V6RL2cZJdlD+GDzUvXa tqfIe0Iu83ZBYb3BdnB8xXIW4MTVSjDNW/8CAWsoMxeFBnTBKnBE6kw8Dh9GGo9A B8ZVFj5UmPGh/Gc/eNEVIrPfqacvaqQt1ucAcJY1SmmLw3p2okIwKElgNnIhM/WP M5cyUjyGwFUsdEnWiZrusvta0iel+PG75p8W/EpfgRCt0hLLRFUA+U9NHzOigrnl LE+lpnas/0ovqKGQ/cs7gv4aH7eOu7PaD8zdNgMaVWvHMen7cf0= =nuLF -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--