[v4,3/4] dmaengine: ti: k3-udma: Deferring probe when soc_device_match() returns NULL
Message ID | 20221108181144.433087-4-nfrayer@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2870517wru; Tue, 8 Nov 2022 10:16:38 -0800 (PST) X-Google-Smtp-Source: AMsMyM44dhqtrcAG4NpKsPCA5Hg6/NnL9J2lJR/Mzt+kkvLtvoiPI8cqIVx0KwEx+1NUunRSnVV9 X-Received: by 2002:a50:ee0a:0:b0:463:4055:9db4 with SMTP id g10-20020a50ee0a000000b0046340559db4mr51448584eds.421.1667931398564; Tue, 08 Nov 2022 10:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667931398; cv=none; d=google.com; s=arc-20160816; b=kNPUphv8kBHLj+iIM39NGGc44juMfHPdP2QVqxyWWH86skIQXga06dfB9YY/gG1XzY boxhzYLqMP8xb/8wN95pI0cxuviBM1G8bZVFPDFI+hi1j25j6/4zJlmFz0mYNPvTg17Q K+oA8VakeS65y0GDXma9vcyUYSHHnMRhO0uGFZX92W7LnTvDpCDIrbhrWRcCEfo+CtA7 oluo7jRVcitcT+k9R9wQmHP4/KiudbNC9YrbP6wfvE16kVXg2h00L0v12LWbzR94j97M eOopF8Oll8LpObXKR1Elzsapn498JBJj2PX93yYaiyZ/JeQflwsiJo2Iifb4AHBn8bDx ts8Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd7-20020a170907968700b007a45e4f4ff2si15448857ejc.853.2022.11.08.10.16.14; Tue, 08 Nov 2022 10:16:38 -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 <rfc822;tony84727@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Tue, 8 Nov 2022 10:12:01 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso12248992wme.5 for <linux-kernel@vger.kernel.org>; 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 <nfrayer@baylibre.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748952833939801449?= X-GMAIL-MSGID: =?utf-8?q?1748952833939801449?= |
Series |
soc: ti: Add module build support to the socinfo
|
|
Commit Message
Nicolas Frayer
Nov. 8, 2022, 6:11 p.m. UTC
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 <nfrayer@baylibre.com>
---
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;