Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4021926rwb; Tue, 8 Nov 2022 11:02:04 -0800 (PST) X-Google-Smtp-Source: AMsMyM6KFrerXmPtmJ+uEtnx42oTUJno3BgtSVVWDPiHfI5wR0rC73rQ7q6mQQ3dP87EY5eyMpjE X-Received: by 2002:a17:907:2c78:b0:7ad:8a7a:3749 with SMTP id ib24-20020a1709072c7800b007ad8a7a3749mr54561904ejc.55.1667934124207; Tue, 08 Nov 2022 11:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667934124; cv=none; d=google.com; s=arc-20160816; b=WXsFSoCLrZA/XNGimbjXFJV5wxO+1YX6bTMmsZVr7Z7z55Q/xdHWmsTg8oEFwQLOcC aQC30njcUQDE/h+BuSbRXEuLCsNGoeLYJ2uUGy/9XkSbUSW88mZTY+32HL47MkGZbQbK a6KJ8jbqtuLWwbcAshufc68dp+GwU/vA7EVzMhDWbDyfNuGjNArtfNQRRJodjdc0VX7f 5JIgFHJmQ9GW/mPfNwQrL28eduM9fm2xAv19S8bbzVJz34fEMdv+Ifq08cdT89JZh2cf aK92SDi5KjVCiI5P9ALA3bogmUOwY4KwipsmVr/gf14TNQ2bg7zKtecTpyquaMAB+axg 83zA== 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; bh=A8Nn7FR+ibB53QJL8o9ZqwbAccpQC4pR0InqfudyfLs=; b=NlHF+PEODWxpQ4GaMgREAha/4WlSojREx7FfEJm4T2DNwc/UFAHGycFt0eCHorP0VO j2YGF+ijFzxjgs2vzQt8AGERfmAt5UGrNXAvT1+8Oa39r/ap29OA5LO525Jef5pCmLap tDbhIT56lYZqtO/EXiJv9tjUBPqbiFjFjAi52/mTYeOw4AGTpHnXRn+6a7Hn0LGRPq4R eVSy4cXoV633dxCOHJtsKsFowHyJlDvpdKPU8G/aAY19SXg43JpkC4ONvbBeQ205yuA8 OkG1/BpVN1vawE2KTFdCut1dW2Wsog1sugauVERmNDNZN95zkyAh7v6gKCcSrhc/35MQ 0BSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=PBjnfDVm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz19-20020a170906bb1300b007addbdb9fbbsi12076612ejb.558.2022.11.08.11.01.37; Tue, 08 Nov 2022 11:02:04 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=PBjnfDVm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234431AbiKHSMS (ORCPT + 91 others); Tue, 8 Nov 2022 13:12:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234598AbiKHSME (ORCPT ); Tue, 8 Nov 2022 13:12:04 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE09554CC for ; Tue, 8 Nov 2022 10:12:01 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso12248992wme.5 for ; Tue, 08 Nov 2022 10:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A8Nn7FR+ibB53QJL8o9ZqwbAccpQC4pR0InqfudyfLs=; b=PBjnfDVmggCWMS+XYXPxAz5Am3hcRfWSxmYSECtzCK6iTX7uOwU6CzJYJDkLTML2+m Nv/WVSYdtAY0PKfDxZLJ/LXynJJafnY/stksKFozK4dbIM+iPhPoFwgJwG13aNwBBX3W wvsQ8fGLerysGOXIwc/Gzk2EiWgff6bEd6KWuBAHk0I2l27IkzR/5tsYnbstN66ETAjb HNZXvWvsbMoXfL1z+9BsFcMmvI7AERuBSoeDKZX7b/eGcXSfGiNxEF3UBU2T8Q/suGBr R6TPk5+ryEBj+RhpPICftHvxHnFt9ZzHi2D8pS2z3MQcI3Q5PlC3GjvHIARZZweq5lOx c+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A8Nn7FR+ibB53QJL8o9ZqwbAccpQC4pR0InqfudyfLs=; b=BJebIGTRIb6guDfAFQxRXCKkssQD9xgl9PmADosQKRP9UbfdbIYcUmYXeL3KqUuqju 2NdjT4xlYPcMcF7BM39FFBJPe/gePz6jOHxS/2LBZUxWdN5GcmNdTRGjjsXO7BOLaeWX gMPQfExRGZU+MLqLcr2ft+nyD93Q604VoetMDDHeab5V3sGfcAKP+4n+cRTxL+rG4ygx EKK0RuYEYHyZY1tPm7nXeTlSq0zVX+I28YBJclXsGgUc7G2eIX26OLSwjpph47db9jof lQPvw3Ib8OBW0ObzY8RIidQmqMKcNRKW8dxHR/bs0LoFwy5N9J375S/6T61q48P0fit8 NIJw== X-Gm-Message-State: ANoB5pnA2jYy0fPRv3FDwCFFnza185RVPKz4SpTkq7xcKwK7AwoiBFht P/7CzfFrZtiNBtRHvmxlHmqAZw== X-Received: by 2002:a05:600c:2d44:b0:3cf:aae0:8367 with SMTP id a4-20020a05600c2d4400b003cfaae08367mr8518017wmg.132.1667931119895; Tue, 08 Nov 2022 10:11:59 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:7d10:e9e8:fd9a:2f72]) by smtp.gmail.com with ESMTPSA id q12-20020a5d61cc000000b002238ea5750csm13037109wrv.72.2022.11.08.10.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 10:11:59 -0800 (PST) From: Nicolas Frayer To: nm@ti.com, ssantosh@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, peter.ujfalusi@gmail.com, vkoul@kernel.org, dmaengine@vger.kernel.org, grygorii.strashko@ti.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org Cc: khilman@baylibre.com, glaroque@baylibre.com, nfrayer@baylibre.com Subject: [PATCH v4 3/4] dmaengine: ti: k3-udma: Deferring probe when soc_device_match() returns NULL Date: Tue, 8 Nov 2022 19:11:43 +0100 Message-Id: <20221108181144.433087-4-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108181144.433087-1-nfrayer@baylibre.com> References: <20221108181144.433087-1-nfrayer@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 When the k3 socinfo driver is built as a module, there is a possibility that it will probe after the k3 udma driver and the later returns -ENODEV. By deferring the k3 udma probe we allow the k3 socinfo to probe and register the soc_device_attribute structure needed by the k3 udma driver. Signed-off-by: Nicolas Frayer --- drivers/dma/ti/k3-udma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 7b5081989b3d..a6bb5077900b 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -5285,7 +5285,7 @@ static int udma_probe(struct platform_device *pdev) soc = soc_device_match(k3_soc_devices); if (!soc) { dev_err(dev, "No compatible SoC found\n"); - return -ENODEV; + return -EPROBE_DEFER; } ud->soc_data = soc->data; -- 2.25.1