mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Yunzhi Li <lyz@rock-chips.com>
Cc: <johnyoun@synopsys.com>, <gregory.herrero@intel.com>,
	<yousaf.kaukab@intel.com>, <r.baldyga@samsung.com>,
	<dinguyen@opensource.altera.com>, <cf@rock-chips.com>,
	<hl@rock-chips.com>, <wulf@rock-chips.com>, <yk@rock-chips.com>,
	<huangtao@rock-chips.com>, <walkrain@126.com>,
	<dianders@chromium.org>, <jwerner@chromium.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH v1] usb: dwc2: reduce dwc2 driver probe time
Date: Tue, 10 Feb 2015 08:47:18 -0600	[thread overview]
Message-ID: <20150210144718.GB16711@saruman.tx.rr.com> (raw)
In-Reply-To: <1423577139-4165-1-git-send-email-lyz@rock-chips.com>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

Hi,

On Tue, Feb 10, 2015 at 10:05:39PM +0800, Yunzhi Li wrote:
> I found that the probe function of dwc2 driver takes much time
> when kernel boot up. There are many long delays in the probe
> function these take almost 1 second.
> 
> This patch trying to reduce unnecessary delay time.
> 
> In dwc2_core_reset() I see it use two at least 20ms delays to
> wait AHB idle and core soft reset, but dwc2 data book said that
> dwc2 core soft reset and AHB idle just need a few clocks (I think
> it refers to AHB clock, and AHB clock run at 150MHz in my RK3288
> board), so 20ms is too long, delay 1us for wait AHB idle and soft
> reset is enough.

do you know what's the upper boundary for AHB clock ? How fast can it
be? It's not wise to change timers because "it works on my RK3288
board", you need to guarantee that this won't break anybody else.

The only way to do that is to look at the architecture part of dwc2 and
see if there are any limits to how fast AHB clock can be.

Also, you're not even sure if it refers to AHB clock. Usually, you can
also change which clock source to use, so you need to cope with that as
well.

Please go back to your documentation and figure these out.

Thanks

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-02-10 14:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 14:05 Yunzhi Li
2015-02-10 14:47 ` Felipe Balbi [this message]
2015-02-10 18:23   ` Julius Werner
2015-02-11 11:40     ` Roy
2015-02-12  3:33       ` John Youn
2015-02-12 13:21         ` Kaukab, Yousaf

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=20150210144718.GB16711@saruman.tx.rr.com \
    --to=balbi@ti.com \
    --cc=cf@rock-chips.com \
    --cc=dianders@chromium.org \
    --cc=dinguyen@opensource.altera.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=gregory.herrero@intel.com \
    --cc=hl@rock-chips.com \
    --cc=huangtao@rock-chips.com \
    --cc=johnyoun@synopsys.com \
    --cc=jwerner@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lyz@rock-chips.com \
    --cc=r.baldyga@samsung.com \
    --cc=walkrain@126.com \
    --cc=wulf@rock-chips.com \
    --cc=yk@rock-chips.com \
    --cc=yousaf.kaukab@intel.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

all inboxes | Powered by JetHome®