Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4913888imm; Fri, 18 May 2018 12:54:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZookeyynON1+CwMOe/CNlkzTa/1LD+4fGhuXmqypjecURXb3xymemUOWwNXH7xA7d48ipQQ X-Received: by 2002:a62:f80c:: with SMTP id d12-v6mr10737777pfh.159.1526673241394; Fri, 18 May 2018 12:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526673241; cv=none; d=google.com; s=arc-20160816; b=rnXKODpr2wDpn45OKVFldMdO5C1THka9F7in5r3IYXfokzkdSvGPoTOXqMovhkhgYN wpT9goCNNAUM6IiIyIRnZRB/4wSMhxdwLZIMvodaBCCBg+jMbvlq6geKNT87WjpeMeIL 6bDgfaJ3lvKEopLRPNUf9VgTTObgQl0nmmzaFoyQXYqOVOysLLeqnUB218/ErDyIkF6q NkE3aIH3lqZbk8OOwhsJIfSx02eISbJocjzciio4wGwF7wnYVIpdr1df/c5xtL+u0lRf MqN5a+fXTJMAX/rRsKQlv7DrRnS+hduUW6/Z5077+ZzJeED07s48Xw8vOSnqAAwYs63c 4Q5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=9bbI/PWrFOhTf/vO4hau/26xEtEFe1AAVRsFCOSDYj8=; b=f4rxVxezq9HirtrL01Wovr6qK6q5JeHAgYvJuBX7rKDpwbaSQtS02Lwd/N2Jb99WE6 xl6u0rsGR9U7kJG73KYuFSZwNNdKSxOUJywsgdRULwF/6evx2xk0DMe6G2YjmPUMW8mb 9Lw6+5+rIQHN1qVi5d0fbZHztbns8yi/u4DACJxtmW1j3aEXzepoYX0ywrqej2cIqM8G OFSrtCfa8tu9gqAIItTZMSAf3d7KBHiRg0K/IAoc6Yclca8naAJ3rDXTVSc940IhplJo PNzYKcB6U8HLYokk5qhL+RYH4h4ImlAHxOm8So2bzqmIUW4jpsacoMutx3dAImSLttA0 AYnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T9q4AWEA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3-v6si7870008pff.356.2018.05.18.12.53.47; Fri, 18 May 2018 12:54:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T9q4AWEA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752174AbeERTwV (ORCPT + 99 others); Fri, 18 May 2018 15:52:21 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33446 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751971AbeERTwS (ORCPT ); Fri, 18 May 2018 15:52:18 -0400 Received: by mail-wr0-f195.google.com with SMTP id a15-v6so3019126wrm.0 for ; Fri, 18 May 2018 12:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9bbI/PWrFOhTf/vO4hau/26xEtEFe1AAVRsFCOSDYj8=; b=T9q4AWEAFKneK1+WXwTAzJ36TBIYNKx+gTu2uWwNrq/aZVCEdCaGyjmSgQ1Wypqxf1 Xl2//4e5CdSOJXMSGP9YZStUMZ3uQzL4G/jR2E92dUY2OO+JGhA+1uZT4w4ulbKaXacY C++V09ExN33gdl7JswwJRNttTzmZJ8gzVro1oIftF3k5Ay5N8cOt4PMXA4uFGbkAUu6T aydRH5HR+hG2zqN6wcJLmpYRicIJNqpiphwuKkxFxCEOlF2WIK12FrvdqWqgukwHOMAd zZ1qHavY+4SEKhjdiSXv8PLd8i6db2DgOsMHaff14DTwdlkQ2EDrXSD7Elss4HcFYwDU rpnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9bbI/PWrFOhTf/vO4hau/26xEtEFe1AAVRsFCOSDYj8=; b=c2ipJFmtS+NdSb25+q4tfki336nqBPSfyR4cVb1GAjx+uR8re/J9omzqwnfMOYKpg0 M8/OYqrKX3Om+WZMwIhgfogEPv8M9gCbyPkWoorpi85fzgvetstu+C6cdQM8xLZupVg3 UitGCdVqG4J6dkUqv73ncUXJn+JqtJddHdfQ0Ss8jde3Vpd1t08x+YlE6FevszzHtugU zWcctqmblHzx+Uw/Zlg5zmjPAkUhnk2oweXbune/eiM9aXgqSRWCStz0anw8wA4Q9o9P q5keRyU1bPk8c+aEaDZuthTWtpPo+HpEUk8jQpbK20v3pq5/zFbFq+BvRhe5re5HuvXd ZJ4A== X-Gm-Message-State: ALKqPwfBUftkVJxMji6rnYd/NCU4IXujbR8JfaZAdql5SPwlBZ7vVL+N oQj49ducuRoTowK2pSBJaOo= X-Received: by 2002:adf:884c:: with SMTP id e12-v6mr9415053wre.30.1526673137091; Fri, 18 May 2018 12:52:17 -0700 (PDT) Received: from [192.168.1.4] (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id 2-v6sm17655959wrb.22.2018.05.18.12.52.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 12:52:16 -0700 (PDT) Subject: Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256 To: Radu Pirea , Boris Brezillon Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Zhiqiang.Hou@nxp.com, pp@emlix.com, richard@nod.at, computersforpeace@gmail.com, dwmw2@infradead.org References: <20180504155404.5285-1-radu.pirea@microchip.com> <20180504204013.254d90cf@bbrezillon> <1db092c8-95fb-5747-f7b9-f6a215b1aa5b@gmail.com> <30ab9516-abc9-d2d5-79ea-266c682c5fa9@gmail.com> <1993151b-4434-c671-8498-b6488288f5f6@microchip.com> From: Marek Vasut Message-ID: Date: Fri, 18 May 2018 18:25:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/18/2018 03:00 PM, Radu Pirea wrote: > > > On 05/18/2018 01:03 PM, Marek Vasut wrote: >> On 05/18/2018 11:50 AM, Radu Pirea wrote: >>> >>> >>> On 05/16/2018 04:47 PM, Marek Vasut wrote: >>>> On 05/16/2018 12:05 PM, Radu Pirea wrote: >>>>> On Wed, 2018-05-16 at 00:17 +0200, Marek Vasut wrote: >>>>>> On 05/15/2018 06:22 PM, Radu Pirea wrote: >>>>>>> On Fri, 2018-05-04 at 20:40 +0200, Boris Brezillon wrote: >>>>>>>> On Fri, 4 May 2018 18:54:04 +0300 >>>>>>>> Radu Pirea wrote: >>>>>>>> >>>>>>>>> Added geometry description for Microchip 25LC256 memory. >>>>>>>> >>>>>>>> Same as for the dataflash stuff you posted a few weeks ago: I >>>>>>>> don't >>>>>>>> think this device belongs in the SPI NOR framework. >>>>>>> >>>>>>> Hi Boris, >>>>>>> >>>>>>> 25lc256 memory is similar with mr25h256, the only difference is the >>>>>>> page size(64 vs 256). Because mr25h256 is already in SPI NOR >>>>>>> framework >>>>>>> I added here 25lc256. >>>>>> >>>>>> I think I must be reading the wrong datasheet, but can you show me >>>>>> how >>>>>> does it support things like READID opcode ? >>>>>> >>>>> Hi Marek, >>>>> >>>>> I read the datasheet for 25lc256 and for mr25h256 and none of them >>>>> supports READID. Is this required for a chip to be included in spi-nor >>>>> framework? I just followed the mr25h256 as an example. >>>> >>>> So I thought until you pointed out the MR25 devices. >>>> >>>> Does the 25LC device need erase or not ? I think the MR25s didn't, >>>> but I >>>> might be wrong. >>> >>> You are right. MR25s does not need erase and the same thing is true for >>> 25LC. >> >> Oh. And the command set is (except for readid) comparable to SPI NOR ? >> >>>> Maybe the framework could support the 25LC afterall. >>>> >>> Yes, this was my impression too. >> >> I am still thinking that the AT25 driver might be a better fit for such >> devices. Can you take a look ? > > I tested the memory with at25 driver and it works with no line changed > in driver. :) So AT25 it is then ? -- Best regards, Marek Vasut