All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Anderson <dianders@chromium.org>
To: Heiko Stuebner <heiko@sntech.de>
Cc: Kishon Vijay Abraham I <kishon@ti.com>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@codeaurora.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"open list:ARM/Rockchip SoC..."
	<linux-rockchip@lists.infradead.org>,
	Romain Perier <romain.perier@gmail.com>,
	Arnd Bergmann <arnd@arndb.de>, Lin Huang <hl@rock-chips.com>
Subject: Re: [PATCH v2 7/8] ARM: dts: rockchip: assign usbphy480m_src to the new usbphy pll on veyron
Date: Mon, 9 Nov 2015 13:08:43 -0800	[thread overview]
Message-ID: <CAD=FV=WAmx1y-Euf5-FfdcawxbduKERR-==opWT9VtnwEjmycw@mail.gmail.com> (raw)
In-Reply-To: <1446998681-26436-8-git-send-email-heiko@sntech.de>

Heiko,

On Sun, Nov 8, 2015 at 8:04 AM, Heiko Stuebner <heiko@sntech.de> wrote:
> Veyron devices try to always set the source for usbphy480m to the usbphy0
> that is the phy connected to the otg controller, because the firmware-
> default is usbphy1, the ehci-controller connected to the internal camera
> that might get turned off way easier to save power.
>
> In the mainline kernel we currently don't use the usbphy480m_src at all,
> as it mainly powers the uart0 source that is connected to the bluetooth
> component of the wifi/bt combo.
>
> So move that assignment over to the new real pll clock inside the usbphy.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>  arch/arm/boot/dts/rk3288-veyron.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi
> index d4263ed..c8329b5 100644
> --- a/arch/arm/boot/dts/rk3288-veyron.dtsi
> +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi
> @@ -410,7 +410,7 @@
>         status = "okay";
>
>         assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
> -       assigned-clock-parents = <&cru SCLK_OTGPHY0>;
> +       assigned-clock-parents = <&usbphy0>;
>         dr_mode = "host";
>  };

This is right, hence:

Reviewed-by: Douglas Anderson <dianders@chromium.org>

...you will slightly break bisectability with this series though,
right?  In the previous patch in this series you changed the clocks in
the mux away from the fake ones to be the real ones.  If you have
either that patch without this one or this patch without that one then
clock parents won't get assigned properly...

I seem to remember that one of the USB phy clocks was kinds jittery (I
want to say it was the EHCI one) and that was causing problems talking
to the BT UART at 3Mbps.  I kinda doubt we have anyone running BT on
upstream over that UART (only used on veyron devices with Broadcom
WiFi), so maybe this is OK.  ...but if you had any other ideas for how
to avoid breaking bisect that would be nice.

If nothing else, if we're going to break bisect then the two commits
should reference each other and say that you need both and that with
only one you might see a different clock selected...

-Doug

WARNING: multiple messages have this Message-ID (diff)
From: dianders@chromium.org (Doug Anderson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 7/8] ARM: dts: rockchip: assign usbphy480m_src to the new usbphy pll on veyron
Date: Mon, 9 Nov 2015 13:08:43 -0800	[thread overview]
Message-ID: <CAD=FV=WAmx1y-Euf5-FfdcawxbduKERR-==opWT9VtnwEjmycw@mail.gmail.com> (raw)
In-Reply-To: <1446998681-26436-8-git-send-email-heiko@sntech.de>

Heiko,

On Sun, Nov 8, 2015 at 8:04 AM, Heiko Stuebner <heiko@sntech.de> wrote:
> Veyron devices try to always set the source for usbphy480m to the usbphy0
> that is the phy connected to the otg controller, because the firmware-
> default is usbphy1, the ehci-controller connected to the internal camera
> that might get turned off way easier to save power.
>
> In the mainline kernel we currently don't use the usbphy480m_src at all,
> as it mainly powers the uart0 source that is connected to the bluetooth
> component of the wifi/bt combo.
>
> So move that assignment over to the new real pll clock inside the usbphy.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>  arch/arm/boot/dts/rk3288-veyron.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi
> index d4263ed..c8329b5 100644
> --- a/arch/arm/boot/dts/rk3288-veyron.dtsi
> +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi
> @@ -410,7 +410,7 @@
>         status = "okay";
>
>         assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
> -       assigned-clock-parents = <&cru SCLK_OTGPHY0>;
> +       assigned-clock-parents = <&usbphy0>;
>         dr_mode = "host";
>  };

This is right, hence:

Reviewed-by: Douglas Anderson <dianders@chromium.org>

...you will slightly break bisectability with this series though,
right?  In the previous patch in this series you changed the clocks in
the mux away from the fake ones to be the real ones.  If you have
either that patch without this one or this patch without that one then
clock parents won't get assigned properly...

I seem to remember that one of the USB phy clocks was kinds jittery (I
want to say it was the EHCI one) and that was causing problems talking
to the BT UART at 3Mbps.  I kinda doubt we have anyone running BT on
upstream over that UART (only used on veyron devices with Broadcom
WiFi), so maybe this is OK.  ...but if you had any other ideas for how
to avoid breaking bisect that would be nice.

If nothing else, if we're going to break bisect then the two commits
should reference each other and say that you need both and that with
only one you might see a different clock selected...

-Doug

  reply	other threads:[~2015-11-09 21:08 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-08 16:04 [PATCH v2 0/8] phy: rockchip-usb: correct pll handling and usb-uart Heiko Stuebner
2015-11-08 16:04 ` Heiko Stuebner
2015-11-08 16:04 ` [PATCH v2 1/8] phy: rockchip-usb: fix clock get-put mismatch Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04 ` [PATCH v2 2/8] phy: rockchip-usb: introduce a common data-struct for the device Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04 ` [PATCH v2 3/8] phy: rockchip-usb: move per-phy init into a separate function Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04 ` [PATCH v2 4/8] phy: rockchip-usb: expose the phy-internal PLLs Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-09 20:59   ` Doug Anderson
2015-11-09 20:59     ` Doug Anderson
2015-11-09 20:59     ` Doug Anderson
2015-11-09 21:08     ` Heiko Stuebner
2015-11-09 21:08       ` Heiko Stuebner
2015-11-09 21:08       ` Heiko Stuebner
2015-11-09 21:12       ` Doug Anderson
2015-11-09 21:12         ` Doug Anderson
2015-11-09 21:12         ` Doug Anderson
2015-11-08 16:04 ` [PATCH v2 5/8] clk: rockchip: fix usbphy-related clocks Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-09 21:01   ` Doug Anderson
2015-11-09 21:01     ` Doug Anderson
2015-11-09 21:01     ` Doug Anderson
2015-11-08 16:04 ` [PATCH v2 6/8] ARM: dts: rockchip: add clock-cells for usb phy nodes Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-09 21:01   ` Doug Anderson
2015-11-09 21:01     ` Doug Anderson
2015-11-09 21:01     ` Doug Anderson
2015-11-08 16:04 ` [PATCH v2 7/8] ARM: dts: rockchip: assign usbphy480m_src to the new usbphy pll on veyron Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-09 21:08   ` Doug Anderson [this message]
2015-11-09 21:08     ` Doug Anderson
2015-11-09 21:08     ` Doug Anderson
2015-11-09 22:08     ` Heiko Stuebner
2015-11-09 22:08       ` Heiko Stuebner
2015-11-09 22:08       ` Heiko Stuebner
2015-11-08 16:04 ` [PATCH v2 8/8] phy: rockchip-usb: add handler for usb-uart functionality Heiko Stuebner
2015-11-08 16:04   ` Heiko Stuebner
2015-11-09 21:11 ` [PATCH v2 0/8] phy: rockchip-usb: correct pll handling and usb-uart Doug Anderson
2015-11-09 21:11   ` Doug Anderson
2015-11-09 21:11   ` Doug Anderson
2015-11-09 21:27   ` Heiko Stuebner
2015-11-09 21:27     ` Heiko Stuebner
2015-11-09 21:27     ` Heiko Stuebner
2015-11-09 21:32     ` Doug Anderson
2015-11-09 21:32       ` Doug Anderson
2015-11-09 21:32       ` Doug Anderson
2015-11-09 21:48       ` Heiko Stuebner
2015-11-09 21:48         ` Heiko Stuebner
2015-11-09 21:48         ` Heiko Stuebner

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='CAD=FV=WAmx1y-Euf5-FfdcawxbduKERR-==opWT9VtnwEjmycw@mail.gmail.com' \
    --to=dianders@chromium.org \
    --cc=arnd@arndb.de \
    --cc=heiko@sntech.de \
    --cc=hl@rock-chips.com \
    --cc=kishon@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mturquette@baylibre.com \
    --cc=romain.perier@gmail.com \
    --cc=sboyd@codeaurora.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.