From patchwork Mon Apr 4 09:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 12800070 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 20C6DC433F5 for ; Mon, 4 Apr 2022 09:58:35 +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=1NBwcJ/rDYz5lbgc1CZGAbKAvZqd4gOYpzjx4DbawXc=; b=YNGwEtyF4Ru57E CLxp+hYaTEzB/HMtSfm15S4KppAHJIW9LAhLE8mj7ZJFtjWhSGFl3ot1awOkGn8gIrOKBt3i5jVpC NpcRD0ktiglnLT3EC9/sl5cd/A/88Td3YTqwhYl6sQT7w4rKI3yjVYZk2hYBFDLEfW2I3eaLMd5OX zaOf4UH4cWmzXS3RM54AJ1YLWLM2RDhOv/prpBcbN7zjjC9BIbCy0QUv7uGvbHVocE7mAKGwha5wK 3RW4I6705UZ/bOWhcQd8IQI1trBM3tDbTmLf/9tkC3x8fCpsUb1h6nU1+LFPVryTs0DxoWR/LMe0m qB5r2UaI6xQKPKhwTdWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbJSl-00EJKK-NO; Mon, 04 Apr 2022 09:57:31 +0000 Received: from ssl.serverraum.org ([176.9.125.105]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbJSi-00EJIU-9R for linux-arm-kernel@lists.infradead.org; Mon, 04 Apr 2022 09:57:29 +0000 Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 53AEF22246; Mon, 4 Apr 2022 11:57:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649066242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3iRgRdpMfTlBKZhAJTpWmM2V3NADCY9wGlscim215TA=; b=cGHy11kgijULBG1tfZNUBvl3TNAy3fNEkBGExX8CUxTujlifgYDEmQlQdsVAdWsxe7WiQv rGoDPkC2B5Rs3E1xHdm9XRkDvnCex4wu/oQm/cwNwhxD0kQ6tw4x6iLrDpMno4QGp/H4FD GaMH629/DTA+srZq5fLO4HgV0X/4ijA= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shawn Guo , Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Dan Carpenter , Michael Walle Subject: [PATCH RESEND v2 0/7] soc: fsl: guts: cleanups and serial_number support Date: Mon, 4 Apr 2022 11:56:02 +0200 Message-Id: <20220404095609.3932782-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220404_025728_514835_C7AE4CFB X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. 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 [Resend because of new development cycle. Shawn, can this series get through your tree? Sorry you weren't on CC on the former submissions.] This series converts the guts driver from a platform driver to just an core_initcall. The driver itself cannot (or rather should never) be unloaded because others depends on detecting the current SoC revision to apply chip errata. Other SoC drivers do it the same way. Overall I got rid of all the global static variables. The last patch finally adds unique id support to the guts driver. DT binding can be found at: Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml changes since v1: - call kfree() in error case, thanks Dan - add missing of_node_put(np), thanks Dan Michael Walle (7): soc: fsl: guts: machine variable might be unset soc: fsl: guts: remove module_exit() and fsl_guts_remove() soc: fsl: guts: embed fsl_guts_get_svr() in probe() soc: fsl: guts: allocate soc_dev_attr on the heap soc: fsl: guts: use of_root instead of own reference soc: fsl: guts: drop platform driver soc: fsl: guts: add serial_number support drivers/soc/fsl/guts.c | 219 ++++++++++++++++++++++------------------- 1 file changed, 118 insertions(+), 101 deletions(-)