Message ID | 20221108181144.433087-1-nfrayer@baylibre.com |
---|---|
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 l7csp2869734wru; Tue, 8 Nov 2022 10:15:13 -0800 (PST) X-Google-Smtp-Source: AMsMyM5ml7wmhKQDxoYbWtBIVN+k1C1C3q0jU4HR4NeWiDeo2rA1EYqiRgBeHnMDLt4tEscNu3FG X-Received: by 2002:a05:6a00:1822:b0:56b:f29d:cca1 with SMTP id y34-20020a056a00182200b0056bf29dcca1mr58092607pfa.65.1667931312762; Tue, 08 Nov 2022 10:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667931312; cv=none; d=google.com; s=arc-20160816; b=iBQ2rti/0TkafIn9b7RG5HGpeYPwOEpp6rmjDF1zHhF1pgYOoK70PfSLaIgwzDXzxw 2u2gJdASQMAMFh/cB3OXDnS05xftThMUSwLwQPZxZHSgX97IiZ+8kub2Orsal3qFLfVg zFbLnld6+lYpcq1JaBhfNj4NQfZ0oKEd/PNajcThJFPtPGVl1VyVvTmf3fg4gMUxj1i6 M7cQT0nCloa1WSfzJJtU/lGRxqOyNpdYb435Wg8dnmw3F4pesIRJtK81FAyhb+f/RPhq uhXhNpMXXNKDV5LMk7xulDJFsXB6EOlKok0+2O0jUCRTlVFsnb/PkJ67oBfZmwymqHx+ 4obA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a631551000000b0046fc4647b7dsi17191813pgv.308.2022.11.08.10.14.59; Tue, 08 Nov 2022 10:15:12 -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 <rfc822;tony84727@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Tue, 8 Nov 2022 10:11:58 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso8073107wms.4 for <linux-kernel@vger.kernel.org>; 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 <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 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: <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?1748952744461333711?= X-GMAIL-MSGID: =?utf-8?q?1748952744461333711?= |
Series |
soc: ti: Add module build support to the socinfo
|
|
Message
Nicolas Frayer
Nov. 8, 2022, 6:11 p.m. UTC
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(-)