Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp490758rdf; Fri, 3 Nov 2023 06:47:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqqXglS8XE+A73Lb6XoZqXJqoi01WEyJzxaRVpsmjDYqvpkxac8kdWHihAdoZdYw75i6Hy X-Received: by 2002:a17:903:244b:b0:1cc:60ca:8f24 with SMTP id l11-20020a170903244b00b001cc60ca8f24mr15377262pls.45.1699019227303; Fri, 03 Nov 2023 06:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699019227; cv=none; d=google.com; s=arc-20160816; b=XW39cALBH6ldrhSocl9n29KaqAgyt84oxpM0tawCgeQYKIHm1rWYwvKtdGlHUCxIAl 76QKOooCLUhmaOpsDM01dLOZUPOrIbZS6xotmGfIdtEgle/WNIwj0XbgNFGCPf++ivHj PyBj2h1hH2T+EoAxHkCsMf9NUqDAuy3neb9If0Yei5kJmFXT9nAz55P8vusWhd06w5+r fB7mDUUpEZl7YBaM6fWs4SutHtSQynft0mLpq2WOjq3MAEsmKTPz8iZm+oiNf2V4EK6L 7BIULUjU8xK7RienyecbvsxWnUzYxUa6ErupgPRCaIaC569Hq95GvNGYfkKMvi7vruSQ JbDQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=0MWVWZN94e51Kb18auyRiLeqhoOf2GJa5P8GvtHKBzk=; fh=yTpyA7/T8PtqNh6Dv5+HtHIFulhIz/oH94jKSnyoS0o=; b=B3kjvI4Kmsmi4eP4NWBVtLrFX50I+uL6v47ok7eYGneXAF90oXLOpPKsAa57fA+sP1 padh/xBB4Immfk7m7Lh32tzcHtAahC5+GvhdC+2q8e0z5pcHOYyhd+7666eg5Sh8jQh5 ga6YH9uNq7uXDt+O+x+5Lf9SkWpj39qEfLd8xWeFwC+/8veACms70q394aWHuplJ09/5 wMJdSerljrdfqranqHOLEhhBVfoUilOxlJOE5ejz8MGuoVIdfbk30Omjf8YC5PM8p1lP a37VAblXKH2t7K57gBCvJX/IHTLQqJIlaNSUonXCtBfsIpkpf9UbjpYZZ8fmDJ4syb1I /Few== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dUzPAqLz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w17-20020a170902e89100b001c6223663b3si1588710plg.369.2023.11.03.06.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dUzPAqLz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 91065825F1C4; Fri, 3 Nov 2023 06:47:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbjKCNqx (ORCPT + 99 others); Fri, 3 Nov 2023 09:46:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjKCNqw (ORCPT ); Fri, 3 Nov 2023 09:46:52 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EA7A91; Fri, 3 Nov 2023 06:46:45 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5735640013; Fri, 3 Nov 2023 13:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699019204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0MWVWZN94e51Kb18auyRiLeqhoOf2GJa5P8GvtHKBzk=; b=dUzPAqLztbdKOYCaw6nMFwqeACnAxtAeWsRQkQvZgQL4rJSrFiAd+q4Ux6sLbx3JIAdQ1q FnDh7IqUElNHzqoKKsW+N/HZbvIwVmH1DoHXzjaarVzctf3fZnR0YhdFtZSNoikHI/i/tI aF25Ypi72MQhaMHKY1ENI3C3JZQWnFmawEUwWcJNVJseqto9TiHv6mRugNdcT6KvZ7bpvo kbYQqPYZfUjUUi6f3FokIxk99PmcmFtLghl103/cAhhm1mCpCgEH4BIs/mSMwhQR5ISr63 PBsofYkJGBrAhIMa9Jk9h+2la5LIHMRTQXMGCFJKlW9BLQ60XDghgLzyq0FrZQ== Date: Fri, 3 Nov 2023 14:46:39 +0100 From: Miquel Raynal To: Md Sadre Alam Cc: Dmitry Baryshkov , Krzysztof Kozlowski , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH 1/5] mtd: nand: ecc-qcom: Add support for ECC Engine Driver Message-ID: <20231103144639.6ff40ae2@xps-13> In-Reply-To: <4b911907-44b9-c164-9648-3d399e557672@quicinc.com> References: <20231031120307.1600689-1-quic_mdalam@quicinc.com> <20231031120307.1600689-2-quic_mdalam@quicinc.com> <553c1373-c9a0-b2af-2286-058824e31bad@quicinc.com> <4b911907-44b9-c164-9648-3d399e557672@quicinc.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 06:47:02 -0700 (PDT) Hello, > Based on below feedback [1] and NAK on the device node patch > got idea of having separate device node for ECC is not acceptable. > Could you please help to clarify that. If I may try to compare with the Macronix situation, the ECC engine was an independent hardware block, with its own mapping and its own registers, so it was described as an independent node in the DT. The type of ECC controller (pipelined or external) is described by the nand-ecc-engine property which either points at the parent node (pipelined) or an external node (external). The SPI host would itself point at the external ECC engine node with its own nand-ecc-engine property (see mtd/mxicy,nand-ecc-engine.yaml in the bindings). > Since ECC block is inlined with QPIC controller so is the below > device node acceptable ? >=20 > bch: qpic_ecc { > compatible =3D "qcom,ipq9574-ecc"; > status =3D "ok"; > }; If it does not has its own mapping and if you access the ECC engine through the host registers then the controller should be part of the host node, but I am not sure it really needs to be described explicitly, most of them are not for historical reasons. Conceptually there is a problem with subnodes of each of these controllers having a signification already: SPI devices or NAND chips. Thanks, Miqu=C3=A8l