Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4488921imm; Fri, 18 May 2018 06:03:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoT01VfgicEEwk5lvqxCv2b4OybflX09YJQFsD8uvOS6G+DVvCQniWOIDpKM87xw+k7H0KR X-Received: by 2002:a63:5f0d:: with SMTP id t13-v6mr7536477pgb.132.1526648616879; Fri, 18 May 2018 06:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526648616; cv=none; d=google.com; s=arc-20160816; b=LOvdCKfZBQOW9PgHW6cq/+ktW0UxMdtA5ZuQkWmjE7g2qG7YbRIzdZ6WL0iCYi1QcB fUQ77F3XADGdfduVlzKGGSE+qov8dt5mqJZ/kWPTwPcNkgpXpBfxaBxzLYG2bwqKHEuQ sl49WZ4ViUt9YP+/yUjE2NHd72QfiMP61xxYW8ASlv1NesQz6SZ6SMCT1+GgLJIyzdv2 upL7JJ6Gq7Yc1eVnK5hv2W7NLi2m7VnLgJBgHljQu2Lh/YMCLYbixuehVY3afr2mdzzF mcaN7RodpaHs1Kzg1bPrQJS2hMwyFSQAQ/+ityOIaFk3E/UClz+RwFYndmU3FAM5feVn UJPA== 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:arc-authentication-results; bh=x/DTgkuMP4uslTpQ9JnIuKcPfxaxtrEfcEy4HXsCZH4=; b=ipVp5ro8fCnyWrFaovWir76Zdo/cPrg5rLgY2ctOYhpoL+Qrzub1nPifTd65C76tlN nrq0nhK8eKu3kiK7auQb0UB7rsY2fWj1x3H8+54Wt3JzjpBTByYWtdej5xjgK0sYspTn lWKzlHERNXklvvmnnPaZejlHKJ6sc7Hz3FrE7qwRpUUim9NcJCEpQxbdoGx4Oa1Dbvrx Uxa1KS5dBiLZklFVkD8O2w7jbkp9BYiezHdcD5g+xy/l4nD2ndUEcpTk92JEAYjdrxie Ps58RJoMgyDwCFYbRFqjTGTDtiL66s3+bXH204sDiEJ0iDtxVkVkaw6XsJPkf8QG6Zlt yO8A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si7362332plb.77.2018.05.18.06.03.05; Fri, 18 May 2018 06:03:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbeERNAS (ORCPT + 99 others); Fri, 18 May 2018 09:00:18 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:47926 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbeERM67 (ORCPT ); Fri, 18 May 2018 08:58:59 -0400 X-IronPort-AV: E=Sophos;i="5.49,414,1520924400"; d="scan'208";a="14106380" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 May 2018 05:58:58 -0700 Received: from [10.145.4.57] (10.10.76.4) by chn-sv-exch04.mchp-main.com (10.10.76.105) with Microsoft SMTP Server id 14.3.352.0; Fri, 18 May 2018 05:58:57 -0700 Subject: Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256 To: Marek Vasut , Boris Brezillon CC: , , , , , , 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: Radu Pirea Message-ID: Date: Fri, 18 May 2018 16:00:15 +0300 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"; format=flowed 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 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. :) >