devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Graham Moore <grmoore@opensource.altera.com>
To: vikas <vikas.manocha@st.com>
Cc: Marek Vasut <marex@denx.de>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Alan Tull <atull@opensource.altera.com>,
	Yves Vandervennet <yvanderv@opensource.altera.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Dinh Nguyen <dinguyen@opensource.altera.com>,
	Brian Norris <computersforpeace@gmail.com>,
	David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH V7 2/2] mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller.
Date: Tue, 18 Aug 2015 14:17:42 -0500	[thread overview]
Message-ID: <55D384D6.9040303@opensource.altera.com> (raw)
In-Reply-To: <55D299CD.2070809@st.com>

Hi Vikas,

On 08/17/2015 09:34 PM, vikas wrote:
 > Hi Marek,
 >

[...]

 >> +
>> +/* Operation timeout value */
>> +#define CQSPI_TIMEOUT_MS                       500
>> +#define CQSPI_READ_TIMEOUT_MS                  10
>
> please add some comment about the timeouts value selection.
>

I wish I could comment, but I don't know the origin of these values. 
The 500 ms value is probably just "a very long time".

[...]

>> +
>> +       cqspi->irq_mask = CQSPI_IRQ_MASK_RD;
>> +       writel(cqspi->irq_mask, reg_base + CQSPI_REG_IRQMASK);
>
> here interrupt mask is being configured for every read, better would be to move it in init.
>

[...]

>> +
>> +       cqspi->irq_mask = CQSPI_IRQ_MASK_WR;
>> +       writel(cqspi->irq_mask, reg_base + CQSPI_REG_IRQMASK);
>
> same like read, it should be moved to init.
>

It uses different masks for read and write

[...]

BR,
Graham


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2015-08-18 19:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14  3:28 [PATCH V7 1/2] mtd: spi-nor: Bindings for Cadence Quad SPI Flash Controller driver Marek Vasut
     [not found] ` <1439522892-7524-1-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2015-08-14  3:28   ` [PATCH V7 2/2] mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller Marek Vasut
     [not found]     ` <1439522892-7524-2-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2015-08-14  3:32       ` Marek Vasut
     [not found]         ` <201508140532.34935.marex-ynQEQJNshbs@public.gmane.org>
2015-08-18  2:47           ` Brian Norris
2015-08-21  5:32             ` Marek Vasut
2015-08-18  2:34       ` vikas
2015-08-18 19:17         ` Graham Moore [this message]
     [not found]           ` <55D384D6.9040303-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
2015-08-18 20:35             ` vikas
     [not found]         ` <55D299CD.2070809-qxv4g6HH51o@public.gmane.org>
2015-08-21  4:04           ` Marek Vasut
     [not found]             ` <201508210604.30272.marex-ynQEQJNshbs@public.gmane.org>
2015-08-21  7:09               ` Vikas MANOCHA
2015-08-18  2:35   ` [PATCH V7 1/2] mtd: spi-nor: Bindings for Cadence Quad SPI Flash Controller driver vikas
     [not found]     ` <55D29A0B.20408-qxv4g6HH51o@public.gmane.org>
2015-08-18  4:47       ` Marek Vasut
     [not found]         ` <201508180647.30119.marex-ynQEQJNshbs@public.gmane.org>
2015-08-18  5:48           ` Vikas MANOCHA
2015-08-18 19:03             ` Graham Moore
     [not found]               ` <55D3819D.1040009-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
2015-08-18 20:18                 ` vikas
     [not found]                   ` <55D39319.70108-qxv4g6HH51o@public.gmane.org>
2015-08-20  4:03                     ` Marek Vasut
     [not found]                       ` <201508200603.19962.marex-ynQEQJNshbs@public.gmane.org>
2015-08-20 16:06                         ` vikas
     [not found]                           ` <55D5FB19.9010402-qxv4g6HH51o@public.gmane.org>
2015-08-21  3:46                             ` Marek Vasut
     [not found]                               ` <201508210546.28932.marex-ynQEQJNshbs@public.gmane.org>
2015-08-21  7:00                                 ` Vikas MANOCHA

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=55D384D6.9040303@opensource.altera.com \
    --to=grmoore@opensource.altera.com \
    --cc=atull@opensource.altera.com \
    --cc=computersforpeace@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dinguyen@opensource.altera.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marex@denx.de \
    --cc=vikas.manocha@st.com \
    --cc=yvanderv@opensource.altera.com \
    /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;
as well as URLs for NNTP newsgroup(s).