Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2014303pxb; Wed, 9 Feb 2022 09:07:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/6jKn4nEiIEwB2ojNEpULaaPgoHbpe7svp+QFvSFEIVhEFFW0v/ULYdYtDdJfEYDsA4sQ X-Received: by 2002:a05:6a00:984:: with SMTP id u4mr3212305pfg.67.1644426434038; Wed, 09 Feb 2022 09:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644426434; cv=none; d=google.com; s=arc-20160816; b=hQ0p/W5RUgWjsTL9fLb01Cjebnpj6/TPZljIOiVnXgnwUwvvUVDr0iTK9VzIdQY0YW pKD+QkuHSjt0h39J9VdtcfjqeR8EtGXNx6TtZ0tauGCwVQzeUbn+uyE1OhtUEstKM7wn fH1vSuVa85ZrrxFvsf1mEh84p7GeOtzHuAd58la30ziL0xeI+kxjGUfG98dFLfFZM6j+ KeZqKEslYs+s9hdoDhy3GnWqpum+JCBuzt90u8T8/Jhi1xG7QTmRRmx91k5b5va62+8R C110cePs6XEploJ1UHbb8kZtg7NKUDVWSAQtkGjvYprShQXT/U5oytkh9Nu8BK3gSqtW sYZg== 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=vRgDzyrEmORjs4lHu8d04Tc0LhNc+y24W6ANyXI3vdA=; b=lEaIsvz2Xt6w+GEYmDocHE1rZTNbfpB570E8LPAtJypyctCLl6zFhcheuiq4XXwlw8 lO81qeBi/H0rL5IDvNC0yRpaJ+zR7dp8wDytmnW1XR8NdNPGu448l1S6BNr2J4tGI4kD LyR26PT6Ce38cRq1wJ2ImI9OxDYjXAS0j5rpOLKwMVlfyq2srCyS/OgpJENy42ej2BwE kgB40dbrOuClKrso2fa3d+V2i1h7fPutHZWzVfIGqmcad4SPshE88jhphaeyHa3Z9T8d 75urpnTogvFGnDEKUgFeKipBRgoZXkXwrHq4FipetfkCU7Fo6cttrU8SJ5ClW0WLwhPA v8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=RnIBXlYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si1704959pgs.772.2022.02.09.09.06.54; Wed, 09 Feb 2022 09:07:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=RnIBXlYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237065AbiBIQdH (ORCPT + 99 others); Wed, 9 Feb 2022 11:33:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237055AbiBIQdF (ORCPT ); Wed, 9 Feb 2022 11:33:05 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E91AC0613C9 for ; Wed, 9 Feb 2022 08:33:08 -0800 (PST) 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 EA05E223E9; Wed, 9 Feb 2022 17:33:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644424386; 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=vRgDzyrEmORjs4lHu8d04Tc0LhNc+y24W6ANyXI3vdA=; b=RnIBXlYcGHC6A/9nYoCBX5vjaPeIE7KRT9I/YsK8krwYDdnhDQkq61q7FWFKfPrSYwe3r7 iS/5hRjpmKmACrDknRZcPCvid2xs/KOT02HMuQzcUmi7xY5Bu2/R7xTNTnOkTjIWXIedv4 XoPjI6j4L5JqjdTYOR0sf91pGMnvpaU= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Dan Carpenter , Michael Walle Subject: [PATCH v2 0/7] soc: fsl: guts: cleanups and serial_number support Date: Wed, 9 Feb 2022 17:32:35 +0100 Message-Id: <20220209163242.430265-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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. But because the binding [1] for the security fuse processor is still pending, it is marked as RFC. [1] https://lore.kernel.org/linux-devicetree/20220127163728.3650648-2-michael@walle.cc/ 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