Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2087983imm; Wed, 16 May 2018 07:42:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHiHpc0qNZ/EQopcQ/0ZRwPW7DLsRX0WeT/ockapD11TvZyLMwmJ1YP1t/6sDmWaLA3pXM X-Received: by 2002:a17:902:7109:: with SMTP id a9-v6mr1235726pll.271.1526481778251; Wed, 16 May 2018 07:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526481778; cv=none; d=google.com; s=arc-20160816; b=dDXlyovV6SmVsQd6NnORExNKEP+WjHrpcwCDeImcehjEISm5GoHPXXXdxQpvV3br2w qoJLHeKOQ7jn6HJOp1+3jLy5k83pxfCYWrKg5XzkB5wGc/g3Gtd9hUku/5ZSEyHywKT/ XUz4qaBXZbZkTNzcoipMZwyy7hsqIR3tG8saIHvl+I/BflOIHhSRiGUIZqpYOUY1ODyO 4BaoJ87JQWxYrpU8ySQ5IU59Osc7ioJpf1okmp2J1ivvkMw72pWSdmkdiGPZ2d3KFJjL KhVAd2SNxW0+uceSMnK/95Ut90IoCZEmcWgEE5CcKLjrn3JDjppDYQzT17a5n/w0hxLA 5SWQ== 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=2onAa4cwCbLSGHc1GEHhhDSPweOEWXPZfi9HmXhGkQI=; b=ixDcFB0N1CV37OhNjVFxL003J9o1lP582DtvuZFdHrmbsOENeWOSZ/WKglF2t4nDwY eiP+SoEOKzeefvcL1IhhAWFFyQXZnjU/cdaKaEJ3t9dy2jZBhjJ5t2oSx/WDnlGfN7f4 fEZ7iNAivKm288sded95wwHBrXbnrr7GgJggO04CmqQYtmXNF3PbEc3lDwEOjVLV2LHA cKljAtU5ZesxZ3in+pf4sqTnoPbBkpgbdCjQ9PzwMcAhkXpQgwihIq4dcXQFn2wbs5yk /ZKGEg0evlyYNrby6m7LPUQzOXuxFPNWVU3XwMckgO8g/Vx2Oi73OEW1o0o8IKsYyJ7e WRsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PAoBjmbR; 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 t5-v6si2712159plo.113.2018.05.16.07.42.43; Wed, 16 May 2018 07:42:58 -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=PAoBjmbR; 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 S1751478AbeEPOmc (ORCPT + 99 others); Wed, 16 May 2018 10:42:32 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35988 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbeEPOm3 (ORCPT ); Wed, 16 May 2018 10:42:29 -0400 Received: by mail-wm0-f65.google.com with SMTP id n10-v6so2434692wmc.1 for ; Wed, 16 May 2018 07:42:28 -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=2onAa4cwCbLSGHc1GEHhhDSPweOEWXPZfi9HmXhGkQI=; b=PAoBjmbRuBXGQvmlSxmr5U70bwUJLUPDFJUTD3A4WrktLUimRoY7vZNK8PLgwsnNZh Dc29ZwAmZVOUa5DXmoCNHRpKhy6bbBtWhRj2y45PDpHrupSNp4BqNs+RABUUa4UigoVb 0W7zAJsfggyEaO6tmsiWXk57jouGg44WlOVtTFU0THGsY9wI5F/CobqvcT6tEHm8zfxf FAhgbeFkOnRwMJJuyfvEbqrqPFTnsH3z01zomqOMUp2v1tp6cJq1Fo+yIEA/Z2/I01ZC 0RCImySmqwViAD1cqbLvSiYfH+kohwaOQcRalFnl9kdgZAdys2MEhjAhweHDhkCGHFwY sz7g== 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=2onAa4cwCbLSGHc1GEHhhDSPweOEWXPZfi9HmXhGkQI=; b=OSlfkaV7NQ9e28j/5CWK5Vl2NiGH5H1I0Ql4IaJzzoLzzTR8WMzhv2fM3jciWqjetS C6kCdypIPqmWFgOEacmvUucPfStcBn26FkInmVHbnO/abKPaWZwgttWvZV/eaP/EpY7m U5qvy01sGp9yv+AlsRYW+BH36zroAjf9XrNZOuaOcu0OrBNvkORMNaerjQp42mwkIcJd XBzXBkX9PoFihWy6xaiZV8tr0zEihMP43Z/7ZX5tzyMedrpc7x28PhBPltL1qafpiqaa 5KOokDwyoAbJ0TaXRPPsg8JbjkdDNdzzVeQYNyfn8JqXk6BP3+cX/B7reQsJ36y8qWyC xfIQ== X-Gm-Message-State: ALKqPwfz8VEtDqODUyr+MbLUMPQGL5G/l4+F2OZOyzc/i7WyXKA1P1qR wITdDYkv3kfGkisAgA6ySqDY4yJw X-Received: by 2002:a1c:9ec2:: with SMTP id h185-v6mr911652wme.68.1526481747810; Wed, 16 May 2018 07:42:27 -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 69-v6sm5403169wmi.29.2018.05.16.07.42.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 07:42:27 -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> From: Marek Vasut Message-ID: <30ab9516-abc9-d2d5-79ea-266c682c5fa9@gmail.com> Date: Wed, 16 May 2018 15:47:15 +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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Maybe the framework could support the 25LC afterall. -- Best regards, Marek Vasut