Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3470624pxb; Mon, 4 Apr 2022 18:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtmtrxMRML/1VJd166/byKLojgYcO3ujf8D/ax9LTTLmpu0a5qjU/iAjI0ci9W25az7POY X-Received: by 2002:a17:90b:3908:b0:1c7:7a14:2083 with SMTP id ob8-20020a17090b390800b001c77a142083mr1143544pjb.230.1649120468472; Mon, 04 Apr 2022 18:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120468; cv=none; d=google.com; s=arc-20160816; b=M70tWPrmwc+bfY0teKua8bDb/66nwSve7DcJvtey/r97Qg4E4/kmXHVu+6/nWkDDGE 9WjQ/T0Q0imjswGsqwN2ssTA9moeAYHNTnhZodXbC2brC195hbsJj5n/ke689vGzOifo gsmk790gMpe5HyLy0hkM3p6TeyLPndSXlic/SOFQQBtFObmM95Rj6WM6EthhfqtBDR42 7XPwplI89JSsqHYZAof0prrfOemkVhQk4NmZBjl/a87tTe065tGMc+ZVHg9u6DU3YYIE 47KmItZGCrOMF131epPuWOIu5HSU9MtoGWVdA3lLZtOcHzvlQoUY9Ai/5/JQihGo/rUp Akxg== 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=3iRgRdpMfTlBKZhAJTpWmM2V3NADCY9wGlscim215TA=; b=SCt9X4hUUhVN74xOTO/3FPuNWqDOSBqEQaiz+nwCsv6ZOsbTl6IxzP1Q4gUrehZRKh iQAhCK606M3f6PWAV27Z+Wz72KJtC59ppwWw0+I7EdZEQR68VqvOTHU2pARM9QXVpz38 xaCHN0GKnpnKRVZhEbuuC8QV3u41ZZq6gu+WGNWVbEw3SRXuAjSbNvEnJfUyuQiwYt7w HMRNawG9+qa0BKjJQpmfguz5MwMhti5isSATimzcBBofnl+02kbxOMcaqWqR96TLPfyd 1nKWkCCC5RrXdGMOrHVMLuWEcMHqapvpSLwYsePWiN9/r62+6/TgGiTZr0pb55RhCLau ZM3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=cGHy11kg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z2-20020a170903018200b00153b2d16415si11958845plg.29.2022.04.04.18.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:01:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=cGHy11kg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC39F15D040; Mon, 4 Apr 2022 17:08:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355312AbiDDJ71 (ORCPT + 99 others); Mon, 4 Apr 2022 05:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237028AbiDDJ7V (ORCPT ); Mon, 4 Apr 2022 05:59:21 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9732B3BFA6 for ; Mon, 4 Apr 2022 02:57:24 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 [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(-) -- 2.30.2