Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1240118

Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init

From Daniel Kurtz <djkurtz@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init
Date 2015-10-06 04:00 +0200
Message-ID <qgpHQ-5h-11@gated-at.bofh.it> (permalink)
References <qcuPM-1Sp-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 25, 2015 at 2:31 PM, James Liao <jamesjj.liao@mediatek.com> wrote:
> In kernel late init, it turns off all unused clocks, which
> needs to access subsystem registers such as VENC and VENC_LT.
>
> Accessing MT8173 VENC registers needs two top clocks, mm_sel and
> venc_sel. Accessing VENC_LT registers needs mm_sel and venclt_sel.
> So we need to keep these clocks on before accessing their registers.
>
> This patch keeps venc_sel / venclt_sel clock on when
> VENC / VENC_LT's power is on, to prevent system hang up while
> accessing its registeres.
>
> Signed-off-by: James Liao <jamesjj.liao@mediatek.com>

After the discussions with James here on the list, I'm happy with this fix.
Compared to any proposed alternative, this patch seems just as
effective and is also simpler and more maintainable and extensible (if
other clocks/power domains need the same treatment).

Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] soc: mediatek: Fix random hang up issue while kernel init James Liao <jamesjj.liao@mediatek.com> - 2015-09-25 08:40 +0200
  Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init Lucas Stach <l.stach@pengutronix.de> - 2015-09-25 10:30 +0200
    Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Matthias Brugger <matthias.bgg@gmail.com> - 2015-09-27 13:30 +0200
      Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-09-29 12:30 +0200
        Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init Lucas Stach <l.stach@pengutronix.de> - 2015-09-30 11:10 +0200
          Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 09:20 +0200
            Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-01 10:10 +0200
              Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 11:30 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-01 12:10 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-02 05:10 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-02 11:30 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-02 12:40 +0200
        Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 09:00 +0200
  Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-06 04:00 +0200

csiph-web