Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5333795ybv; Tue, 11 Feb 2020 13:43:26 -0800 (PST) X-Google-Smtp-Source: APXvYqy8bMGyFJ6onu7mrbpzup+eNkogZIDy/Z8o9UZbwLK8g7s3Bc2+9moqk5bBU1jkkM8HyaFM X-Received: by 2002:a05:6830:18ce:: with SMTP id v14mr6638061ote.36.1581457406676; Tue, 11 Feb 2020 13:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581457406; cv=none; d=google.com; s=arc-20160816; b=xSiERTZ2/SL4O60E/b/euEkqgm04wd6eY6MIcG0T1unOu14tlnmHE/a6sFLozGPYHH amTfvpQuUu42v8R7RCfIk9cPj7D4c33otgvcb/Z+6dsEyMeJu1ua+6WEkLeZChKvE+xb JVChqNFYKkZkVgafidbX9my+PEwf3YHWefLgm7JT8tt2T/I+jqV5SnrCW6pDMHPU2S3z yaYOMdzAg2NkGZQcorkvsPr0TqMKztFIN90pKgJ8gF1Bor3LOxz6i5hyI/mJLVHOzXNK NsS9MrMSN9Ynuq5SWCJcnSK4WrQ4QZxn2hMyOs24aQYol2X/mSjUzyb1fnWbmwZENKYk F2Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TdyjL7fnovA7v90cI49fyycJRI+MxjJc1+DrsqTzedE=; b=avL6wjmA6MCxfU2LhN2BTh9oxMakK5nX+J7o1eh5CT7mz5GC0fwem8xpcy0BZsu910 55hVDZZTqzroUtX//Y9LTm4w02Chc1FmAW5HgEA4q+3ZQboBfcMt+ZUpyr/HEr7O4c43 vKSeERbgBb0VzxEp4irXJI2qO1rPQt119Ko3ZWdJLkodNSuiCk0B2dABdTrs4tPEKsjB ZsRAPIXSUjtPWbBzpBBAyIOPrX3IGONXswmWmzJcEbofjz+N9toQoLxFqpgsp1W2zab2 kLr74fbewjBXUUzoO4Gz/k6ZTmOuKIAsFDBnqhD3Hhgr6fApQX4GtUte3+lpo1IYXt3o geRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b="oUp/bIW3"; 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 c22si2491840otr.97.2020.02.11.13.43.14; Tue, 11 Feb 2020 13:43:26 -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=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b="oUp/bIW3"; 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 S1728196AbgBKVmE (ORCPT + 99 others); Tue, 11 Feb 2020 16:42:04 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]:29479 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbgBKVly (ORCPT ); Tue, 11 Feb 2020 16:41:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581457309; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=TdyjL7fnovA7v90cI49fyycJRI+MxjJc1+DrsqTzedE=; b=oUp/bIW39rInx7cXXy+sj1W/5gOp1Xq/12yM9Q7Lbf34tNsASdymmF7KCzHywfEGeM oRvbegRP6v8E61nGt1mxPjEq3cDU42jUVqgwQWAN3dBvEaIggGmOVFCWdqVb+QfwGg/X H7b6ZCbOiMTaTnavWzyvfe7bElHApQt/NK59tk1W3c7z3sZQcZ6BVGaVP7Z2AzPv8mVm hn3JUIMpeHTSSUz7yzW1lamE/ob3NmEAXmZ9noDqmzFYAWUTQR8/VMBrKRgYlDuNhtcR dj9xy/Q8oxyEckplx5GqKYfr+xMaQnrPN2wZs05s+xNF3gx5Ahs/7Qjr+I15v0bDmh6P AswA== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1OAA2UNf2M0P2mp10IM" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1BLfX0EH (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 11 Feb 2020 22:41:33 +0100 (CET) From: "H. Nikolaus Schaller" To: Paul Cercueil , Paul Boddie , Alex Smith , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , David Airlie , Daniel Vetter , "David S. Miller" , Linus Walleij , "H. Nikolaus Schaller" , Andi Kleen , Krzysztof Kozlowski , Geert Uytterhoeven , Miquel Raynal , =?UTF-8?q?Petr=20=C5=A0tetiar?= , Richard Fontana , Allison Randal , Stephen Boyd Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: [PATCH 01/14] i2c: jz4780: suppress txabrt reports for i2cdetect Date: Tue, 11 Feb 2020 22:41:18 +0100 Message-Id: <7facef52af9cff6ebe26ff321a7fd4f1ac640f74.1581457290.git.hns@goldelico.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This suppresses "simple" error reasons ABRT_7B_ADDR_NOACK ABRT_10ADDR1_NOACK ABRT_10ADDR2_NOACK from flooding the console log when running i2cdetect on addresses without a responding slave. Additionally, reading the JZ4780_I2C_TAR in this situation seems to harm the controller state. Signed-off-by: H. Nikolaus Schaller --- drivers/i2c/busses/i2c-jz4780.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/busses/i2c-jz4780.c b/drivers/i2c/busses/i2c-jz4780.c index 16a67a64284a..55b7518435f1 100644 --- a/drivers/i2c/busses/i2c-jz4780.c +++ b/drivers/i2c/busses/i2c-jz4780.c @@ -578,6 +578,9 @@ static void jz4780_i2c_txabrt(struct jz4780_i2c *i2c, int src) { int i; + if (!(src & ~7)) + return; + dev_err(&i2c->adap.dev, "txabrt: 0x%08x\n", src); dev_err(&i2c->adap.dev, "device addr=%x\n", jz4780_i2c_readw(i2c, JZ4780_I2C_TAR)); -- 2.23.0