Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2370657imc; Sat, 23 Feb 2019 01:50:55 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaq2j4l0Emuo89s7pFZ4h4mzSSsQdNSmTn9uOC3SDId9zVpCWhmFEpUJe42lDaecCDTBJQk X-Received: by 2002:a62:6ec3:: with SMTP id j186mr8953969pfc.89.1550915455907; Sat, 23 Feb 2019 01:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550915455; cv=none; d=google.com; s=arc-20160816; b=AmiV2mQAAOTQEmxEag0avwtK1ZvW0CaaAaTBnRtynnm0PHXb7ufj3abKCp3QntkwQ7 5xY3BjWoskw141hjjySjPw6B9Sjl2CDnQ6OlPt3XwT+Mhd5qUlJZCga9OnzPPYvrxgRX d9vlfbNgg76bIoJvgSGGjTHJhjYEi5QrPSKD9oeX/K5Of9i1hCJUGVCzimqINNVQEm/H KTMR1af1iXjWV5xwvMrdXVwMkU8DC+VF1boMP2aLHmEinPEbRsoCiLBawTX9lP3ReMTT WL25ueWbrd5cL8+Sv/Sw1I6qCFRhKsEbsVIUTOn9uAGOwC9RQ8gFPYkSojPA/3ZrbPUB ktKw== 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=5cAEuKMH2UYRRN8Tq4JqXClklD8PfiDS+XoPu8PM7xo=; b=StL+JRwqkl6c2wim8vGNGqku6y7ad3gjeVtxB2z5RFl5+DvF8KV0JXKSiFnKjhxyEl 3TCpfAaJHAvPtLVMXNqyLWnqSGRmhN59j/ECQGsKMq/9f/aguKIdY4/D7D06jthdZ913 1yU8UjdWIo+0499HhAZiVOHV2ank1uQuPK57SRQMi06x1cgH+94DwX1gKyxB/O9sotqz ZIixdb+NE/nRRGCO407Nuy5A9hTicO1o5QShawEIpo9FTCRfmusrvPcqzd9Q9KQCDok+ CYNNJgbhw1NNKgpUj1F33fUgso4gjKlHd1zqt7q+3K/JODY7DfCt5gdvXE4bOaDyKXFa qAGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si3497512pgm.250.2019.02.23.01.50.38; Sat, 23 Feb 2019 01:50:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbfBWJsp (ORCPT + 99 others); Sat, 23 Feb 2019 04:48:45 -0500 Received: from sauhun.de ([88.99.104.3]:53758 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfBWJsp (ORCPT ); Sat, 23 Feb 2019 04:48:45 -0500 Received: from localhost (p57BC9845.dip0.t-ipconnect.de [87.188.152.69]) by pokefinder.org (Postfix) with ESMTPSA id 7AE942C3312; Sat, 23 Feb 2019 10:48:43 +0100 (CET) Date: Sat, 23 Feb 2019 10:48:43 +0100 From: Wolfram Sang To: Shikai Wang Cc: Michal Simek , Shubhrajyoti Datta , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: cadence: try reset when master receive arbitration lost Message-ID: <20190223094842.GF1018@kunai> References: <20190219012447.5900-1-sxauwsk@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4VrXvz3cwkc87Wze" Content-Disposition: inline In-Reply-To: <20190219012447.5900-1-sxauwsk@163.com> 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 --4VrXvz3cwkc87Wze Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 19, 2019 at 09:24:47AM +0800, Shikai Wang wrote: > When the adapter receive arbitration lost error interrupts, > cdns_i2c_master_xfer return to the caller directly instead of resetting > the adapter which resulted in the adapter being out of control. >=20 > So when driver detect err_status such as arbitration lost, > then try to repair and fix it. Just checking because resetting looks like a big hammer to me: there is no way to gracefully recover form 'arbitration lost' interrupt? --4VrXvz3cwkc87Wze Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlxxFvoACgkQFA3kzBSg KbZIOw//X4tPGtaKdCAKY08zneHiiw2dqMHmf69zg2wD7wYcSKApFyY0SdxqehEm Zv68Ud90qMfJ+Aecvv1t5zRgwWQPNJSB6f45ujlRAdn45VKtHlMAeiyk6VYelNwX Bx2GXX7ZedpfkmdMGEjiPRsKuHX84kug+xlAHeT5mjGJCjDIrGkZdOSuP3DTDCCM wzLQ1U8yo9DyfNr8DerZ+co07r5Bi7JXwZdHJ1CoI59DS0gf1MnyLj1+dhv3eVU2 TVz13o0m6QO3kT1eGrDaVl4SskXBAL848Lc6r0DnkxynQs/EiosI+QwbziLZkPr2 FZBFk93NoHVJAlSYSFgpbzvWSxiHUy9pknoPTIgz0f0c1/3XmMjH2ziFALy7Uar7 T++7N8amNhDdt8GbsyEmAzIyLuZcaulLk2vS30cjTJG+Ve9crSpSDJRiMyJ/436U WU70k9WuIVG7gwiO3PgXrxon/bu4O3bhQAIJT+Tj2lC6iOj183GJW/sxwj1Pbtb0 /iPQA38/G94zqD9lIyhfdTmsXIOJaGgaCXGlqK2TiK3idxqOuvoxVMRJFhoUb0xJ hKHB8QVoMX0K6SCMh9Lsif6ubum0wrkP4+LFoDq1PDSDU5zlpv0fxUjrJW8p9qhm Gp7eN5oepPgSVV51IHbbAxu8h5X8wkt2Pho8WjvZY5xwlvmty0k= =arbP -----END PGP SIGNATURE----- --4VrXvz3cwkc87Wze--