public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* erase / interrupts
@ 2001-05-21 12:28 Jochen Schaeuble
  2001-05-21 12:32 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Jochen Schaeuble @ 2001-05-21 12:28 UTC (permalink / raw)
  To: linux-mtd

I have two questions. First of all, what happens to the interrupts during
an erase? Are they disabled?
The other one is, what happens if the power fails during a erase/write. Does
the init-code handle the reset of the chip?

Thx
  Jochen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: erase / interrupts
  2001-05-21 12:28 erase / interrupts Jochen Schaeuble
@ 2001-05-21 12:32 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-05-21 12:32 UTC (permalink / raw)
  To: psionic; +Cc: linux-mtd


psionic@psionic.de said:
> I have two questions. First of all, what happens to the interrupts
> during an erase? Are they disabled?

That's entirely dependent on the driver. In general, interrupts _shouldn't_ 
be disabled. They aren't disabled in the cfi_cmdset_000[12] drivers.

The erase method may sleep. And it may return immediately, calling the 
erase completion callback later, from a timer. That isn't implemented yet. 
Of course, it's entirely permitted to do both.

> The other one is, what happens if the power fails during a erase/write.
> Does the init-code handle the reset of the chip?

Yes, it should do. It's up the the application to work out the the sector 
in question was partially erased and erase it properly. See the marker 
nodes in JFFS2. 

--
dwmw2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-21 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-21 12:28 erase / interrupts Jochen Schaeuble
2001-05-21 12:32 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox