Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp333695lqt; Thu, 6 Jun 2024 05:17:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+ygYsvY/pN9yc/2AUJobGjxq1xGY4AVwWhfasC6e87kt83IvaoWgAjjkqKztdErJZj+UUTh48HPi/Io0XnSGAedPk+5sZzdMwYpDVsA== X-Google-Smtp-Source: AGHT+IEhzO6B+Aeh9TGAL06UiB7GCHgm3SbC4bOlHTNFMMfC7TVV3Q8Dfd8uPR2855//wGOSWMpn X-Received: by 2002:a05:6402:905:b0:57a:3086:3035 with SMTP id 4fb4d7f45d1cf-57aa555ef5dmr1975413a12.14.1717676221512; Thu, 06 Jun 2024 05:17:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676221; cv=pass; d=google.com; s=arc-20160816; b=vIJI6b34lbxeQ/B2TYF6gVUVmsrWpoDeIxfrMNVHHLO/4/w9xY+kR3Jh7I/Z8EV96n MJQxIfFDSdiBeC4/Sr7rCz2KyyuWsNoipPxGGbux2RCv6bQOx+Sdq80CliwS3AuoNzvo BCJ6FGAOQBU6lZNOwxYUXLMA8UpASQLyFm+hq59+pDUYAt7Zj5xj9YH27KGFPRhBvBdG AYfz0lOar8MqFHZJNmyagioyTf6PIfvWX7BMl1otJXgxuJqqA2OCNgE52IzUS2XLZaaP MoHi692CK1IKOsIoxY9sGJ75laUKwG5br3qT6vZpioTaIIvGRBHLrpt3oXYGetmpSGL+ 8IuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=P4eR0U8qSC2JKNbsIe9eb3BDB8OBTYCS7ARMldo+loA=; fh=xa/W9yLhIxbjqnccU1MuFz4v38eQTZgZmT86nGq1PLI=; b=Y6juuGNw/gL+fmoXj2BGSEBnt7HAKsos6d3IM53eXAFt5psI6363QE0WAlocOg/6Hc J9Xxu3W/MHfd54rnM5taAp86CgaA8GFuIDWUUYIIHLfPMhuMDmb2rSBG4gtco+jwkHAB x5l3/lEXWM9+OcPgC2PSZz4js7l4iDw2Ec0e8sk4bOZ1pE5RssZcM9qY9ODeMDKLNKB+ 4Hrp7YhTh0wa10F2G/7xFH+UoPv3NNAawDH5+IgsEZa1dvIcPiWhTo9aSUWfxIaaRmIl gWq6rWXS4fNBtxY4wNJk6uAx2qeH5Y+a282/BfG7OK1ZWIpSNNTwJCtyqh3kbxoRO0SE ckzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RdAjV9ES; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0fcdeasi643952a12.195.2024.06.06.05.17.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RdAjV9ES; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0D3571F25AA2 for ; Thu, 6 Jun 2024 12:17:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87C62195FC5; Thu, 6 Jun 2024 12:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RdAjV9ES" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D69B0195F2E for ; Thu, 6 Jun 2024 12:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676068; cv=none; b=VMB9JMW440pt7aTJQPi5OCYjXII9p5hkNQupTRH7gL0y87+JQbzQKN5/1U7rqzjUEyMgOZxB12hlCCmZWAaNSSzd5x0OfH4UAaDbp8flzWIiVFC+Pz1hAoZv7b/+r8QXUD9opDKsB6vMsbOfpD4eqGBUvbS3Ew+K+oSnRhfzUf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676068; c=relaxed/simple; bh=6Wohv+osAdLb7FnEZVEAAa/e/pGCKjdQxGRzOwQyVOo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dBfnJGv73vkDxBZNBbVgzVX1cguuNamYRJ3z/dhxwSqkD98neyYih1qC9RZevJu22Xe4yr9GtcCuyskdQ7z1wCYNq76/kPB9mRZxpMx/nD4Ubmexc/JQCG4EO8gXgFILcjaaARTg41WvM80mreFD1axGA6+kNXbD5NyErVpS0tM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RdAjV9ES; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57a2f27090aso3361579a12.0 for ; Thu, 06 Jun 2024 05:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717676065; x=1718280865; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P4eR0U8qSC2JKNbsIe9eb3BDB8OBTYCS7ARMldo+loA=; b=RdAjV9ES7QP3/zlbiaQC7UxjHBJtqHjGzaGkuPDKIhc2opTV/ibDiAgx36Rh+T6KrK CSBzhAKncY2C2szDlY86Epeu+oy8aE6QxQG8K3SXm50ENLcMnb4olXg/nhGZeTHHuYl8 4vm2MtOOj8c6qvJ7qKcJMA+NgRPTNPEwN0eU/ya/TdDH5IYs1vZ8fxiQ0tKd8r0n18Al 6lu+XCbBo3YM608OgdXEGfLgfn+WhWrkLQdzEV9jccuMdHzSMY0UidbB5sDRwklewM9z D9HYwbiSEK6RqwGMJP5psiLobvQ3R1PQjy1jXZHy+r9saaDz/M/9ihOjov4+wK+CJBSe RHeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717676065; x=1718280865; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P4eR0U8qSC2JKNbsIe9eb3BDB8OBTYCS7ARMldo+loA=; b=qXq5ugj0KIkRqBbzInc2gW/TV0++X/GBaV3K5+QeQpGWsjECa6TelOaesFAA2bmydK WUFKfUVv6bDGUo8cFC+9gN6+GGwDR2f9amdwzmsvOIqBffHwaOKqpY1/RuxCQccr2tZJ AaLxCdF4dWr1GaLPds8/y42vH/1NzE1UYECUsql2OgRDoiczqqOdrPpZqFcfv1fxMWAp Thwavp/CxDYmHn7DTGflWfwKCrth8th53v8b/qhdUhXI9In+r0JOhriMA5QBPYQlKrk9 Jq2MwXH4rTtIxkIeFT9pyHcecJd0wtlHNLVamZXnf6siZg2CDWq4LTF1BxbIGgBt8v9O DPdg== X-Forwarded-Encrypted: i=1; AJvYcCUqZJlC96pZOuF4Lco6EdBrdUf/r4YU9CJf1RShvvQk8YG4HMP17P3tZqapeyh+UWMLjDP9gqfVza08YgnUnQgQO/uUz+j6hdro4wyT X-Gm-Message-State: AOJu0YytaAR0X9aRI3Bf6OhXFDvzAfjTxkVujEbx2xY2jffv4IxeLRGX USiWlkahiG/zbw1LbVAcaMGuOaXQAjK9mKFVDb8D4FKbGK4KBqTQnRPGbzWzXF4= X-Received: by 2002:a50:9eeb:0:b0:579:fb7e:2112 with SMTP id 4fb4d7f45d1cf-57aa5425c5cmr2134985a12.11.1717676065035; Thu, 06 Jun 2024 05:14:25 -0700 (PDT) Received: from [192.168.2.107] ([79.115.63.17]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aadf9d28bsm993500a12.19.2024.06.06.05.14.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 05:14:24 -0700 (PDT) Message-ID: <1094fbfd-0ee7-430e-b62c-20764c1fbeec@linaro.org> Date: Thu, 6 Jun 2024 13:14:21 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: mtd: spi-nor: deprecate Everspin MRAM devices To: Thorsten Scherer , Michael Walle Cc: Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Marek Vasut , Imre Kaloz , Andrew Lunn , Flavio Suligoi , kernel@pengutronix.de References: <20240604074231.1874972-1-mwalle@kernel.org> Content-Language: en-US From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/5/24 14:58, Thorsten Scherer wrote: > Hello, > Hi! > in the past I more actively worked on the ci4x10. That changed after switching > departments. Anyway, I thought maybe it's useful if I share my point of view. > > On Tue, Jun 04, 2024 at 09:42:31AM +0200, Michael Walle wrote: >> These devices are more like an AT25 compatible EEPROM instead of >> flashes. Like an EEPROM the user doesn't need to explicitly erase the >> memory, nor are there sectors or pages. Thus, instead of the SPI-NOR >> (flash) driver, one should instead use the at25 EEPROM driver. >> >> Signed-off-by: Michael Walle >> Cc: Uwe Kleine-König > > You cannot reach Uwe via this address anymore. > > IMHO missing in this discussion is > > kernel@pengutronix.de > > , which I added to CC. > >> Cc: Thorsten Scherer >> Cc: Marek Vasut >> Cc: Imre Kaloz >> Cc: Andrew Lunn >> Cc: Flavio Suligoi >> --- >> The referenced binding only supports the true AT25 compatible EEPROMs >> where you have to specify additional properties like size and page size >> or cypress FRAM devices where all the properties are discovered by the >> driver. I don't have the actual hardware, therefore I can't work on a >> proper driver and binding. But I really want to deprecate the use of >> these EEPROM like devices in SPI-NOR. So as a first step, mark the >> devices in the DT bindings as deprecated. >> >> There are three in-tree users of this. I hope I've CCed all the relevant >> people. With the switch to the at25 driver also comes a user-space >> facing change: there is no more MTD device. Instead there is an "eeprom" >> file in /sys now, just like for every other EEPROM. > > My vague memory tells me (at least some of) the domain specific applications > running on ci4x10 rely on MTD(block?) devices. So this change would break > user-space. it's a possibility, indeed. I assume we don't know for sure, right? > >> Marek already expressed, that the sps1 dts can likely be removed >> altogether. I'd like to hear from the other board DTS maintainers if >> they seem some problems moving to the EEPROM interface - or maybe that >> device isn't used at all anyway. So in the end, we can hopefully move if it's not used at all we can remove it entirely. >> all the users over to the at25 driver. > > The ci4x10 is still being used and sold. Right now I do not have a clear > view on the implications of moving to that driver. I'd like to invest some > time to sharpen my picture (or find the person that claims responsibility), but > this will propably not happen this week. > if it's used then we are forced to keep the entry in SPI NOR for backward compatibility. But we can still deprecate the use and forbid new support in SPI NOR while directing users to the other driver. > Hope this helps. > Thanks! ta