From: khilman@ti.com (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] net: davinci_emac: Add pre_open, post_stop platform callbacks
Date: Thu, 03 May 2012 07:22:34 -0700 [thread overview]
Message-ID: <87sjfhmjit.fsf@ti.com> (raw)
In-Reply-To: <B5906170F1614E41A8A28DE3B8D121433EA72820@DBDE01.ent.ti.com> (Vaibhav Bedia's message of "Thu, 3 May 2012 10:44:44 +0000")
"Bedia, Vaibhav" <vaibhav.bedia@ti.com> writes:
> On Thu, May 03, 2012 at 05:17:18, Mark A. Greer wrote:
>> From: "Mark A. Greer" <mgreer@animalcreek.com>
>>
>> The davinci EMAC driver has been incorporated into the am35x
>> family of SoC's which is OMAP-based. The incorporation is
>> incomplete in that the EMAC cannot unblock the [ARM] core if
>> its blocked on a 'wfi' instruction. This is an issue with
>> the cpu_idle code because it has the core execute a 'wfi'
>> instruction.
>>
>> To work around this issue, add platform data callbacks which
>> are called at the beginning of the open routine and at the
>> end of the stop routine of the davinci_emac driver. The
>> callbacks allow the platform code to issue disable_hlt() and
>> enable_hlt() calls appropriately. Calling disable_hlt()
>> prevents cpu_idle from issuing the 'wfi' instruction.
>>
>> It is not sufficient to simply call disable_hlt() when
>> there is an EMAC present because it could be present but
>> not actually used in which case, we do want the 'wfi' to
>> be executed.
>>
>
> Are you trying to say that if ARM executes _just_ wfi and _absolutely
> nothing else_ is done in the OMAP PM code, EMAC stops working?
>
> However, if this is indeed the case, then probably a better solution would be
> to invoke disable_hlt() from the board file when EMAC support is compiled in.
No. As Mark stated in the changelog, doing that will prevent any
low-power states states even if the EMAC is not in use. IMO, it is best
to only prevent WFI when absolutely needed.
Kevin
next prev parent reply other threads:[~2012-05-03 14:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-02 23:47 [PATCH] net: davinci_emac: Add pre_open, post_stop platform callbacks Mark A. Greer
2012-05-03 10:44 ` Bedia, Vaibhav
2012-05-03 14:22 ` Kevin Hilman [this message]
2012-05-03 16:09 ` Mark A. Greer
2012-05-03 18:21 ` Bedia, Vaibhav
2012-05-03 18:46 ` Mark A. Greer
2012-05-03 19:25 ` Bedia, Vaibhav
2012-05-03 20:22 ` Ben Hutchings
2012-05-03 21:32 ` Kevin Hilman
2012-05-04 13:55 ` Bedia, Vaibhav
2012-05-04 14:31 ` Kevin Hilman
2012-05-04 18:29 ` Mark A. Greer
2012-05-04 21:02 ` Kevin Hilman
2012-05-04 21:47 ` Mark A. Greer
2012-05-04 16:35 ` Mark A. Greer
2012-05-04 16:44 ` Kevin Hilman
2012-05-04 18:48 ` Mark A. Greer
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=87sjfhmjit.fsf@ti.com \
--to=khilman@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).