Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp662722rwb; Wed, 16 Nov 2022 06:10:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dcFjZ7Z5cVdC8PjH0jb/BRaODuYk1bWvr40NLUykLBQxlhEnUWug25wAas1YOPSe8agNt X-Received: by 2002:a63:d156:0:b0:46e:beb0:9d2c with SMTP id c22-20020a63d156000000b0046ebeb09d2cmr21284142pgj.117.1668607838300; Wed, 16 Nov 2022 06:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668607838; cv=none; d=google.com; s=arc-20160816; b=xg4IdjewqRXaOTHfaANqxCrG5ESL6evcU7BqR3i6CNhsrT/+tUUrGhLHIrtCXaK99E H/VLgJBNSBkrfVHOG6pJrcRtcFilX9KccGXp2jplKYLR1x7++jHN/Y+3I4wEwRFwOrEP 17lQK/ORPpJ4GJLPd7/NhZzv2vEnmE/nNRo5DYLinjw0YYsyT8gDiNBCodS1wpX6vtXs U5nwss59m0WEi2XuDN0mBJd1TVtCh9QFtqLBHy+dXbZJ5DD1ipuZ7EnlQGtkI6CJM0z4 Ja9i5pJjqLf4Dmq1+9fvT4Ff3GpLEMPwlQacIv5VonwkWA3MAjy9hbvwJwH2otH/Ec8y I6wA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zy34VNtqLWyXgm9jc9aJMnFAO1X6qZS3sO7xNHOGNqM=; b=fW7HjIgu2mbgJaJ1/fN5lpIBtsfZ6uZ+WCQaiAs8gRqx4l7lhHDNCLavrbSutoO+H6 7gYFXabTlJwgw3+8Z+3FG11hmDIwxlc/Sm7n+7JcyW1dmvaYJi4ca4Fu/u5QqLv6O0Ye wK5XeJyqTRNbT2mUMbkbS/Q51EapXMD471BDniltzk42QyeEnfbH2bIab4XF++nQRP+u sU+ApPBaD3AuTSqc+T0Gt3ZNnD/sz+mYjev4p0kJoX4X0bhYuI19zCQv+f9Bb7aVt/9A d5TFKsPPNI5s8Edn73bhMWhazWulZSQECkQRt0W5qOyMwi1YcBs+DQuImThKCqzUDNlP kmbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=mHWMGtVF; 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 144-20020a630296000000b0045ec918ad31si15611146pgc.544.2022.11.16.06.10.20; Wed, 16 Nov 2022 06:10: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=mHWMGtVF; 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 S234084AbiKPOI1 (ORCPT + 92 others); Wed, 16 Nov 2022 09:08:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbiKPOH7 (ORCPT ); Wed, 16 Nov 2022 09:07:59 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257A5E73 for ; Wed, 16 Nov 2022 06:07:27 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id h9so30122056wrt.0 for ; Wed, 16 Nov 2022 06:07:27 -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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zy34VNtqLWyXgm9jc9aJMnFAO1X6qZS3sO7xNHOGNqM=; b=mHWMGtVFaMalslGQZnxoS9k8rJyaVZqFIBCUV7DCDIOCwpo9A1dOFQF7cJkiSPsIby KTNNJpDaM0oe5sk3da8Cw0IkXG0i/NaQLLv9/qxP0/QvnAOeEEyEXA6NzJD2CW5mKei8 +T1S3hCTJYFbtWMGyDDKOvnALXoVUMiEcMD6eWbwKS7ZqFWjRdB6ytRv9L0tV0zNcBzJ YPJ4mva+UIEf4vgNqFj0xjIh9EyduelsCE0KGRDr+KVc2i9B0L3ROiOhJhmjsMOX4B52 W+9QA/luFjShT8ov6UK+M/zFLjax9x1Wz9VASxADqv/tOBGfjWL7bFOB4pLO+gP/uJhu zeDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zy34VNtqLWyXgm9jc9aJMnFAO1X6qZS3sO7xNHOGNqM=; b=yaKmuQZnheghgicXRkGynhQsWd7MOTrrpamKAMK6i/Ea+3hvKOgF/L/w2UR0OdNq5k g502r5W4oiQMPAwBGMNGy8lOmYJoJYcusr/BgoTurO554/YKjGcM+XRUP5I9fpP3VHhb eUL16MFHEpS/6Whke1BmroMudFqQvd7nJtC0XbDwHcWNUfqTLt/4lCQ4Rhm5PcoGsP54 uUVvSHvxgaNuroFvNly6R+kYXORO9CKpKVSQh9IqwqG0jNCDBC+rQnoL+xeODQurhEqj 5xjb2tpFSsqP+57qhB675qg53B+c4Wk1H0EV5xaS+nDkZPt3xHkoZlZgzj7xU2N8xCiM YtzA== X-Gm-Message-State: ANoB5pl6uVjNI8TyWVc+uwua17gip/mbSJkYLaeEcKujAMipIgb1Gl4T /k7FwKVjpBOC6OdKQeEwJSI9DA== X-Received: by 2002:adf:ba85:0:b0:22e:3336:1509 with SMTP id p5-20020adfba85000000b0022e33361509mr14634369wrg.710.1668607645686; Wed, 16 Nov 2022 06:07:25 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:3f99:5293:49fd:9c5b]) by smtp.gmail.com with ESMTPSA id j17-20020a5d6191000000b0023657e1b980sm15333850wru.53.2022.11.16.06.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 06:07:25 -0800 (PST) From: Nicolas Frayer To: peter.ujfalusi@gmail.com, vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: khilman@baylibre.com, glaroque@baylibre.com, nfrayer@baylibre.com Subject: [PATCH v2] dmaengine: ti: k3-udma: Deferring probe when soc_device_match() returns NULL Date: Wed, 16 Nov 2022 15:07:12 +0100 Message-Id: <20221116140712.24283-1-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 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 --- v1->v2: Extracted this patch from the following series: https://lore.kernel.org/all/20221108181144.433087-1-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; -- 2.25.1