All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: "Mohammed, Afzal" <afzal@ti.com>,
	khilman@ti.com,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v4-alt 3/6] ARM: OMAP3: hwmod data: add gpmc
Date: Tue, 22 May 2012 09:42:15 -0700	[thread overview]
Message-ID: <20120522164215.GE16308@atomide.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1205212344460.1275@utopia.booyaka.com>

* Paul Walmsley <paul@pwsan.com> [120521 23:51]:
> 
> Next, I'd suggest implementing the code to allow GPMC timing configuration 
> from raw register data (the second method above).  This is hackish but for 
> some boards, this is all we'll have.  This will also presumably require 
> some extra DT bindings for the register data.  If this method is used, 
> this code should also call a PM function to block clock rate changes on 
> the GPMC clock, and an explanatory warning should be logged to the 
> console.

Also something to note here is that generating dynamic timings from the
fixed GPMC register values won't work for other frequencies.

As far as I remember, the main problem trying to convert fixed value
GPMC timings into dynamic timings is the fact that some GPMC values
calculated depend on clock cycles, while other values depend on time.

So the cycle values remain unknown trying to upsample from fixed timings.
 
> For boards that we don't have access to, and all someone would have are 
> the register values set by the bootloader, I'd propose a phased approach:
> 
> 1. The kernel should log the bootloader-provided GPMC timing registers to 
> the console during boot, along with a warning message that indicates that 
> GPMC for these boards will cease to function in the near future unless 
> patches are provided to update the kernel board file and/or DT data with 
> the GPMC register contents.  This should allow people who have those 
> boards and who care about them to submit kernel patches to allow the 
> GPMC-attached devices to continue to function.

Unfortunately for many of the older boards these values will probably
remain unknown.

So the better approach here is to just disable frequency scaling
for these cases. Otherwise we'll be breaking old boards with smsc911x
where the timings for the FPGA controlling smsc911x are unknown.

If we somehow manage to get those values without breaking support for
these boards, then yes I agree we should deprecate hardcoded and
bootloader values.
 
> 2. A patch to Documentation/feature-removal-schedule.txt should be
> submitted which states that support for implicit bootloader GPMC timings
> will be removed within two or three kernel releases.

I'm fine with that assuming we somehow first have the values for the
most commonly used boards for smsc911x. But before that happens, we can't
really deprecate bootloader set GPMC values.

Regards,

Tony 

  parent reply	other threads:[~2012-05-22 16:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-02  8:45 [PATCH v4-alt 0/6] GPMC driver migrate one Afzal Mohammed
2012-05-02  8:45 ` [PATCH v4-alt 1/6] ARM: OMAP2+: gpmc: driver conversion Afzal Mohammed
2012-05-02  8:46 ` [PATCH v4-alt 2/6] ARM: OMAP2+: gpmc: Adapt to HWMOD Afzal Mohammed
2012-05-02  8:46 ` [PATCH v4-alt 3/6] ARM: OMAP3: hwmod data: add gpmc Afzal Mohammed
2012-05-06  2:04   ` Paul Walmsley
2012-05-07 11:12     ` Mohammed, Afzal
2012-05-08 13:12       ` Mohammed, Afzal
2012-05-08 15:37         ` Paul Walmsley
2012-05-08 15:32       ` Paul Walmsley
2012-05-10  6:03         ` Mohammed, Afzal
2012-05-12  4:23           ` Mohammed, Afzal
2012-05-22  6:47           ` Paul Walmsley
2012-05-22 11:35             ` Mohammed, Afzal
2012-05-22 16:42             ` Tony Lindgren [this message]
2012-05-23 14:51               ` Paul Walmsley
2012-05-25  7:26                 ` Tony Lindgren
2012-05-25 10:15                   ` Mohammed, Afzal
2012-06-05  7:13                     ` Tony Lindgren
2012-06-12 11:36               ` Mohammed, Afzal
2012-05-02  8:46 ` [PATCH v4-alt 4/6] ARM: OMAP2+: gpmc: driver migration hack Afzal Mohammed
2012-05-02  8:46 ` [PATCH v4-alt 5/6] ARM: OMAP2+: gpmc-smsc911x: Add helper for driver conversion Afzal Mohammed
2012-05-02  8:46 ` [PATCH v4-alt 6/6] ARM: OMAP2+: board omap3evm: gpmc driver adaptation Afzal Mohammed
2012-05-08 21:36 ` [PATCH v4-alt 0/6] GPMC driver migrate one Tony Lindgren
2012-05-10  6:35   ` Mohammed, Afzal
2012-05-11 20:00     ` Tony Lindgren
2012-05-14  4:59       ` Mohammed, Afzal

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=20120522164215.GE16308@atomide.com \
    --to=tony@atomide.com \
    --cc=afzal@ti.com \
    --cc=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.