Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2941745iog; Mon, 20 Jun 2022 07:58:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxuaBxvizbWLhvpdVwWqgaBNTqZ3VNj4KEdy1ZB7D8OMiQtwlTkkzM3lP2ReXt/40kva2i X-Received: by 2002:a05:6a00:18a7:b0:51b:c63f:1989 with SMTP id x39-20020a056a0018a700b0051bc63f1989mr25025091pfh.49.1655737096431; Mon, 20 Jun 2022 07:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655737096; cv=none; d=google.com; s=arc-20160816; b=mNwffgAfcyQ1tL+c/rX/3yQM5xpLXqmmjxiJoIId5x0/XWFk3ZbyTcpXiw7YJ/LSAP HqHDqpD+PHLzVY6+KCZ5VYpV0M57sAZWNmF0K50HpGQ+GN4DQz7j40miR5w6sSFRrTR7 /QPUBflTFVHur7gf1/q1q7vEd7JuIrc9mDthhKqIKHQeK7S+F1XX/BwPyW8mZ7z1zyTX 86xbFSWA1xaRBAywd8utcIXNgZ2gkPw+5FUVchDVacsTDNfSJ6fkCISoekpL25Nk7nVs iyNaiuD7JDWXJTXDEO6EyCxNNfsVKpZ8NPpiNBp4dIEGn74MDAzuD/QmUvGlqATiTGvn CP0Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Lih3pJ+xcO8mNEatKTtD68+O14FR+RKv15zfucNiLjE=; b=Bq74pOVcp+mPS/kUzp9l2BJseUBn+LzlNFkKHNJ5v/FTHUJhgxkHqUHCGTeRdyrF/H WgXfIXa1bou64NGyiDQ78JEk/y1TShT5kehXfKM6R2dU+F4+Xldw0A5GZaezT2/M1W9S 1nk04EOSCuRkChPdmJ1vk13QpjaSwQgBmgPuC/TJKuzAk0gkd8McHQ9RAciPFUTG5QNd d1A4GrvFzT1HnctKipUNRYmsCghfdqB1LOZM0ZWb1dVXhl7Iqx+2tZvouhOmjRxnQmdN 3traOGxuhEH33Fo0nbpZMFfGnGsah0GZteFKPHge9Isw7BShfUqLqCVimdmgBLM5KOLI YkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P5tQq3eB; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170903234900b0016382c70069si14540463plh.150.2022.06.20.07.58.02; Mon, 20 Jun 2022 07:58:16 -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=@linuxfoundation.org header.s=korg header.b=P5tQq3eB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245721AbiFTNMA (ORCPT + 99 others); Mon, 20 Jun 2022 09:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245636AbiFTNJR (ORCPT ); Mon, 20 Jun 2022 09:09:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 417092DB; Mon, 20 Jun 2022 06:03:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 177DAB811BF; Mon, 20 Jun 2022 13:01:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 521D4C3411B; Mon, 20 Jun 2022 13:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730099; bh=WfV5UKv776FqMnNvo9Wlw5GDgirC1sg9WoBQpTZM3NE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P5tQq3eBNjfr4EgGtzYjVgRm3+FLwfCO6TNwrAulZw9g1bwf0Si8wQHTfn6lk3l1B 8+nVVkFWNk3Sk/YVrdBNWW5m0CncgVmFYeJRtAD7cVkWotNVrYuboQhxa9vymv3j+i dea9M7Mi8b+veFkZkIuDNcGb5Y7xQuwYUFRFzpp8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Serge Semin , Andy Shevchenko , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 5.10 33/84] gpio: dwapb: Dont print error on -EPROBE_DEFER Date: Mon, 20 Jun 2022 14:50:56 +0200 Message-Id: <20220620124721.871931563@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124720.882450983@linuxfoundation.org> References: <20220620124720.882450983@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Serge Semin [ Upstream commit 77006f6edc0e0f58617eb25e53731f78641e820d ] Currently if the APB or Debounce clocks aren't yet ready to be requested the DW GPIO driver will correctly handle that by deferring the probe procedure, but the error is still printed to the system log. It needlessly pollutes the log since there was no real error but a request to postpone the clock request procedure since the clocks subsystem hasn't been fully initialized yet. Let's fix that by using the dev_err_probe method to print the APB/clock request error status. It will correctly handle the deferred probe situation and print the error if it actually happens. Signed-off-by: Serge Semin Reviewed-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpio-dwapb.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 4275c18a097a..ea2e2618b794 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -646,10 +646,9 @@ static int dwapb_get_clks(struct dwapb_gpio *gpio) gpio->clks[1].id = "db"; err = devm_clk_bulk_get_optional(gpio->dev, DWAPB_NR_CLOCKS, gpio->clks); - if (err) { - dev_err(gpio->dev, "Cannot get APB/Debounce clocks\n"); - return err; - } + if (err) + return dev_err_probe(gpio->dev, err, + "Cannot get APB/Debounce clocks\n"); err = clk_bulk_prepare_enable(DWAPB_NR_CLOCKS, gpio->clks); if (err) { -- 2.35.1