lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 19 Apr 2021 12:27:21 +0800
From:   "Alice Guo (OSS)" <alice.guo@....nxp.com>
To:     gregkh@...uxfoundation.org, rafael@...nel.org,
        horia.geanta@....com, aymen.sghaier@....com,
        herbert@...dor.apana.org.au, davem@...emloft.net, tony@...mide.com,
        geert+renesas@...der.be, mturquette@...libre.com, sboyd@...nel.org,
        vkoul@...nel.org, peter.ujfalusi@...il.com, a.hajda@...sung.com,
        narmstrong@...libre.com, robert.foss@...aro.org, airlied@...ux.ie,
        daniel@...ll.ch, khilman@...libre.com, tomba@...nel.org,
        jyri.sarha@....fi, joro@...tes.org, will@...nel.org,
        mchehab@...nel.org, ulf.hansson@...aro.org,
        adrian.hunter@...el.com, kishon@...com, kuba@...nel.org,
        linus.walleij@...aro.org, Roy.Pledge@....com, leoyang.li@....com,
        ssantosh@...nel.org, matthias.bgg@...il.com, edubezval@...il.com,
        j-keerthy@...com, balbi@...nel.org, linux@...sktech.co.nz,
        stern@...land.harvard.edu, wim@...ux-watchdog.org,
        linux@...ck-us.net
Cc:     linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org,
        linux-omap@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
        linux-clk@...r.kernel.org, dmaengine@...r.kernel.org,
        dri-devel@...ts.freedesktop.org, linux-amlogic@...ts.infradead.org,
        linux-arm-kernel@...ts.infradead.org,
        iommu@...ts.linux-foundation.org, linux-media@...r.kernel.org,
        linux-mmc@...r.kernel.org, netdev@...r.kernel.org,
        linux-phy@...ts.infradead.org, linux-gpio@...r.kernel.org,
        linuxppc-dev@...ts.ozlabs.org, linux-staging@...ts.linux.dev,
        linux-mediatek@...ts.infradead.org, linux-pm@...r.kernel.org,
        linux-usb@...r.kernel.org, linux-watchdog@...r.kernel.org
Subject: [RFC v1 PATCH 2/3] caam: add defer probe when the caam driver cannot identify SoC

From: Alice Guo <alice.guo@....com>

When imx8_soc_info_driver uses module_platform_driver() to regitser
itself, the caam driver cannot identify the SoC in the machine because
the SoC driver is probed later, so that add return -EPROBE_DEFER.

Signed-off-by: Alice Guo <alice.guo@....com>
---
 drivers/crypto/caam/ctrl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index ca0361b2dbb0..d08f8cc4131f 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -635,6 +635,9 @@ static int caam_probe(struct platform_device *pdev)
 	nprop = pdev->dev.of_node;
 
 	imx_soc_match = soc_device_match(caam_imx_soc_table);
+	if (IS_ERR(imx_soc_match))
+		return PTR_ERR(imx_soc_match);
+
 	caam_imx = (bool)imx_soc_match;
 
 	if (imx_soc_match) {
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ