Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4033895rwb; Tue, 8 Nov 2022 11:09:59 -0800 (PST) X-Google-Smtp-Source: AMsMyM4Qyoa3cY0h1fGaLUiAGJa7DNbUWqKH9K1IfLD+WMesq1W9vRzC+YUXrbiCw2VIHRP2r/L+ X-Received: by 2002:a17:907:7203:b0:7a5:b062:2338 with SMTP id dr3-20020a170907720300b007a5b0622338mr55614349ejc.8.1667934599218; Tue, 08 Nov 2022 11:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667934599; cv=none; d=google.com; s=arc-20160816; b=LBraBsifeVXgTdfwoKxAOVJuRa8AW/mU56JXKMVfuvvwpmBlTNZBrfGU09DCmnY9pS rwuWJPmEUOrP/Z7eZbWEHNBceNIeGemS7eAZZCGK39lleyfGiVh+9q8a5JXsmTfh0WQ4 7M0crTWwe+d1SC3hlEnmLPuPPQz2OG5EHNVCZufBsQzTaj9U9TupriLVP3QHvIXorgJr 8IAvbKhqAjOn99E9vz4hWratg+v16PBvmbePsHh/7Skb6ecoqpsz0iHW4O7rDzX5LppQ uGAQFWgzyP5TZE/8DJ5HJEfdMmip/lPV+0aYdyk7Lkl9w5wz2HMi0qQ8dOS0NvhLTRQ6 qxwQ== 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=WLjAfgXrY6iJ/scApshW4hQNZQBkL3nMQTzPyRA/Obo=; b=o0gsT+3Z99ws1L08xZGJUSBR5hWzFYOZRASO/gW9xvx3jSbfgQn25GwgG7DF6IFijG HZjFtdAnTJ9njlxtn9NvkpiHBdfdmmfnt+CTewDsf/CTQSMf+BNdNsKBF7qVzLDe27c+ uM6RIH1sTpw0OhFZDEX+ixKJnaK0pVXVRH48xmJJuNfY3wsslAJ/dIyC4qkwDWm4SOG4 3FoD7RreC6+HSNXifkKXtZcuZN84BBWUYyZ3lZ+XjQ69Q/1QxrElqI4r7h5iruAjwPvv LDlJg9dfYfOgtsv4kV/5YaUG/BxE4BMPLwBjILdhJ9WE4Msv8z5D+tvwoz8S0yb6sOGH U8eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wdkxgsgV; 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 sh13-20020a1709076e8d00b0078c0c866a18si14753564ejc.19.2022.11.08.11.09.36; Tue, 08 Nov 2022 11:09:59 -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=wdkxgsgV; 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 S234343AbiKHSMJ (ORCPT + 91 others); Tue, 8 Nov 2022 13:12:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234183AbiKHSMA (ORCPT ); Tue, 8 Nov 2022 13:12:00 -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 9113C56553 for ; Tue, 8 Nov 2022 10:11:58 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso8073107wms.4 for ; Tue, 08 Nov 2022 10:11:58 -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=WLjAfgXrY6iJ/scApshW4hQNZQBkL3nMQTzPyRA/Obo=; b=wdkxgsgVnJdyizPXCxIkbwj0180QnsDpzSBH3moSDjBmmto1uZ54uGEjCnVLtq6hd+ PDPOlTNjFcRBBnBGhYHgT13X5jR27y8NixF1yl835kEjduAQaEvvtrLudrICkjNYHJvV yQ4y/zvOUNwBtKPHB2hZ+c/bmXacipZdAD0HPaSLLC162zd2Lo0i6kUGBOHAKdApjNT4 kyyFyJfP47zZPMsGHnUDz583NoEG/9mKzErUsNRU6n6Ys27kyX8iBJhTS1D/hT4jAods bT+TVFgX92+b5HTh4PD/koX0t73B9ako+lytupbYOhlzGX8E6Wlvp2kunie2mbcgvxPi KTcA== 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=WLjAfgXrY6iJ/scApshW4hQNZQBkL3nMQTzPyRA/Obo=; b=WgNSpZxB6II3c2mDsxt/hL34wyrVj4s5M0p2sv6z7pqSJsFi618PlqiH58u61I8z3K igLONrpGzkNsN/qa/DZlXVB3bBS6A8qCelqStzgXnsykqfDtx5tyejGWv05TgtB/Kxpf FIP75CkOirSFgP5DF0F18EaGfoQKPGjEkmgQA1f0f95KqLuV8M2+NTeZ7hsXsTgVv6Un O1SgUaUlcp2mfJCQ8Fhi8T4cKHm1ds9KV3ppts33I8WaJK3AuDPFvFXnhIs+M2rseZjE VcIPckMcsIGKhrVG7u07XZRvusyBLISjDPifY4u+YbDs/CrJRqZrl+zRSrhQ1okAbJpW DRCA== X-Gm-Message-State: ACrzQf06jbLkoxF5tFgodLRp+4SuQws9Ith0sZN8ab4K7yCiMWMUgSKn ruxHdY+JLw2TgDEW7Xm3W5BPBA== X-Received: by 2002:a05:600c:354f:b0:3cf:4c20:584b with SMTP id i15-20020a05600c354f00b003cf4c20584bmr47536057wmq.58.1667931117025; Tue, 08 Nov 2022 10:11:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 10:11:56 -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 0/4] soc: ti: Add module build support to the socinfo Date: Tue, 8 Nov 2022 19:11:40 +0100 Message-Id: <20221108181144.433087-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=unavailable 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 In order for the TI K3 SoC info driver to be built as a module, the following changes have been made: - Converted memory allocations to devm and added the remove callback - Added necessary code to build the driver as a module - UDMA: Added deferred probe when soc_device_match() fails because the socinfo driver is built as a module and hasn't probed yet - MDIO: Same as the UDMA driver, return deferred probe if soc_device_match() returns null v2->v3: dropped module conversion part of this series while other driver dependencies on socinfo are worked out. A dependency issue is introduced by changing subsys_initcall() to module_platform_driver(). Some drivers using the socinfo information probe before the socinfo driver itself and it makes their probe fail. v3->v4: reintegrated the module build support and added patches for udma and mdio drivers to allow for deferred probe if socinfo hasn't probed yet. Nicolas Frayer (4): soc: ti: Convert allocations to devm soc: ti: Add module build support dmaengine: ti: k3-udma: Deferring probe when soc_device_match() returns NULL net: ethernet: ti: davinci_mdio: Deferring probe when soc_device_match() returns NULL arch/arm64/Kconfig.platforms | 1 - drivers/dma/ti/k3-udma.c | 2 +- drivers/net/ethernet/ti/davinci_mdio.c | 4 +++ drivers/soc/ti/Kconfig | 3 +- drivers/soc/ti/k3-socinfo.c | 47 ++++++++++++++++---------- 5 files changed, 37 insertions(+), 20 deletions(-) -- 2.25.1