public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Robert Kaiser <rob@sysgo.de>
Cc: Adam Wozniak <awozniak@comdev.cc>,
	linux-mtd@lists.infradead.org,
	Jonas Holmberg <jonas.holmberg@axis.com>
Subject: Re: Re-entrancy of flash erase/write
Date: Mon, 25 Feb 2002 17:07:37 +0000	[thread overview]
Message-ID: <22009.1014656857@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0202251744570.12881-200000@dagobert.svc.sysgo.de>

rob@sysgo.de said:
>  [David, OK to apply this ?] 

I'd rather it was done in the map driver's set_vpp function itself. 
Sometimes you have more than one map driver, because you have different 
regions of flash - but they all share the same Vpp control. In which case 
you need to do the counting in the map driver anyway. 


>  I looked into this a little further: it seems that the erase
> functions in cfi_cmdset_000?.c and amd_flash.c temporarily release the
> chip->mutex while VPP is on. Won't that allow other threads to get
> hold of the mutex and fiddle with VPP, possibly turning it off ? 

I see the possibility, but surely that would only _actually_ happen if we 
started to support writes during erase suspend? Otherwise, the only thing 
that should happen during an erase is a _read_, which doesn't set and clear 
vpp.


--
dwmw2

  parent reply	other threads:[~2002-02-25 16:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 16:30 Re-entrancy of flash erase/write Robert Kaiser
2002-02-22 17:06 ` David Woodhouse
2002-02-22 17:43   ` Robert Kaiser
2002-02-25 11:09     ` Robert Kaiser
2002-02-25 15:44       ` Adam Wozniak
2002-02-25 16:54         ` Robert Kaiser
2002-02-25 16:55           ` Adam Wozniak
2002-02-25 17:07           ` David Woodhouse [this message]
2002-02-25 17:30             ` Robert Kaiser
2002-02-25 17:32               ` David Woodhouse
2002-02-25 17:49             ` Joakim Tjernlund
2002-02-25 17:54               ` David Woodhouse
2002-02-25 18:08                 ` Joakim Tjernlund
2002-02-25 18:10                   ` David Woodhouse
2002-02-25 17:56               ` Robert Kaiser
2002-02-25 18:11                 ` Joakim Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2002-02-22 17:13 Jonas Holmberg

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=22009.1014656857@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=awozniak@comdev.cc \
    --cc=jonas.holmberg@axis.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=rob@sysgo.de \
    /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