Linux SPI subsystem development
 help / color / mirror / Atom feed
From: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
To: Johannes Stezenbach <js-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
Cc: linux-mtd
	<linux-mtd-bounces-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	"Gupta, Pekon" <pekon-l0cyMroinI0@public.gmane.org>,
	"Thomas.Betker-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf@public.gmane.org"
	<Thomas.Betker-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf@public.gmane.org>,
	"spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org"
	<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	yuhang wang
	<wangyuhang2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: SPI: DUAL/QUAD support
Date: Fri, 5 Jul 2013 13:11:27 +0530	[thread overview]
Message-ID: <51D678A7.6050402@ti.com> (raw)
In-Reply-To: <20130705073550.GA24258-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>

On Friday 05 July 2013 01:05 PM, Johannes Stezenbach wrote:
> On Fri, Jul 05, 2013 at 06:45:01AM +0000, Gupta, Pekon wrote:
>>> Just as Johannes said. In my patch m25p80's changes is incomplete.
>>> Because my inicial aim is to add the transfer width member to tell controller
>>> the mode flash in. And I will attach new patch about m25p80 later.
>>> Also you are right. There are really series of flashes do not support dual/quad
>>> transfer. So I don't know whether there are any standard for serial-flash just
>>> like the CFI for parallel-flash. Personally, to make a general standard and
>>> a general code for serial-flash is necessary. So that we do not need to add
>>> special function in m25p80.c.
>>>
>> [Pekon]: Does below generic framework for spianand, suit your driver?
>> http://lists.infradead.org/pipermail/linux-mtd/2013-July/047434.html
>>
>> you should be able to extend the generic spinand API for all
>> serial modes (SPI, Dual-SPI, Quad-SPI).
>> As QSPI and Dual-SPI devices should implicitly support SPI (MISO/MOSI)
>> So, you can do device probing using default SPI mode. And then based on
>> DT inputs and device support upgrade to QSPI / Dual-SPI mode.
>> And going forward extend it for direct memory-mapped device for XIP.
> Not sure what you have in mind since NAND and NOR flash work very
> differently, and SPI vs. memory-mapped is also very different.
>
> But to add to the spinand review comments two things caught
> my eye on quick glance over the code:
>
>> +#define mu_spi_nand_driver_version "Beagle-MTD_01.00_Linux2.6.33_20100507"
> seems like an unused leftover?  if the version number is
> important then maybe better put it in commit message?
>
Yes, actually its not required, should be removed.
>> +/bin/bash: 4: command not found
> how did this get in there?
>
>
Yes, this is useless, will  removed in the next version.
> Johannes


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

  parent reply	other threads:[~2013-07-05  7:41 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 11:36 SPI: DUAL/QUAD support yuhang wang
     [not found] ` <CAHSAbzPNDSr_6N79fh0DTWSEg8buRRPyiw8SPodtKLPjzWXJsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-04 13:00   ` Johannes Stezenbach
     [not found]     ` <20130704130017.GA25997-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2013-07-04 14:58       ` Thomas.Betker-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf
2013-07-04 15:49         ` Mark Brown
     [not found]           ` <20130704154927.GE27646-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-07-04 16:04             ` Thomas.Betker-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf
     [not found]               ` <OFAD729A05.8C915625-ONC1257B9E.00576B25-C1257B9E.0058477D-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf@public.gmane.org>
2013-07-05  6:25                 ` yuhang wang
     [not found]                   ` <CAHSAbzOg+uHndydSC43moF7pijc67pqzB2rPnY69ynXHEzw79g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-05  6:45                     ` Gupta, Pekon
     [not found]                       ` <20980858CB6D3A4BAE95CA194937D5E73E9E4C2E-yXqyApvAXouIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2013-07-05  7:35                         ` Johannes Stezenbach
     [not found]                           ` <20130705073550.GA24258-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2013-07-05  7:41                             ` Sourav Poddar [this message]
2013-07-05  8:04                             ` Gupta, Pekon
2013-07-05  7:40                     ` Sourav Poddar
     [not found]                       ` <51D67851.8020402-l0cyMroinI0@public.gmane.org>
2013-07-05  8:48                         ` yuhang wang
2013-07-05  8:55                           ` Sourav Poddar
     [not found]                             ` <51D689F3.3070605-l0cyMroinI0@public.gmane.org>
2013-07-05  9:07                               ` yuhang wang
     [not found]                                 ` <CAHSAbzM1PGoMXFNOmB7guDsVWYnRoRy89-bufHYpPz5+odnd8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-05  9:08                                   ` Sourav Poddar
     [not found]                                     ` <51D68D14.7090606-l0cyMroinI0@public.gmane.org>
2013-07-05  9:17                                       ` yuhang wang
     [not found]                                         ` <CAHSAbzMfvfdDtTh=3zeBni4fNMAHEMdTJLJU-Oc13HJUqCUj0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-05  9:27                                           ` Sourav Poddar
     [not found]                                             ` <51D69197.7060802-l0cyMroinI0@public.gmane.org>
2013-07-05 10:24                                               ` yuhang wang
     [not found]                                                 ` <CAHSAbzP1-RVot+hhtY_DcBK=u5n2234eb9WOKLESwvUNax7+pA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-05 14:34                                                   ` Johannes Stezenbach
     [not found]                                                     ` <20130705143452.GA7738-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2013-07-05 15:41                                                       ` yuhang wang
2013-07-04 14:36 ` Mark Brown
     [not found]   ` <20130704143645.GA27646-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-07-04 18:06     ` Johannes Stezenbach
2013-07-04 19:12       ` Mark Brown
     [not found]         ` <20130704191216.GK27646-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-07-05  9:41           ` yuhang wang
2013-07-05 10:12             ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2013-07-04  7:07 SPI : " 王宇航
2013-07-04  9:00 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D678A7.6050402@ti.com \
    --to=sourav.poddar-l0cymroini0@public.gmane.org \
    --cc=Thomas.Betker-Bf/A/FSCP0w3s4ca2cGeAgC/G2K4zDHf@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=js-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-mtd-bounces-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=pekon-l0cyMroinI0@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=wangyuhang2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox