From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDB5CC433F5 for ; Fri, 17 Dec 2021 15:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238656AbhLQPxe (ORCPT ); Fri, 17 Dec 2021 10:53:34 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:51723 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238576AbhLQPxY (ORCPT ); Fri, 17 Dec 2021 10:53:24 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 3DE4C200007; Fri, 17 Dec 2021 15:53:21 +0000 (UTC) From: Miquel Raynal To: Miquel Raynal , Mark Brown , linux-spi@vger.kernel.org, Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-mtd@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org Cc: Julien Su , Jaime Liao , Thomas Petazzoni Subject: Re: [PATCH v6 12/28] mtd: nand: ecc: Add infrastructure to support hardware engines Date: Fri, 17 Dec 2021 16:53:19 +0100 Message-Id: <20211217155319.366306-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211216111654.238086-13-miquel.raynal@bootlin.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'078454455f7e0ce62c05bc19c27cb99f96ec4954' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, 2021-12-16 at 11:16:38 UTC, Miquel Raynal wrote: > Add the necessary helpers to register/unregister hardware ECC engines > that will be called from ECC engine drivers. > > Also add helpers to get the right engine from the user > perspective. Keep a reference of the in use ECC engine in order to > prevent modules to be unloaded. Put the reference when the engine gets > retired. > > A static list of hardware (only) ECC engines is setup to keep track of > the registered engines. > > Signed-off-by: Miquel Raynal Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel