Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1695649

Re: [PATCH 2/7] memory: atmel-ebi: Simplify SMC config code

From Alexander Dahl <ada@thorsis.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/7] memory: atmel-ebi: Simplify SMC config code
Date 2017-07-25 13:50 +0200
Message-ID <u76vF-2fW-37@gated-at.bofh.it> (permalink)
References <tcZtF-7aS-49@gated-at.bofh.it> <u6HGX-2Pd-9@gated-at.bofh.it> <u6Rdh-OM-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Boris,

Am Montag, 24. Juli 2017, 21:21:09 schrieb Boris Brezillon:
> There is a good reason for this "- 1": the doc says the exact number
> of tDF cycles is TDF_CYCLES + 1. When you are expressing timings in
> ns it does matter, because you don't want to wait more than
> necessary. Say the master clk period is X ns and you want a tDF of X
> ns. If you divide tDF_ns by the clk period you get one, and you only
> want to wait 1 cycle, not two.

This makes sense. I tried several values through the same algorithm with 
a small test program and it gives the expected results. Thanks for the 
explanation. :-)

> The NAND driver seems to do the right thing already [1].
> 
> Below is my suggestion below to fix the problem. Did you have
> something else in mind? In any case, can you send a patch to fix it
> (either using my suggestion or something else if you prefer).

I prepared a small patch series together with two other small fixes for 
the atmel ebi driver and will send it to the list in a minute.

Greets
Alex

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH 2/7] memory: atmel-ebi: Simplify SMC config code Alexander Dahl <ada@thorsis.com> - 2017-07-24 11:20 +0200
  Re: [PATCH 2/7] memory: atmel-ebi: Simplify SMC config code Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-07-24 21:30 +0200
    Re: [PATCH 2/7] memory: atmel-ebi: Simplify SMC config code Alexander Dahl <ada@thorsis.com> - 2017-07-25 13:50 +0200

csiph-web