From patchwork Wed Nov 16 14:51:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frayer X-Patchwork-Id: 13045328 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27BB7C433FE for ; Wed, 16 Nov 2022 14:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=c78astMATOa0/pdS58uIXAlQTZX8aGXc4tnHc/3XfzA=; b=PTHPV7QiqH+35t ZKQb5DKtlgCYCpedowB6gvR1OrqTqgzTlnaaW+sRanLpdrYXuLcUUmhVQGNbVzX1/8ms4tht9vl+L WtxglzQjq+jnqg2I8k/r7jkoFoytMfiGL9v1OI7/8NDZUQx8YB8Fz+WZh3QUUXVWnSqCyIloOaH+d HdD6UD/dMxVXY0pxwE60zZ5hUycBe2PxYYrrUjpaVopMM/xNCWMem37wPuXM+0Bonmf8eE86ZHOzr MwG+SYzy6btRklhH/gaSLNNbrJeqmR/grkvwaGdYQxVZfX5rwkHmkgqLKjxvFWP759opQLpcLuQ+N 0kydDww+vybSAUFPsO4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovJl7-004m4a-KH; Wed, 16 Nov 2022 14:51:25 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovJl4-004m0z-Cl for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2022 14:51:24 +0000 Received: by mail-wr1-x431.google.com with SMTP id a14so30326359wru.5 for ; Wed, 16 Nov 2022 06:51:21 -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=ypWNmDEaWeWuRqCSCZcnZ4g+Xufg4hTPZzYQMsRk2nI=; b=XeISWKV7SOhRGH6DdiHyRtBpcYRw12w5Zb0poKvYNnWIAcKT4QCbYKg0NsWkgkXanZ X3lbc9IRd7k60blzUhARtZVmxepqdrY2x9cpIOoDD8oeIRGGatG0+WY8YABtOwFCwXRX 54FQiMBL4L/ms9KK0jtz5KiBg+JYq71XEKtSitgPwNrTX/ovut2IMeax49lyY0+yCQyO DkhNPGRlB+JzM9lsWHCUbXBpgSoOYmBvH+t+oTzHBsh8rgvBE9Jo9xbSSyZl8RRQzWRG comfhFeuuIwnC3dMyvY9FDxNtBkyzipxJrt06BEvvZnGaTHYZvsGwnKKgVTXRpWPRyiD 0bsg== 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=ypWNmDEaWeWuRqCSCZcnZ4g+Xufg4hTPZzYQMsRk2nI=; b=EsLKaqqRtdfVIsnDv5Bc5yszhDrdtcbsYsX4nTAhVYvMIhdPqxRs6KnYcFhpY2DqMh XvB9xe3Ald6M/EeMCHL7CnxF7coeoA5neD3lzB9gjS8jrENoROrv9L0lyJE/TuonKsZz crB0uLgtbDZnMc8RNpy7xm81IsNXykvmpWqesfdqBWA8IR2n9nzqrjB7HsxSPjRgA9P7 SnRK2bXB0uI8bIaXL9LsSpbypa6S7itdoBzPBH0O24Wpg/80ok9PjQo7VuBjalVTTtqN le1pZLFcHA5ZSQZpO7HgkzKLmoQtTOX7gG0wBykpcLRbWSrUPDowcPK5aW6wB95W/U4S NyOQ== X-Gm-Message-State: ANoB5pnhLpJagprpG/FOEKytPy7HmhBvrtds8OGwFudGWd7AnVV0FWsJ 7YOClL50sUEzXTJiWvkfN2IGUw== X-Google-Smtp-Source: AA0mqf5SxnDweVseR96Q9F3uj9J0fncsPkHDbQBVgv5tGAxpGPxpATuIBA7c+ptsc30GEwTaSjyZag== X-Received: by 2002:a5d:61cf:0:b0:236:6fd9:9efa with SMTP id q15-20020a5d61cf000000b002366fd99efamr13384850wrv.101.1668610279923; Wed, 16 Nov 2022 06:51:19 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:3f99:5293:49fd:9c5b]) by smtp.gmail.com with ESMTPSA id k21-20020a05600c1c9500b003cfa3a12660sm8641789wms.1.2022.11.16.06.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 06:51:19 -0800 (PST) From: Nicolas Frayer To: nm@ti.com, ssantosh@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: khilman@baylibre.com, glaroque@baylibre.com, nfrayer@baylibre.com Subject: [PATCH v5 0/2] soc: ti: Add module build support to the k3 socinfo driver Date: Wed, 16 Nov 2022 15:51:01 +0100 Message-Id: <20221116145103.26744-1-nfrayer@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_065122_461956_C6E78CFC X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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. v4->v5: Remove the k3 udma and mdio patches from this series and sent them individually Nicolas Frayer (2): soc: ti: Convert allocations to devm soc: ti: Add module build support arch/arm64/Kconfig.platforms | 1 - drivers/soc/ti/Kconfig | 3 ++- drivers/soc/ti/k3-socinfo.c | 47 +++++++++++++++++++++++------------- 3 files changed, 32 insertions(+), 19 deletions(-)