All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: BUG: [PATCH v2] isoc: mediatek: Check for error clk pointer
@ 2022-01-30  2:43 ` Jiasheng Jiang
  0 siblings, 0 replies; 8+ messages in thread
From: Jiasheng Jiang @ 2022-01-30  2:43 UTC (permalink / raw)
  To: justinkb
  Cc: frank-w, broonie, gregkh, lgirdwood, linux-arm-kernel,
	linux-kernel, linux-mediatek, matthias.bgg, Jiasheng Jiang

On Fri, Jan 28, 2022 at 10:26:51PM +0800, Paul Mulders wrote:
> I guess this breaks all MT7622 SoCs since it'll prematurely exit
> init_clks (and subsequently init_scp) completely once devm_clk_get
> fails to get a reference to the mm clock producer (which happens to be
> the first one tried). This is because MT7623 has a GPU (so no mm
> clock) and MT7622 doesn't, and as a result the other clock producer
> pointers never get initialized (and other stuff in init_scp after
> returning from the error never happens).
>
> The patch seems fundamentally flawed, I guess it was either not tested
> at all, or only tested on a MT7623. The initialization functions seem
> designed with the idea that it's ok if some clocks aren't present, so
> stopping the initialization when one of them isn't present seems
> wrong. (For example, there is also a MT7622B variant of the MT7622
> which probably also lacks some clocks MT7622(A) does have).

I don't think the patch for init_clks() is flawed.
At most it is incompleted.
What it did is like fixing a potential error in the tool platform
providing service for the upper application, like what you said,
MT7623 and MT7622.
We should not keep the error in the platform because of the upper
application.
And it seems like it is MT7622 that is flawed.
The better way is to fix both the bug in init_clks() and its caller,
MT7622.

Sincerely thanks,
Jiang


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-02-02  8:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-30  2:43 BUG: [PATCH v2] isoc: mediatek: Check for error clk pointer Jiasheng Jiang
2022-01-30  2:43 ` Jiasheng Jiang
2022-02-01 22:19 ` Daniel Golle
2022-02-01 22:19   ` Daniel Golle
2022-02-01 22:19   ` Daniel Golle
2022-02-02  8:09   ` Aw: " Frank Wunderlich
2022-02-02  8:09     ` Frank Wunderlich
2022-02-02  8:09     ` Frank Wunderlich

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.