From patchwork Thu Nov 17 09:54:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frayer X-Patchwork-Id: 13046505 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 4B0DBC433FE for ; Thu, 17 Nov 2022 10:18:26 +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=uS2Ld4NonxoHWGx8hLMSgyzbLnp3wnN4mM3IhFh17wg=; b=HUd2onFDOKA7Pa SI6kDEh1uav/hm+Zd1qraliGUN+hBxT0x/TIwWj/qT3vDmd0m4pLJaSubL4CyYq4MTZeW6Lvmn42D SJe6aWMhb1HP+mXopKuM3eTGBnKQlxyw/OOt6/Y10sopeW27LSGiGHz32rPZ0Ok/CKVVoSJMQso/2 gwRoGh2zAb3zUhU9x1SvuQhxsxrBidaV+lYRzO/ukbCWU4t6L34lymtluPAX2gVlDsHhikb+ls9KY ZQadBZl1hnHq90iz6lCApdlO4inMf4K6gatzvcH/QrHk6wpwWzD4B53OFS+6ddatg+rN0di6NL0VK bUk0bUpSValxf33ynuFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbxE-00CTVg-Fj; Thu, 17 Nov 2022 10:17:09 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbbK-00CIjf-Qv for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 09:54:33 +0000 Received: by mail-wr1-x430.google.com with SMTP id j15so2335679wrq.3 for ; Thu, 17 Nov 2022 01:54:28 -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=oY8oYo0J2WCfjABGKVsTvkXLjzVmSdzWanTinZnS2yQ=; b=CNxJMfcYaLTqxRf8f8dPKq4eOgNemQipmzPq65IOpab5yzDrsRgh7fLSwmx0JeU+2M IjaYo8xje7qIPA4DTeniUaKKitHwLD8OBqeCHRCA2MFLTO4UKO3HFdMA6P7eDy7UUg4u 0V5tJLwBw2JT6IN4sk7X4ec9ucxmQ34ub/qjNa7jgJtr9nYhkttW5q0iRvb3XXh3bXdM Bo6pBvzMkv9hnqt15PPKB7gHJc4cwQOAYQI2J/lY5ZMsZrzawT5/TL1XoFLlRGdpo1XV 9IWI4KgD/1snoa8j3SVIdVSo6HaLr3OnRMegGAo5H26H6jtOC9LRqft9DZxCdoEuO8M8 fTaQ== 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=oY8oYo0J2WCfjABGKVsTvkXLjzVmSdzWanTinZnS2yQ=; b=5TwbilsVy4sl3FQLhL/tF+QDFKKxfh54JEUQCpvUBhJn9lJ++InbvbnU9NU7uxJjbm fTFsyTcokGmnwv+C7bEqZoo7Erb3zP2tD2DUoyAdSuq99u32ldFsUY3KwrYKXfAfjKha f6HWsrQ8+E/Y0CdcIPe96uBYbUw/G5SzjQ+LRqwRa6rPf3XsL+jBeJD1+k8+jvS8rrMc eqZ10jdlNQJW1YtYOzlTaDjVA8MBrQe8ky3tzMSsSUdbbnQqZe/PHyloHgq2z9GZ/IqN 00Zn9OlhB1imqZffDsfVsF/mNbLEW1aq0wZY2Er84E0+ffWDxx+fH5u/o22yFAIr65G3 ugFQ== X-Gm-Message-State: ANoB5pkPEou3NgnMKTjuwbyFItusgz9T3/G7UE8UPuIK9gHjASCVDQJR 4fIhul9+QOwUFCu3gdL1auSSTg== X-Google-Smtp-Source: AA0mqf6S0L3qmno4fvZJevVrOQJzy7nE/zgJMRoucaSwvKRt0OMNCZVcKOXPmahLQ+c+J5ARm5G9Ug== X-Received: by 2002:adf:e94c:0:b0:236:6d79:b312 with SMTP id m12-20020adfe94c000000b002366d79b312mr943646wrn.699.1668678867223; Thu, 17 Nov 2022 01:54:27 -0800 (PST) Received: from nicolas-Precision-3551.home ([2001:861:5180:dcc0:9287:74a3:4740:e7a0]) by smtp.gmail.com with ESMTPSA id v18-20020a5d6112000000b00236e834f050sm497021wrt.35.2022.11.17.01.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 01:54:26 -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 v6 0/2] soc: ti: k3-socinfo: Add module build support to the k3 socinfo driver Date: Thu, 17 Nov 2022 10:54:17 +0100 Message-Id: <20221117095419.171906-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-20221117_015431_144205_0F9A84C0 X-CRM114-Status: GOOD ( 11.80 ) 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 v5->v6: Add k3-socinfo to the subject Nicolas Frayer (2): soc: ti: k3-socinfo: Convert allocations to devm soc: ti: k3-socinfo: 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(-) Reviewed-by: Kevin Hilman