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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6168FC6379F for ; Tue, 21 Feb 2023 09:08:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C3D185A35; Tue, 21 Feb 2023 10:08:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="AEL6X7vT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6CCCD85A40; Tue, 21 Feb 2023 10:08:37 +0100 (CET) Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0AD4085A35 for ; Tue, 21 Feb 2023 10:08:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc 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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 5915D124F; Tue, 21 Feb 2023 10:08:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1676970514; 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: in-reply-to:in-reply-to:references:references; bh=7wdMmX1/yWrqA3XGqq6AVzEM8Y2Bp5qbWYEcN+gCwOY=; b=AEL6X7vTbemSjMbzOZ6wMknWqa0yJda6DANHOWj5pFuBrTct3j9686OKD6WtouQh9fPGYw y5JdnJVIZ3FjxzAWQ1JIfnSJmtd3VPgV3q0bikS4rmM8a/joWvyAdFBRZTcaeFJlVpRLM5 oLPtBeE9PSK5V9p0hmoeCNE816Aczxeg0FUMuzWqW5f2Wzbrei0e/IhZtQJ/imPn98Sd+t fj8I93dL5JgFhLEV2hZOBJQj4try5uQbjq1/diAbXSb38NFW4f7RG/zmbPM3zkSCvvrH12 wD6Ve2kg7bal1CXG+L7MyJoVqM2Ex+HMFMZ89O3VgUodemQ9N4DQg7GLi4Lhbw== From: Michael Walle To: marex@denx.de Cc: miquel.raynal@bootlin.com, monstr@monstr.eu, sjg@chromium.org, u-boot@emagii.com, u-boot@lists.denx.de, ulf@emagii.com, Michael Walle Subject: Re: [PATCH 3/4] mtd/fpga: add fpga directory to mtd (with Cyclone 10) Date: Tue, 21 Feb 2023 10:08:16 +0100 Message-Id: <20230221090816.3913072-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean >> If it is right or wrong to use that as an MTD is a matter of opinion. > > I am still hoping the MTD maintainer would provide input here. I might be missing something, but what is the reasoning here, to add this to the mtd subsystem? One is saving space, but I agree with Marek, this isn't a valid argument to just put any (unrelated) stuff into the MTD subsystem. Also, as Marek pointed out, there are many different 'programming' solutions for CPLDs/FPGAs and most of them don't share anything with MTD. You seem to be just focusing on the "passive serial" one. Now, I saw you mentioned that | the current passive serial solutions does not use the existing SPI | drivers. What do you mean with SPI drivers? SPI flash drivers or SPI controller drivers? Does the "passive serial solution" expose an SPI bus and you can access the SPI flash on it in a generic way? Then the solution should be to write a SPI (controller) driver, the flash should then be automatically be detected. -michael