All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Artur Petrosyan <Arthur.Petrosyan@synopsys.com>
Cc: Felipe Balbi <balbi@kernel.org>,
	Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>,
	linux-usb@vger.kernel.org, John Youn <John.Youn@synopsys.com>
Subject: Re: [PATCH 1/3] usb: dwc2: Add default param to control power optimization.
Date: Fri, 26 Mar 2021 14:32:25 +0100	[thread overview]
Message-ID: <YF3iaZT47tT11xFP@kroah.com> (raw)
In-Reply-To: <20210326102424.7AE5BA005D@mailhost.synopsys.com>

On Fri, Mar 26, 2021 at 02:24:23PM +0400, Artur Petrosyan wrote:
> There are 3 power saving options supported in dwc2 core
> 1. Hibernation
> 2. Partial Power Down
> 3. Clock gating
> 
> To enable or disable the power saving features earlier users
> had to set "power_down" param to "0". However, "power_down"
> parameter is meant to and used for distinguishing between the
> power saving options.
> 
> So, if Hibernation is enabled then
> "power_down = 2"
> if Partial Power Down is enabled then
> "power_down = 1"
> if not Hibernation nor Partial Power Down are enabled then
> "power_down = 0".
> 
> Setting the "power_down" to "0" for disabling power saving
> options is not right because it is used to differentiate
> power saving options.
> 
> Therefor added a new parameter named "power_saving" which will
> be used only for enabling or disabling power saving modes.
> 
> NOTE: If Hibernation or Partial Power Down modes are disabled
> then by default Clock gating mode is used.
> 
> - Added a default param "power_saving" to enable or
>   disable hibernation or partial power down features.

But nothing changes this option?  So why does it matter?

> 
> - Printed hibernation param in hw_params_show and
>   power_saving param in params_show.

Please make this a separate patch for the hibernation option, as it has
nothing to do with this patch at all.

thanks,

greg k-h

       reply	other threads:[~2021-03-26 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210326102424.7AE5BA005D@mailhost.synopsys.com>
2021-03-26 13:32 ` Greg Kroah-Hartman [this message]
     [not found] <20210318061247.B2EACA005D@mailhost.synopsys.com>
2021-03-23 11:24 ` [PATCH 1/3] usb: dwc2: Add default param to control power optimization Greg Kroah-Hartman
2021-03-24 16:44   ` Artur Petrosyan
2021-03-26 13:30     ` Greg Kroah-Hartman

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=YF3iaZT47tT11xFP@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=Arthur.Petrosyan@synopsys.com \
    --cc=John.Youn@synopsys.com \
    --cc=Minas.Harutyunyan@synopsys.com \
    --cc=balbi@kernel.org \
    --cc=linux-usb@vger.kernel.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 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.