Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1189802iol; Fri, 10 Jun 2022 02:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcM2lNsmvNkzqyzrlfnNHPur7HfkgUNs8a8kGR8eR3vWIgzTjpVTnO+N9XaFJQQMs+M5Yp X-Received: by 2002:a05:6402:f:b0:42e:561:a1c0 with SMTP id d15-20020a056402000f00b0042e0561a1c0mr50539974edu.309.1654852142657; Fri, 10 Jun 2022 02:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654852142; cv=none; d=google.com; s=arc-20160816; b=U8AIv8xLIIWUBwzvr0ItP45XRVEpRJCFPVUtqCV76BrGzL/IL3hp0dQ8zjxC69/Rdh UxzNaATvHvaA1bvrk+C6/IZcwS3B2Ng0J77xFX4tSLbYg0qH225Oy+R4/U0SZC8rt0w3 s2dyEaLvjo95qvP9NZQkUjlZyJHZwW6mUcsTgbVlGAr9+pqO+3Moe5TKcYvpMRcoIhDZ apsg06SXpYvlqRW/JqfQDjQrptOhV1oQpKez5eGiuoE7dOg0ajahrTCNCHufj+NwYguG Lg4EVSD4S5I0qvfnp16q+8lOsrf4I3tPGbj4q3z1Hk5OHRZwriiCbDxZHcNC47JddK+C m3UQ== 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:dkim-filter; bh=e4ZfABF2H4VfWmciwS705FYjJaibel8PX+2+puveoMc=; b=vwVfpDR5Q4NVocC3fm0F92g4tx/FIIRLJ2sDiO6/pZTsH8/DSgezByypDfJzg4Llaf U8Yer06YMHOvrIe4j+YFI/HVrTfSU04kEJ6B1zSDIiUjMs7NV1niXqXAGPtYAiwRtw90 PTeyaqMD5crdJ0970ihs83gYfnTJCxV1ONZym3mt9rn0RqulMYlL0mr2MKCW7VWYNv1b NAGUwrsmuCPpwDHB4i1G5TFr5A0DUoiGnaXKw388mvbkRuNb51ccXyVH9LqugO+OW7Wp Cy+Uigk/V54+wXiV5U6R0YhQX1lATu4sQES7hU3s4GfTxb7GQ5YeYi60rhdasQTVuQWn dqAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b="Ef/Yb2/S"; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb7-20020a170907960700b00711988b5919si1794373ejc.810.2022.06.10.02.08.35; Fri, 10 Jun 2022 02:09:02 -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=@baikalelectronics.ru header.s=mail header.b="Ef/Yb2/S"; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347136AbiFJIBW (ORCPT + 99 others); Fri, 10 Jun 2022 04:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347117AbiFJIBK (ORCPT ); Fri, 10 Jun 2022 04:01:10 -0400 Received: from mail.baikalelectronics.com (mail.baikalelectronics.com [87.245.175.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D70D520C24A for ; Fri, 10 Jun 2022 01:01:06 -0700 (PDT) Received: from mail (mail.baikal.int [192.168.51.25]) by mail.baikalelectronics.com (Postfix) with ESMTP id ABF0F16A1; Fri, 10 Jun 2022 11:01:57 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.com ABF0F16A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1654848117; bh=e4ZfABF2H4VfWmciwS705FYjJaibel8PX+2+puveoMc=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=Ef/Yb2/S4rJIkO98RxL4IzCCjWdDXftjL3WTbxxElZw1TnpVnaY1Ains4k8fVRlaU pyD8wWclaVDv5ANfDr2370uOhPnk4NJPwo8MyLdhbDqHnT3izIBbzTT5z9AbBy59mr MjlYQssDM7eHgkaCgeOM2worvMESx7pgZNMUHUCE= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 10 Jun 2022 11:01:05 +0300 From: Serge Semin To: Arnd Bergmann , Philipp Zabel CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , Subject: [PATCH 2/2] bus: bt1-axi: Don't print error on -EPROBE_DEFER Date: Fri, 10 Jun 2022 11:01:03 +0300 Message-ID: <20220610080103.10689-2-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220610080103.10689-1-Sergey.Semin@baikalelectronics.ru> References: <20220610080103.10689-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 The Baikal-T1 AXI bus driver correctly handles the deferred probe situation, but still pollutes the system log with a misleading error message. Let's fix that by using the dev_err_probe() method to print the log message in case of the clocks/resets request errors. Signed-off-by: Serge Semin --- drivers/bus/bt1-axi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/bus/bt1-axi.c b/drivers/bus/bt1-axi.c index e7a6744acc7b..47bcf18f3115 100644 --- a/drivers/bus/bt1-axi.c +++ b/drivers/bus/bt1-axi.c @@ -136,7 +136,8 @@ static int bt1_axi_request_rst(struct bt1_axi *axi) axi->arst = devm_reset_control_get_optional_exclusive(axi->dev, "arst"); if (IS_ERR(axi->arst)) { - dev_warn(axi->dev, "Couldn't get reset control line\n"); + dev_err_probe(axi->dev, PTR_ERR(axi->arst), + "Couldn't get reset control line\n"); return PTR_ERR(axi->arst); } @@ -160,7 +161,8 @@ static int bt1_axi_request_clk(struct bt1_axi *axi) axi->aclk = devm_clk_get(axi->dev, "aclk"); if (IS_ERR(axi->aclk)) { - dev_err(axi->dev, "Couldn't get AXI Interconnect clock\n"); + dev_err_probe(axi->dev, PTR_ERR(axi->aclk), + "Couldn't get AXI Interconnect clock\n"); return PTR_ERR(axi->aclk); } -- 2.35.1