Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp450711ybx; Mon, 4 Nov 2019 23:44:31 -0800 (PST) X-Google-Smtp-Source: APXvYqx04psLuM7LfLWBVy/8lSDUhsUo8o2haZevvAZJyg281BF07h/VTMSIAZ1Us5nDTsnNUuiP X-Received: by 2002:a05:6402:13cd:: with SMTP id a13mr14032520edx.57.1572939870988; Mon, 04 Nov 2019 23:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572939870; cv=none; d=google.com; s=arc-20160816; b=xVtAtrZsi/wHyDZB10O9mWFmwRyUuwLeEYuuqzSBbNv8Ay7KlKQHC1zcSvBcz+qXAk zcBQv8BmYSlLnpwYKynEkJ4O/YxXCxwVw28dp6aJdB5mBeEuspb0vRNcudP/gHMKBtOn Z7vNTbEIeUQEuAl4zObYLWbLMkgwUZFfUWdc8e1ceddnOt+3nWEwTtPzkpZk2MCwPpXM 13bWAnsjZ0KLIJtMW+S/9fzXwafkF09cFiVvzaKDBoWhK4Kkv5P+Oo7nAjlxG/dti7OQ xAGgf04HSq0hiBzzT30XHF5ok8ASvD7AMYuhK34G8aSFKrW08t70N6D5D6vmeF73HsZI Ni1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bq/oMc1w9CZddX2/C9nXQ3BMFHPgQLCdmRfeuuGrMCk=; b=BqIFx6MhDuaceFUrPSd8b0Fthex8fJTHGLIlDfaG0xC78/19VU/LsFkTgDDWIPlRxC YCnL8xCZZFELKK9GxA++lfSMRRcbnc635Ojre97NyVypeAao4Rn9oHY8V+YXWWSoOqFZ IoRucExghyJEhjI6Z9knqiTskk7R7j5yLu+EJjf145K5In4T4CqgI3FGeHjdsFVGJXXd TOJOmUC7i2BJD14oqXEIP/F6Kye8iHXv986fzsLwojo1Tw0dieSwBrktL9uUMMT2XSgp n2iv2aAbYBdLNXxY2ofyxTzTCCbwoCcJAG5n1byKtxemFPJXigk2HWGem6XotRUm0rWP AVdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dBAoHlIf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si2611359eju.48.2019.11.04.23.44.06; Mon, 04 Nov 2019 23:44:30 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dBAoHlIf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387835AbfKEHmg (ORCPT + 99 others); Tue, 5 Nov 2019 02:42:36 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37356 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387678AbfKEHmf (ORCPT ); Tue, 5 Nov 2019 02:42:35 -0500 Received: by mail-ed1-f68.google.com with SMTP id k14so6452135eds.4; Mon, 04 Nov 2019 23:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bq/oMc1w9CZddX2/C9nXQ3BMFHPgQLCdmRfeuuGrMCk=; b=dBAoHlIfAFubuAAkCQ1bOLzFinxVvIQv3YIsEA8WSu/W6D4AoT2tuQVVEsHCGIZbrs L7/dVxXRnZHC20Fjy6lhXs4P14zhLRHeNR+eDHhQtc22epbXPYPkEETJI1ubRAxcxsg3 D3OArLLX68Wt7NZ7KTH/1rl1c7RttEOCrBfppGBS5sAkgelzbVa933Scmpp+h+pKP9/M 4Qhhw6fW5xjDrYzBQtZ+NYhxo6hFz7JIE9Kt1uSyDt6zuxsWS8aOcWB2kRdemZ/GqijK GuIJt4n8PA49nr/V3XzIPmpXaAoWcvWOHqwPTmUVgDph2tBWFmY3d0in9KDo/jIKf/R2 3fjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bq/oMc1w9CZddX2/C9nXQ3BMFHPgQLCdmRfeuuGrMCk=; b=pD7kq2m1kjGXONEX4lrWICnifyvoLJOR3blF/dih0K/nxJv38yGsPDfv3ooNWaEyul iMV9fMeOR5BvIersRTSYDBdTMFNhVF1Jqz4rRfc2QqYcdwW0Vp6+B3J61InCxa48m/BC T0aA0/fA0AnJUYeYeHnhFqvqTL1IWBDXDHn/vCJY9aWudXvIrxB1TuZZuknN1ERqyugn YaFWBhpvsWLnMNqESPB4x73GuBYWcCLHZ4YesXa5ov1nXFZuOG7ZEo0ELJb6QLoiXgVb 4L1eVR8GEw9d1SqVIxMWUhTJg1XBKwmEJg1/pnLnskfR++obSdFmAEAzwGbxgMUDJXRL sltw== X-Gm-Message-State: APjAAAUWW9HuAoVK8u/DOMGHnr4h07Sd5m0TLOUBXrzVBCKKlgj1rJI0 HjBbqRuAimaHy+OMEAaNR5gkgCE78SAj0L8iOQ4= X-Received: by 2002:a17:906:780e:: with SMTP id u14mr27332804ejm.97.1572939754050; Mon, 04 Nov 2019 23:42:34 -0800 (PST) MIME-Version: 1.0 References: <20190219012447.5900-1-sxauwsk@163.com> In-Reply-To: <20190219012447.5900-1-sxauwsk@163.com> From: Shubhrajyoti Datta Date: Tue, 5 Nov 2019 13:12:22 +0530 Message-ID: Subject: Re: [PATCH v2] i2c: cadence: try reset when master receive arbitration lost To: Shikai Wang Cc: Michal Simek , Shubhrajyoti Datta , Wolfram Sang , linux-arm-kernel , linux-i2c , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shikai, On Tue, Feb 19, 2019 at 8:19 AM 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. > > So when driver detect err_status such as arbitration lost, > then try to repair and fix it. > I am missing the issue that you are facing. You are having a multimaster scenario and getting arbitration lost. the current code would attempt a retry did that lead to any issues? Can you explain the issue that you are facing?