Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3607043pxb; Sun, 24 Oct 2021 06:34:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOZTY33E0YwxhysEU26Veej3ddQDG0TQUKKlR4RfXSEKas6/pOK2H44+RE9yIe2/58Ty7E X-Received: by 2002:a17:90a:b783:: with SMTP id m3mr28897244pjr.183.1635082491121; Sun, 24 Oct 2021 06:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635082491; cv=none; d=google.com; s=arc-20160816; b=FHIpY9j8iuvlhh8QfGmeMeDNM9NhdSspuDM4tWTYG+N+xiM8fsvtBy6CwNMdBjk25/ FYmUJ4cAtlNcw59uY10umyQKlBUCM+/nSYuHvBSvYcZ9XQpgzKgcFdrwaibq7WD6a0mQ rW/tZye6y6PNaFGWRLXfvPTXIsI/TD0ELUMYZh0JxWoKT2X8n5q+ulOAumtzqOfxH52p 0Lml+lCIX6I68U6aHuUtktseNL5D6HtjZrcaAfyZqPjbhEfTYCsnyvEwSI3CDP+Piu5D fMU+sQ5QUN7xrf2txbSNovD+bs5GEg1kTHUFFDLaGTojIL53008GW1/59LoIh3Iz0Aze w25w== 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=HIK+oBs/aRGxhchMLI4wI4uDRRw5QPJtNSu/6AfT09M=; b=ptBZboLO3lzy/Il7YKXnISjyKF1IdY/Z9ZPJ33GjhkU/P1aGXVipesNvgNhhuSvyhf aktiB4hBuSrMP+LeZCZ6DEEXc2yThkk5yKzvp3HXlTfXbNWMYbjq6SicADN+RJRfx5pf 9LhyntEuiaU0qkoMDk0iR3HCb9gJ8FpNNe88mZf+0crF/lrrwBvA6FnOU6LfDBoyHrvg ba8wcpE6XxG8IFFViroX7SMSOTU4g8CPydCFD6vhPGQvQQMNQ4bTqYqDI7hmH7pZqm/h lilEfQYy0o+43Hlt8lwinQQ/JXEPSBdpx8Jv4cF3tfYGwPObXPgzimqALP+wqKLZgTk5 A5xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xy2+1gH+; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si1710141pfv.35.2021.10.24.06.34.19; Sun, 24 Oct 2021 06:34:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xy2+1gH+; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S231285AbhJXNgE (ORCPT + 99 others); Sun, 24 Oct 2021 09:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbhJXNgE (ORCPT ); Sun, 24 Oct 2021 09:36:04 -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 C4247C061348 for ; Sun, 24 Oct 2021 06:33:43 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id v2-20020a05683018c200b0054e3acddd91so8551247ote.8 for ; Sun, 24 Oct 2021 06:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HIK+oBs/aRGxhchMLI4wI4uDRRw5QPJtNSu/6AfT09M=; b=Xy2+1gH+z2WauJnJbFCbfsGQOf0niJt31JbdZbGIju5V5nPlf4TKzA14wiS1PbAJU0 Jp4YQgDyQAmvcayNupUkemnS5Kn5Pkv/EXifpAfTM//j6hq3/FxpIcCGSiUsIpaRN5gG pQMrNnGNNpcR1Rl8hweAFk1RjMoKVKd7k7/isTKF08eSzHx9i0pP2NxviX6Rx6rl29kj 02ZQvy/1w2ODTa7EOcfJW3AnjQxObhvWysg5U4EGB4gRt2FbHwDG5pwPPEBhNSj0o/b2 1kE8N9+OHFjcrD8P1+S+cCHYUHPKuv5HgWXZD6OMV8Zol2PvfizdVHmefJBfAXHKB/52 Xw7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HIK+oBs/aRGxhchMLI4wI4uDRRw5QPJtNSu/6AfT09M=; b=wsf0WVRi4MnBxfiAXz5fl0ekBj7Yd/FsmDx/QIJlplwHdinHZU8j5JnCw6Q/4sQbPX EPPmWwEj+eeS6gVmlfmLyl73gAgxrzgWIIQNEQavQ2VQCdM/9crM/Qi4S+NirVtbMqf9 mw+Gq7Cki2sV2aCggI+fGGQJSrJNhuNwj/1/4DUIFtxiBqJ3xgwhAwPXG2OrrfGcA7j1 6F038u+1s9CLUmua0l2g7coOHiRZYkPkQysYE475GHuxscT0RnHCiSN4tEqPAGCg3MQz fJ4+sUASXFEwkeWth5291XyK3HyWRM6uaTfHskhmsxenWz0m6itIACiA36ch4ekZPIcz yXgw== X-Gm-Message-State: AOAM5320vQ9CDORsvJrc7MoXYLx22KhnnB00RSutE3tTZJiWgzSLNY0v H92Jv/s8fMLuXuJG6QAQ6qltKVIIG3YEWqoGG5RbMA== X-Received: by 2002:a9d:26:: with SMTP id 35mr8926991ota.379.1635082422960; Sun, 24 Oct 2021 06:33:42 -0700 (PDT) MIME-Version: 1.0 References: <20211013105541.68045-1-bhupesh.sharma@linaro.org> <20211013105541.68045-18-bhupesh.sharma@linaro.org> <2699de22-4943-685f-5700-82137a4326ae@linaro.org> In-Reply-To: <2699de22-4943-685f-5700-82137a4326ae@linaro.org> From: Bhupesh Sharma Date: Sun, 24 Oct 2021 19:03:31 +0530 Message-ID: Subject: Re: [PATCH v4 17/20] crypto: qce: Print a failure msg in case probe() fails To: Vladimir Zapolskiy Cc: MSM , linux-crypto@vger.kernel.org, bhupesh.linux@gmail.com, Linux Kernel Mailing List , devicetree , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Bjorn Andersson , Thara Gopinath Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Vladimir, On Thu, 14 Oct 2021 at 00:56, Vladimir Zapolskiy wrote: > > Hi Bhupesh, > > On 10/13/21 1:55 PM, Bhupesh Sharma wrote: > > Print a failure message (dev_err) in case the qcom qce crypto > > driver probe() fails. > > > > Cc: Bjorn Andersson > > Cc: Rob Herring > > Reviewed-by: Thara Gopinath > > Signed-off-by: Bhupesh Sharma > > --- > > drivers/crypto/qce/core.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c > > index 576c416461f9..cb8c77709e1e 100644 > > --- a/drivers/crypto/qce/core.c > > +++ b/drivers/crypto/qce/core.c > > @@ -281,6 +281,8 @@ static int qce_crypto_probe(struct platform_device *pdev) > > icc_set_bw(qce->mem_path, 0, 0); > > err_mem_path_put: > > icc_put(qce->mem_path); > > + > > + dev_err(dev, "%s failed : %d\n", __func__, ret); > > return ret; > > } > > > > As for me the rationale of this change is quite non-obvious, a user is well > informed, if a driver probe fails. I would rather ask you to consider to > drop this change. Normally, when a driver probe fails, the kernel logging system does pretty well to hold logs for the same and these can be referred to later for debugging. However with crypto tests on arm machines, since the arm crypto interfaces are also normally enabled by default, so boot-on crypto tests (enabled via CRYPTO_MANAGER_EXTRA_TESTS), which normally take place at algorithm registration, it's sometimes difficult to check the qce driver probe errors / failures, in case the board hangs or reboots while running the boot-on crypto tests. In such a case, if qce crypto driver probe fails, it is useful to see a failure message on the serial console itself. Regards, Bhupesh