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 C97F6C43217 for ; Fri, 17 Dec 2021 15:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238298AbhLQPxB (ORCPT ); Fri, 17 Dec 2021 10:53:01 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51183 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235584AbhLQPw6 (ORCPT ); Fri, 17 Dec 2021 10:52:58 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 37446E0011; Fri, 17 Dec 2021 15:52:55 +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 15/28] mtd: nand: ecc: Provide a helper to retrieve a pilelined engine device Date: Fri, 17 Dec 2021 16:52:53 +0100 Message-Id: <20211217155253.366111-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211216111654.238086-16-miquel.raynal@bootlin.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'ba7e581890fc1482eda19ac7b02b7846ba0a7c2e' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, 2021-12-16 at 11:16:41 UTC, Miquel Raynal wrote: > In a pipelined engine situation, we might either have the host which > internally has support for error correction, or have it using an > external hardware block for this purpose. In the former case, the host > is also the ECC engine. In the latter case, it is not. In order to get > the right pointers on the right devices (for example: in order to devm_* > allocate variables), let's introduce this helper which can safely be > called by pipelined ECC engines in order to retrieve the right device > structure. > > Signed-off-by: Miquel Raynal Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel