devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: srinivas kandagatla <srinivas.kandagatla@st.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Maxime Coquelin <maxime.coquelin@st.com>,
	Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, Russell King <linux@arm.linux.org.uk>,
	kernel@stlinux.com, Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Olof Johansson <olof@lixom.net>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	stephen.gallimore@st.com, Rob Herring <robh+dt@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>, Rob Landley <rob@landley.net>,
	Kumar Gala <galak@codeaurora.org>,
	Grant Likely <grant.likely@linaro.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 0/6] ARM: STi reset controller support
Date: Tue, 25 Feb 2014 09:08:28 +0000	[thread overview]
Message-ID: <530C5D8C.1080809@st.com> (raw)
In-Reply-To: <1393254982.3091.44.camel@pizza.hi.pengutronix.de>

On 24/02/14 15:16, Philipp Zabel wrote:
> Hi Srinivas,
> 
> Am Montag, den 24.02.2014, 14:03 +0000 schrieb srinivas kandagatla:
>> Thanks Philipp for your comments,
>>
>> On 24/02/14 10:33, Philipp Zabel wrote:
>>>>> Did Srini's explanations convinced you?
>>>>>
>>>>> If so, could you queue the series for v3.15?
>>> to be honest, I'm not comfortable with this explanation. If the
>>> "powerdown" bits only gate the clocks to those modules, calling it a
>>> reset control is clearly the wrong abstraction. If that is the case,
>>> couldn't you handle those bits via the clock framework?
>> I just had a re-look at the IPs specs for more information on where
>> these power-down signals are actually terminating on the IP side.
>>
>> For example: ST-Synopsis Ethernet GMAC IP has two pins
>> power_down_req[IN] and power_down_ack[OUT]. power_down_req is used by
>> the software to either put the IP in powerdown or bring it out of
>> powerdown state.
> 
> Now I'm a bit confused. There is no mention of GMAC in your patches,
> and for ETH[01] they contain only the SOFTRESET bits. I have no issue
> with the SOFTRESETs.
Yes, GMAC was a bad example indeed. However this same logic applies to
the USB IP as well.

GMAC power-down-reset can be added to the power-down-reset list for
consistency.

We did not define the power-down-reset for GMAC because the reset state
of GMAC will not be in power down. softreset should be enough to bring
the IP in to a usable state. So the software never drives the power
down-request but instead uses softreset in this particular case.

> 
>> The IP itself drives power_down_ack to indicate when the power down
>> request is successfully finished. For power_down/power_up request the IP
>> will change the internal state accordingly including powering up/down
>> its internal blocks and/or clock gating.
>>
>>> If on the other hand these powerdown bits also trigger reset machinery,
>>> such that asserting and deasserting that bit will change the module's
>>> internal state, I could be convinced to queue them like this.
>> This is true with ST IPs, these lines change the state of the IP as
>> described above. Reset framework seems to fits in very well with this
>> behavior rather than power-domains or clock framework.
> 
> If you put the IP in power down when it is idle, and then power it up
> again, will the IP registers have kept their previous state?
No, the context is lost, the IP needs re-initialization.

Thanks,
srini
> 
> regards
> Philipp
> 
> 
> 

  reply	other threads:[~2014-02-25  9:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 10:50 [PATCH v1 0/6] STi reset controller suppport Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 1/6] drivers: reset: STi SoC system configuration reset controller support Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 2/6] drivers: reset: Reset controller driver for STiH415 Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 3/6] drivers: reset: Reset controller driver for STiH416 Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 4/6] drivers: reset: stih415: add softreset controller Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 5/6] drivers: reset: stih416: " Srinivas Kandagatla
2014-01-14 10:51 ` [PATCH v1 6/6] ARM: STi: Add reset controller support to mach-sti Kconfig Srinivas Kandagatla
2014-02-03 14:27 ` [PATCH v2 0/6] ARM: STi reset controller support srinivas.kandagatla
2014-02-03 14:28   ` [PATCH v2 1/6] drivers: reset: STi SoC system configuration " srinivas.kandagatla
2014-02-03 14:28   ` [PATCH v2 2/6] drivers: reset: Reset controller driver for STiH415 srinivas.kandagatla
     [not found]   ` <1391437665-11913-1-git-send-email-srinivas.kandagatla-qxv4g6HH51o@public.gmane.org>
2014-02-03 14:28     ` [PATCH v2 3/6] drivers: reset: Reset controller driver for STiH416 srinivas.kandagatla-qxv4g6HH51o
2014-02-03 14:28     ` [PATCH v2 4/6] drivers: reset: stih415: add softreset controller srinivas.kandagatla-qxv4g6HH51o
2014-02-03 14:28   ` [PATCH v2 5/6] drivers: reset: stih416: " srinivas.kandagatla
2014-02-03 14:29   ` [PATCH v2 6/6] ARM: STi: Add reset controller support to mach-sti Kconfig srinivas.kandagatla
2014-02-05  9:28   ` [PATCH v2 0/6] ARM: STi reset controller support Philipp Zabel
2014-02-07 12:54     ` srinivas kandagatla
2014-02-19 13:57       ` Maxime Coquelin
     [not found]         ` <5304B849.2080806-qxv4g6HH51o@public.gmane.org>
2014-02-24 10:33           ` Philipp Zabel
2014-02-24 14:03             ` srinivas kandagatla
     [not found]               ` <530B514A.4070209-qxv4g6HH51o@public.gmane.org>
2014-02-24 15:16                 ` Philipp Zabel
2014-02-25  9:08                   ` srinivas kandagatla [this message]
     [not found]                     ` <530C5D8C.1080809-qxv4g6HH51o@public.gmane.org>
2014-02-25  9:47                       ` Philipp Zabel
2014-02-25 10:56                         ` srinivas kandagatla
     [not found]                           ` <530C76F0.8000909-qxv4g6HH51o@public.gmane.org>
2014-02-25 11:15                             ` Philipp Zabel

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=530C5D8C.1080809@st.com \
    --to=srinivas.kandagatla@st.com \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=grant.likely@linaro.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=kernel@stlinux.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=maxime.coquelin@st.com \
    --cc=olof@lixom.net \
    --cc=p.zabel@pengutronix.de \
    --cc=pawel.moll@arm.com \
    --cc=rob@landley.net \
    --cc=robh+dt@kernel.org \
    --cc=stephen.gallimore@st.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 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).