Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2846252rwa; Mon, 22 Aug 2022 15:13:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JNm0ioV5LeBV5z+UrTKSlWbP2hcr5UP9IbTKvPfuJWza0pflE4N5+QcwQnlu8yEaSiipr X-Received: by 2002:a63:f0e:0:b0:429:54d7:238 with SMTP id e14-20020a630f0e000000b0042954d70238mr18231184pgl.620.1661206412612; Mon, 22 Aug 2022 15:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661206412; cv=none; d=google.com; s=arc-20160816; b=aOOrLBubsS7bWh6y3lz3IFu9C1LNqy8na7Cz3D6CyZa16cG9l9eKf+46kxtxLIMYIZ TVS3+6twPwwDdAvxdfNitQTKWjqJxqgnhm3IKADPjdTOelmBEKxbvKgmj4UwsvHLq6qf Dj0rSQju1FCpKDt0VdeDGSveCIu/CzsNNkdDId/CdgHyjd9anh+FYxBO0C4nzMB6VwWs 5rpcD5uT496gkAM05p55g1AQcx0Efr7oReU7R/uyaSlLqKEMRnvD8CALBb97jaGa+s4v bcwud6UureHSC3RWWU+9Udf+sSDteIs/LkOdiGQUy9171lBK4ONi67AsmtyjB9uW3wtC TnGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sxi9ytifq3/mVWcX0hMlbgf9nV334o7a7Q5oIkk527I=; b=Cgc9XgsUBrRcFid7h6xkB+JM0xNIvhU+GADFRHxVUZ9BIXjYET1voDEBdAQUREfSQZ LBWPzi4TFv4YBUN/p5B8GvH31S/+/X2qPOC+QCrf0RWK5Nl0HRIvnLhGg0UMnv0m/fX8 UXxlFpSqugXayNB7OYO1dbv0mlROMzNb66uwMqPgrZ/VKZxwxreXTMsZL2VVrS1MSmrB b3P+fS51YdQJWPR9BzvolKm7dLhvkNynPSZ1lZXs1Ca+KzdbjHiRhGcN+YAHEi5Qp1+i GiZMvZu3BC2mbRbcY+AR5lyIvlSa7JWed7/z1iLJDLrmYWpQXZ4EzXo8fjXrYKhdSEmR P7Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GKo2haEY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 190-20020a6308c7000000b004225a5cfae4si13726101pgi.702.2022.08.22.15.13.19; Mon, 22 Aug 2022 15:13:32 -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=@gmail.com header.s=20210112 header.b=GKo2haEY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237609AbiHVVj0 (ORCPT + 99 others); Mon, 22 Aug 2022 17:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231788AbiHVVjY (ORCPT ); Mon, 22 Aug 2022 17:39:24 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098F85140C; Mon, 22 Aug 2022 14:39:23 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id cb8so9045126qtb.0; Mon, 22 Aug 2022 14:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=sxi9ytifq3/mVWcX0hMlbgf9nV334o7a7Q5oIkk527I=; b=GKo2haEYD7YEnDqw24uLXOendXqM/c8mpfO1Vgt04VLwRGGpsP4jH7PsI4kawVDTCU 3vtY7byYY9/39rk/ISdKeK/2i+Y9ZVoY9gWJFfwkFL/qhhzCj7EUZI7La6EUp4Mhwb4T gYR3sLoxAMpttUjtod9GP2znRxOw9iw5yqSG0gLpftBd7a0EeiwfktqaeEwJWePPuAvj BjovEFRmHnEDQP5W6KekQDuPKL3OE54+hpt2ZkDQvC6+3IYmqHpHOPQrR6kNLg1HwV/A w8x+/npsuSO4ZK4IGztR6eMaPhTjKRmrH/TwF/Lw7gEGNILYuPJM/geNj5k72hgQtfvq uMdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=sxi9ytifq3/mVWcX0hMlbgf9nV334o7a7Q5oIkk527I=; b=kjCK4MGJmr3J+EiVRe0G4VUB9tnBfiA9ZAezWPIm65slSBZS93oKQlLjkmockLRDaf /i9GpnZFK7PwuNLe86b8k7lfhngRmA6V7OGG3Tko+iqG34Drq7POtg3eXg7VA+YF6Xow mXhjjus/Xe6xfPnVRM0EAn2mjbWw1wiBBLyphTkZ20ciffDBDcarPObMKutJmhMVlvnV q7hDBFps8mtPgREMkvLEDX7+ocIHaVPwyqXoPyoKb+38SbBnSI7GeuHjS/ppdBwKoRMN U6H8ttT3zWuqU143RRcyFFpf4uHlY295LmkeZhLaxRcEIrrWv7E63n9SOlswc0ByiWYk llIQ== X-Gm-Message-State: ACgBeo1Sh51YRn3xw3mgLLWOWmzxzv1d3N9wWDH501TVuCeWx6yqnLcI oDNAt1fWe+kqcDluBhuxcKrrvAqm/0aPTpRP7Tk= X-Received: by 2002:ac8:5786:0:b0:343:3051:170d with SMTP id v6-20020ac85786000000b003433051170dmr16913009qta.429.1661204362041; Mon, 22 Aug 2022 14:39:22 -0700 (PDT) MIME-Version: 1.0 References: <20220822181853.23063-1-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220822181853.23063-1-Sergey.Semin@baikalelectronics.ru> From: Andy Shevchenko Date: Tue, 23 Aug 2022 00:38:45 +0300 Message-ID: Subject: Re: [PATCH] spi: dw: Add deferred controller registration support To: Serge Semin Cc: Serge Semin , Mark Brown , Alexey Malahov , Pavel Parkhomenko , Andy Shevchenko , linux-spi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Mon, Aug 22, 2022 at 9:19 PM Serge Semin wrote: > > It's pretty possible to have the spi_register_controller() method > returning -EPROBE_DEFER status in case, for instance, if the GPIOs used > for the CS implementation aren't ready to be requested due to the > corresponding platform devices still pending to be probed. Let's make sure > the DW SSI driver won't print error message in that case by calling the > dev_err_probe() function if the SPI-registration procedure exited with > a non-zero status. Shouldn't there be a Fixes tag? Reviewed-by: Andy Shevchenko > Signed-off-by: Serge Semin > --- > drivers/spi/spi-dw-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-dw-core.c b/drivers/spi/spi-dw-core.c > index f87d97ccd2d6..99edddf9958b 100644 > --- a/drivers/spi/spi-dw-core.c > +++ b/drivers/spi/spi-dw-core.c > @@ -955,7 +955,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) > > ret = spi_register_controller(master); > if (ret) { > - dev_err(&master->dev, "problem registering spi master\n"); > + dev_err_probe(dev, ret, "problem registering spi master\n"); > goto err_dma_exit; > } > > -- > 2.35.1 > -- With Best Regards, Andy Shevchenko