Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1984622imw; Sat, 16 Jul 2022 21:10:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTozm8ScNQzY+jH/fsXdz4NZxh5lYWKp04rIIWkDQprU3ZQZWrabUQe0h4igL3a9wLk6jd X-Received: by 2002:a05:6402:ea7:b0:43a:ecea:76e with SMTP id h39-20020a0564020ea700b0043aecea076emr29737178eda.77.1658031055873; Sat, 16 Jul 2022 21:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658031055; cv=none; d=google.com; s=arc-20160816; b=rFDBlpKpupETput9wSiKgpHYnSY9TalZPfwlioa4ALx6JxzyAkBqGRkE805YtoEG+7 oVc5z0R7uBNI58SxGZvpHpFbWt/WFiKFYwXDojKMXChVKTPlOesswx1EADcvxozpubhT wBNQBofmqnNQcBmgEw7i36ZoFjWlWUAj3lGId9kCb8RHO3ZznST5OoGV+ywOernvG11D gJZlHaVwnR4uECaER0vvEAdRuuDPJZE4G82tHY32xyp/u6ISrEeo2v/5moSZbIU3VNVw KFYsRnZXKtOnLtYNaK5M/hGFUzifjFvHlg6J6LR0WhmCuAJObGp0eM/0ISMI2Vi1y1t6 g8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9yMrdTNz9TTOLl7s7jHHhG7B/YYZk6CJYXUwzk1dI3M=; b=IH94LiRe2LGFEOmJQJWQYyhsGyqSK8xQwOlxfQJsf0u909XcAryFEkvOP/AAPeJ2gn hJTsPzyy99rxMEqdfu4ovhnq9+x2dCLcLvxgu1mbzqk0DwxJIQ0cNsmYdYMCkFal1Fl9 Rq7UDG4IjnDc5kTlwiC2RWYvt2lCTLsksv0np0Xm6JrVgXY6aj2HhQBNfka3/bkCZVD6 Yq3wmy8j+uwM0H1FuP2vUivtC6uGxe4GwpfoEX9RVWjo/sKG4wSrzlsZQYaqhXhLYKUQ PvYB9YFoUvl0bWXrFoJEY4HKZzeNx/XWip72iNpwfnz6M98GjA8P/4w+OzwyHXtdTc77 W1ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ojxV7iM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a056402279200b0043ab81e4240si5484650ede.501.2022.07.16.21.10.31; Sat, 16 Jul 2022 21:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ojxV7iM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233054AbiGQDsZ (ORCPT + 99 others); Sat, 16 Jul 2022 23:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbiGQDsK (ORCPT ); Sat, 16 Jul 2022 23:48:10 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7C717E36 for ; Sat, 16 Jul 2022 20:48:09 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id k8-20020a9d4b88000000b0061c7f8c4f77so5724136otf.10 for ; Sat, 16 Jul 2022 20:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9yMrdTNz9TTOLl7s7jHHhG7B/YYZk6CJYXUwzk1dI3M=; b=ojxV7iM7RNRpmnF4Ddf3tRMA1d3afYJgBfK4CQcHVm151J/5qSdRUhgeia5Y37HgpO 7C8Ut3XvMa80UdS9jOM/9WM9KRJJCoA+YI3PM0vZMlQYLlci1exQS9pwLtXnaeZFimk3 6xd6MDz/nFA84xmZSZdxKqp0diYVF48+bxdLeUgnXowp/Z4w1N6CG9DxlL3Z1MYyXRhp zEtsOYro6cjT06H6vLkzKlTdvzK/Bm1qVXjcbrwGJi4mZVQDh3QO6euzx2TDkJ+zzNtz F8snJuW98CVRqUzXcM67xfDmQmN0yoptX29ZSRDZyENwXsOrWnl2EOsJdtowtXw4HoZP QriQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9yMrdTNz9TTOLl7s7jHHhG7B/YYZk6CJYXUwzk1dI3M=; b=u2dCSlMLZ7CmzqjbhPqsQ+q9mXetPQaGZ0pEvUN7qfCTR6ld3gY9gdY4OD8WoKS6KU TolLZ1vSDUnniZP0eiOVMk+2nGkzopCfE8xRq0dpEf+xKiD7aRfmP1oVkrTuZ5MJD4cW V4FDqEzkOfp85JBWY7CPpWWR1AxWgYDMGz5bdA93iZ+f1XIgNRdkUoj5foIbX0Aplzxw z87VUXAdbxojCHREDBBdGKyAQ9ej92Zt1dN2U/Nxt87NiEiYcw3V9aDfhaxsjN1EJKcq pJw8PiUk0KX+I5kW3T7za0kfCQsQpeVq317tMC9SdG1RRA0uTVUMLiY6kQtU6i2Mg45v 3frQ== X-Gm-Message-State: AJIora86RP4DvKRXLlUryZWaInhMT5cFZ/lcq1Fv2ZXwtwF4EOTjTPPs ftjMI6QVunZiHzrPAj2nIirBhw== X-Received: by 2002:a9d:2602:0:b0:61c:30c1:fa03 with SMTP id a2-20020a9d2602000000b0061c30c1fa03mr8841527otb.86.1658029689329; Sat, 16 Jul 2022 20:48:09 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id e65-20020aca3744000000b0033a169f9282sm3004515oia.52.2022.07.16.20.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 20:48:08 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Wolfram Sang Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] i2c: qcom-geni: Silence NACK and GENI_TIMEOUT Date: Sat, 16 Jul 2022 20:50:27 -0700 Message-Id: <20220717035027.2135106-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220717035027.2135106-1-bjorn.andersson@linaro.org> References: <20220717035027.2135106-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Turn NACK and GENI_TIMEOUT into debug prints to silence the kernel log when running things such as i2cdetect to scan the bus. Signed-off-by: Bjorn Andersson --- drivers/i2c/busses/i2c-qcom-geni.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index e212e7ae7ad2..6ac179a373ff 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -208,6 +208,10 @@ static void geni_i2c_err(struct geni_i2c_dev *gi2c, int err) case GENI_ABORT_DONE: gi2c->abort_done = true; break; + case NACK: + case GENI_TIMEOUT: + dev_dbg(gi2c->se.dev, "%s\n", gi2c_log[err].msg); + break; default: dev_err(gi2c->se.dev, "%s\n", gi2c_log[err].msg); geni_i2c_err_misc(gi2c); -- 2.35.1