Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp68783lqj; Wed, 10 Apr 2024 04:26:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsbHqFUK36FABIKk6+lwAoLIkMzJ6U2tbngenagKPEYvpmLnoAfCz5MOIKEpCodoZOPgtGOQcgIsNp/x/Zz9Jj2LTsZZleuKQr0H211Q== X-Google-Smtp-Source: AGHT+IGeKKek0JYY6yY2Ssf9aNavCEVwyGxOWEEfrlvI3wr3NDuNydu9YNqwf1Zu9EThJMpVv6T+ X-Received: by 2002:a05:620a:917:b0:78d:7611:bd91 with SMTP id v23-20020a05620a091700b0078d7611bd91mr2527136qkv.8.1712748398049; Wed, 10 Apr 2024 04:26:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748398; cv=pass; d=google.com; s=arc-20160816; b=uS/iRrIgwz6DKnceSfE6YZ+Bk1yURwZkHSD8aLJ1vSRpLljSp+HAj5T5XoYk/y0DXJ GR2QY4qoXRSaNUuX3Mp6oj30vYrODhNAuRnnYLEEJAl24EFv5SvFlGPyO0/8atSUt39T hadhsM9sJy/4008Y9xHnY0xv+uqLBcw64AgNHunzD06SekgI47TUHDNWca+Trkcqg4ep 9A3bA4weSY+YlNv1WWI3TgFwRmHkfH1R5rrHf7FiCA1nYMkRB0Y/mW9Z0FjjfaZ3D1zx LtDDHJ8YgR509fhrpiS21rtn1n8QuZp9VJN0PXawaHtWKV/3GcmHQA6TPQ0ATB3Zenlv +WOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fPQu434kXThfULnzqmFJ6qbKKgAHLHiDMKWRonVt0mI=; fh=Mfd9c3MYd6Q+Powq9wv6XiPcgk0zZW7+7SThwo/rzbA=; b=MaG95pdkqt1C7JXI7dzbiLVotMHeZNF65oEFFbxW8IccBXRx8ih3zMimyOQ+yClgxW Kn9bziBCAh8thZb2MxXx4WIIuihL6H4DwPQmrdYW5cLXmWiUiqwFS9OGvaauY5Ap8NAs xN3YfOqCVzMmME238myN0hZpaf7RKrgMLwZvkit4Eiyi0R4+BJ7bh9NT9uW8/uf5Qoyx j2VaQbpgBgFWIowUnvNyd2ZOupnnW9pQSO+b2VgwaQdqH28ODfRYWXeytWHsBmvwFSx4 1lWw9HPBemNC6sfn1JL1ejC7yAwcVcs/vU7cyX6DQxi3sZ80/CCLkIotNSTvbnsSQrWa R8gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=RRYk8cY9; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-138396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138396-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x19-20020a05620a449300b0078be905f307si13796180qkp.660.2024.04.10.04.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138396-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=@sang-engineering.com header.s=k1 header.b=RRYk8cY9; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-138396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138396-linux.lists.archive=gmail.com@vger.kernel.org" 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 9D4291C2158D for ; Wed, 10 Apr 2024 11:26:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E49D015D5C1; Wed, 10 Apr 2024 11:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="RRYk8cY9" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 1251615B128 for ; Wed, 10 Apr 2024 11:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748316; cv=none; b=FXtk739O3N7mfc4e5LRf46/CSAzT2v2es01AJx60gW7A18NGu0APlJDGYT8RMholi0+uK7D3EUS5k8ooxPoHxA9v+Gnviwmn6KF8tkAiX3CpwvPS6kkjTz68WVmSc1w8dcMXKGDQ4etfi4sxuvnaA2DwiTVMNXINhNDTPSF++Q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748316; c=relaxed/simple; bh=wluySLpxATwK5WykRORCd63slQvqphsUlCNn3aw7kJA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RjeW0tACXE+R6Nru8N5ivWBe0C9EDRnSNifYV2xjhfGoE4yC4Fvq5rXyBjdShw1mHYOgyF+sG++Dzb4MBfWEN8cZZoDfUW8qnaOqhpmHax1BcZnWNYEQx51Hdn60ymXJ0nUAGZdl3EpYAcUgpI75MDzne+vdpBbUp6NHxCCatjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=RRYk8cY9; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=fPQu434kXThfULnzqmFJ6qbKKgAHLHiDMKWRonVt0mI=; b=RRYk8c Y98o9opRGfncDNxc2SUmgucPbmi+sZZKCbIfbyfLYKGzlUOjqZGuMIak+k5U85mc XKKN+mpX5UxPPHx8JVtXiOF/zhH946SOYGLltYAzMF55+OGFj7MJwrhA2uF+1xKP WsckbvJzqJ9I2mSGATIzppZh4Dy6ePNS54i5THw6bStHXisPM+34m2caSMDy8mEO +uB8WkS5JieTGSQVQrgWjBgFKlDBKDm+xhtJegYC3Aa+3f9XxmYAO0/F8+SVx86b OyV+m2Icj99UzMFK6YCR8XoKGsutaYQoU1yIJbia+892zUlXvzTDVS1zCKX/T+hj n/qDdFZuGwMCEefQ== Received: (qmail 521554 invoked from network); 10 Apr 2024 13:25:06 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:06 +0200 X-UD-Smtp-Session: l3s3148p1@KBRfSrwVDlptKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 07/18] i2c: img-scb: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:21 +0200 Message-ID: <20240410112418.6400-27-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> References: <20240410112418.6400-20-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I2C and SMBus timeouts are not something the user needs to be informed about on controller level. The client driver may know if that really is a problem and give more detailed information to the user. The controller should just pass this information upwards. Remove the printout and simplify the logic a little. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-img-scb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c index f9d4bfef511c..e0e87185f6bb 100644 --- a/drivers/i2c/busses/i2c-img-scb.c +++ b/drivers/i2c/busses/i2c-img-scb.c @@ -1124,11 +1124,8 @@ static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, IMG_I2C_TIMEOUT); del_timer_sync(&i2c->check_timer); - if (time_left == 0) { - dev_err(adap->dev.parent, "i2c transfer timed out\n"); + if (time_left == 0) i2c->msg_status = -ETIMEDOUT; - break; - } if (i2c->msg_status) break; -- 2.43.0