Thread (50 messages) 50 messages, 3 authors, 2012-06-15
STALE5118d

[PATCH 2/3] ARM: OMAP2+: onenand: cleanup for gpmc driver conversion

From: Jon Hunter <hidden>
Date: 2012-06-13 16:38:47
Also in: linux-omap

Hi Afzal,

On 06/13/2012 12:03 AM, Mohammed, Afzal wrote:
Hi Jon,

On Tue, Jun 12, 2012 at 23:00:48, Hunter, Jon wrote:
quoted
On 06/12/2012 01:16 AM, Mohammed, Afzal wrote:
quoted
With the existing code, set_async was done as part of set_sync, hence
requiring GPMC to be configured twice after driver takes control, with
your suggestion too, GPMC would have to be configured twice.
I am just suggesting that you place the call to set_async_mode in the
gpmc_onenand_setup() instead of the gpmc_onenand_init() and remove the
calls from set_sync (like you have done). So I don't see that these
would configure the GPMC twice.
As gpmc_onenand_setup is a callback by onenand driver, we would have
lost the opportunity to configure onenand before driver is probed.
Is that a problem? Looks like it is called early in the probe and so I
would hope no one is attempting to access the onenand itself before the
probe has completed.
This would cause requirement of double GPMC configuring and we lost
the opportunity to configure GPMC before driver is probed.
I am not convinced we need to. Furthermore with your change you do not
actually set async mode in the onenand until _set_sync() is called.
And the first step for onenand configuration is always to set it
to async mode (with the way it is done now), so it seems reasonable
to rely on normal GPMC configuration for async & then do reconfigure
for sync.
Yes but as far as I can see, it seems that this is the intent of the
onenand_setup() function to perform the necessary initialisation.

Have you tested onenand? Do you have a board with onenand?

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