Thread (64 messages) 64 messages, 8 authors, 2013-12-10
STALE4564d
Revisions (19)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v1 [diff vs current]
  7. v1 [diff vs current]
  8. v1 [diff vs current]
  9. v1 [diff vs current]
  10. v1 current
  11. v1 [diff vs current]
  12. v1 [diff vs current]
  13. v1 [diff vs current]
  14. v2 [diff vs current]
  15. v3 [diff vs current]
  16. v3 [diff vs current]
  17. v3 [diff vs current]
  18. v3 [diff vs current]
  19. v5 [diff vs current]

[PATCH 0/4] mtd: spi-nor: add a new framework for SPI NOR

From: Huang Shijie <hidden>
Date: 2013-12-05 07:33:49
Also in: linux-spi

On Thu, Dec 05, 2013 at 05:43:05AM +0000, Gupta, Pekon wrote:
quoted
From: Huang Shijie [mailto:b32955 at freescale.com]
quoted
? 2013?12?04? 23:36, Marek Vasut ??:
I disagree we should bloat the API with features, that will be used by "possible
future controllers" or "possible single controller", right from the start. The
real question here is, can the API be designed in such a way, that the SR
polling will happen in software NOW and only when a controller appears that can
do polling in HW will the API be extended to support it ?
ok. Let's add this feature in the future when a real case occurs.
Sorry got lost.. Can you please summarize following plans for your next patch:

(1) Polling of status registers should be 
  (a) done in S/W (generic driver)
  (b) done controller driver, which can be optimized for specific hardware
For (b), we can implement the @wait_till_ready hook for the controller driver.

For (a), we use the default hook for @wait_till_ready.


(2) How do you plan to have timeout value, (as serial flash can be pretty slow
   to access) ?
  (a) independent for each access
       - read timeouts per sector, which can be multiplied with read_len/sector_size
       - write timeout per sector, which can be multiplied with write_len/sector_size
       - erase timeout per block, which can be multiplied with erase_len/block_size
  (b) Any other method, or leave it to controller driver ?
Since i have no idea about this kind of spi-nor controller, so I prefer the (b). 
In my view, before proceeding to writing down a patch, I think
we should come-up with a doc/Readme, which defines all API and interface
structs (taking Angus' proposal as baseline). And then refine that spec first.
Otherwise there may be too many revisions spent on patch RFC's .. 

Any thoughts ?
And is there a space in kernel_docs for such specs ?
maybe the best solution is I send out the new version as soon as possible.

thanks
Huang Shijie
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help