public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: mediatek: Fix mux clock re-parenting
@ 2021-01-25 17:08 Laurent Pinchart
  2021-01-25 17:08 ` [PATCH 1/2] clk: mediatek: mux: Drop unused clock ops Laurent Pinchart
  2021-01-25 17:08 ` [PATCH 2/2] clk: mediatek: mux: Update parent at enable time Laurent Pinchart
  0 siblings, 2 replies; 6+ messages in thread
From: Laurent Pinchart @ 2021-01-25 17:08 UTC (permalink / raw)
  To: linux-clk
  Cc: Michael Turquette, Stephen Boyd, Matthias Brugger, Weiyi Lu,
	Phi-Bang Nguyen, linux-mediatek

Hello,

This small patch series fixes re-parenting of the mux clocks on MediaTek
platforms. Patch 1/2 is a drive-by cleanup that removes unneeded code
(as I didn't want to update that code in the next patch), while patch
2/2 fixes the problem. Please see invidual patches for details.

The code has been tested with the CAMTG2 and CAMTG3 clocks on MT8183.
Quite interestingly some parents can be selected without this fix (I can
for instance select a parent that has a lower frequency), but not all of
them. I'm not sure if all mux clocks are affected, but as far as I can
tell the fix shouldn't introduce regressions.

Laurent Pinchart (2):
  clk: mediatek: mux: Drop unused clock ops
  clk: mediatek: mux: Update parent at enable time

 drivers/clk/mediatek/clk-mux.c | 93 ++++++++++++----------------------
 drivers/clk/mediatek/clk-mux.h | 14 ++---
 2 files changed, 34 insertions(+), 73 deletions(-)

-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2021-02-09  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-25 17:08 [PATCH 0/2] clk: mediatek: Fix mux clock re-parenting Laurent Pinchart
2021-01-25 17:08 ` [PATCH 1/2] clk: mediatek: mux: Drop unused clock ops Laurent Pinchart
2021-02-09  8:02   ` Stephen Boyd
2021-01-25 17:08 ` [PATCH 2/2] clk: mediatek: mux: Update parent at enable time Laurent Pinchart
2021-01-28  4:04   ` Weiyi Lu
2021-02-09  8:02   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox