Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp72550lqj; Wed, 10 Apr 2024 04:34:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBN07f4Xq5EdtbJL/juXzSaRTppbtvNOU2zXvdEOEwYwLKhN6qLp8Rtl+rdDPFbB7fpwwdzAaGEjF1tkn+yvtN4O9UtDuPb1tfaiiziQ== X-Google-Smtp-Source: AGHT+IH9HS/DnJ3N1nF7w3YIYS5ubZ3fJiRqN4nkAShST1UMsON80piCDxS/9IrmIuHZTIvXtzub X-Received: by 2002:a05:6a21:32a7:b0:1a7:9886:4bad with SMTP id yt39-20020a056a2132a700b001a798864badmr3079134pzb.2.1712748864967; Wed, 10 Apr 2024 04:34:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712748864; cv=pass; d=google.com; s=arc-20160816; b=SXAkl85yPe8sSi1+kK+G5ns+U7647Bf65IaRrUiqwqUhHWb7zqyC39MOFmncoQa51Y ouhS9YFlD6uh0BvgyWv/eO6sjDhlxnnSOSP+QB6LqMQKoLhHV2pk+WAQOWpPddIBIkHL YR2qcsqs0BQ7djQKyXpjdBsSQptl4gmfwUdQqe9uIacpfm2UiVq9uw9dcyN6I7JwsKxe WNLH2KCvIikzAOMxnDWm/Q8nKbDItz8B3OqAxZ4gISpUxhKc3UiWc4oHvRuCOz2oanq+ r5bj27sunDwL6c4PpXeYYviv5WlhOmo5bj8kwv4YqBs+iOS72e22bKgLetqA9h3Oz1a9 jfxg== 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=k+7gyTeoVGWoiQtUP2kx99lHQC+xHgNqfgabFZlIt1A=; fh=KxEXDrzW6xhMRWSWM4FWDU3Begei+gmxiIsdXR3AylU=; b=s7D4cE7zTYlKZrBjavbvKJEbQKm6QVSckZM7PCdLnr1hmhAuXh9EDSNiiXFCf8lW2/ OBKnYU9rxs9/pFIis2MjXz36dN07r1UI7z31/qTs+NS8r8l0t+akY/9WwmG2tmGL7utx XrbUz7vVzPlqC6wqxSXVjhb9Wy7L9psEINfhIc8obpmUk4MInsUGkdi1WY3VRb98Mc9L XobZm9ARcvhAy2TcCt/2syBNGKY63QtanPMmh207/nmDrV4efhyAVBDDgT7Tu05Pt+Zq TXN9GNTcunGVlFPzEqo0clIa8jG7d34FRfg6eneQ5Js6OZDIAINqQOh98twOR4FPtcFw 3KIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=jGE3GHSr; 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-138401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138401-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gj12-20020a17090b108c00b0029dd8953b07si1372300pjb.144.2024.04.10.04.34.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=jGE3GHSr; 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-138401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138401-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7A94428898C for ; Wed, 10 Apr 2024 11:27:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34C0015EFC0; Wed, 10 Apr 2024 11:25:22 +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="jGE3GHSr" 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 781ED15ECC3 for ; Wed, 10 Apr 2024 11:25:19 +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=1712748321; cv=none; b=C9t8ccR+Z2FZ8zkKnOyp672wqe0yxpAYz0melEYmWdyixp6fJLydw/yHB9wXFA3yhfG5V9Hr0NIkqRk0gLvwXCWcEIMP464KTZjOQPAqPtpRD4qefJwKBVpTJ4ZkDla6EBuBZ0PwOu4EE4vNVAOiMheC56ieBpbLOa8efG2yJtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712748321; c=relaxed/simple; bh=sxi3WEpwgXQI9JfKHETzDTiVADUhdiDC54vmSGW+gcE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fYubh6+ipDVqnoY94fTIZd/SRwghP2rZmLoeSSiSefgzcwS6PTvTMPrfFGJJvuALaCRp/NEbQeTtIbA/2emgQDdD4W3rBioVzrwXckaLbyO2yfcMWQZ9/RGetHRwvmitTYDNOTFWsCtvndlWZS+DvnFgvEqb5ZDVmuqdfm8tiLk= 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=jGE3GHSr; 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=k+7gyTeoVGWoiQtUP2kx99lHQC+xHgNqfgabFZlIt1A=; b=jGE3GH SrEt72iicQl3z+Wma4LyoJbEUhwq4GtkhjTCBT86qz3m3dKyZqNgvIgN9ulyjctM zLhTn30TwyJBvhhIIPmbV4hAa3R87lCupIZ3t+oD4PkwDA99PKFuG94FDI+dyrEz ZUA9x3+ENczhqRVFL1LWAb2IO9vnpQtip4k1s7DJu7RmyGmF6K8hhuMVpjV5zb5U y9zMdP26ZYjAvSqATF2aJ0iL7nOBFQgKWflgArrd4gQCViSeqV0NtV23+NkihG3F y32+rxjyjiMR+WFFmsSFDKxyeRRt6pzWF0PMRg88Zya8AKgv9km7NUci+W1GKuVo 5+K/SLLwioe8w7jQ== Received: (qmail 521729 invoked from network); 10 Apr 2024 13:25:12 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Apr 2024 13:25:12 +0200 X-UD-Smtp-Session: l3s3148p1@5xq1SrwVmi1tKPEL From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Bjorn Andersson , Konrad Dybcio , Andi Shyti , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/18] i2c: qup: remove printout on handled timeouts Date: Wed, 10 Apr 2024 13:24:26 +0200 Message-ID: <20240410112418.6400-32-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. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-qup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 598102d16677..c9b43a3c4bd3 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -793,10 +793,8 @@ static int qup_i2c_bam_schedule_desc(struct qup_i2c_dev *qup) dma_async_issue_pending(qup->brx.dma); } - if (!wait_for_completion_timeout(&qup->xfer, qup->xfer_timeout)) { - dev_err(qup->dev, "normal trans timed out\n"); + if (!wait_for_completion_timeout(&qup->xfer, qup->xfer_timeout)) ret = -ETIMEDOUT; - } if (ret || qup->bus_err || qup->qup_err) { reinit_completion(&qup->xfer); -- 2.43.0