* [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate"
@ 2023-04-23 12:38 Adam Ford
2023-04-24 1:43 ` Peng Fan
2023-05-03 1:23 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Adam Ford @ 2023-04-23 12:38 UTC (permalink / raw)
To: linux-clk
Cc: aford, Adam Ford, Abel Vesa, Peng Fan, Michael Turquette,
Stephen Boyd, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
Fabio Estevam, NXP Linux Team, linux-arm-kernel, linux-kernel
This reverts commit 156e96ff2172518b6f83e97d8f11f677bc668e22.
This patch was found to cause some division issues on the i.MX8MP
which causes the video clocks to not properly divide when division
was greate than 8. This causes video failures on disp1_pix and
disp2_pix clocks.
Until a better solution is found, we'll have to revert this.
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index 6883a8199b6c..cbf0d7955a00 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -119,17 +119,10 @@ static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
return ret;
}
-static int imx8m_clk_divider_determine_rate(struct clk_hw *hw,
- struct clk_rate_request *req)
-{
- return clk_divider_ops.determine_rate(hw, req);
-}
-
static const struct clk_ops imx8m_clk_composite_divider_ops = {
.recalc_rate = imx8m_clk_composite_divider_recalc_rate,
.round_rate = imx8m_clk_composite_divider_round_rate,
.set_rate = imx8m_clk_composite_divider_set_rate,
- .determine_rate = imx8m_clk_divider_determine_rate,
};
static u8 imx8m_clk_composite_mux_get_parent(struct clk_hw *hw)
--
2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate"
2023-04-23 12:38 [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate" Adam Ford
@ 2023-04-24 1:43 ` Peng Fan
2023-05-01 16:17 ` Adam Ford
2023-05-03 1:23 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: Peng Fan @ 2023-04-24 1:43 UTC (permalink / raw)
To: Adam Ford, linux-clk@vger.kernel.org
Cc: aford@beaconembedded.com, Abel Vesa, Michael Turquette,
Stephen Boyd, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
Fabio Estevam, dl-linux-imx, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
> Subject: [PATCH] Revert "clk: imx: composite-8m: Add support to
> determine_rate"
>
> This reverts commit 156e96ff2172518b6f83e97d8f11f677bc668e22.
>
> This patch was found to cause some division issues on the i.MX8MP which
> causes the video clocks to not properly divide when division was greate than
> 8. This causes video failures on disp1_pix and disp2_pix clocks.
>
> Until a better solution is found, we'll have to revert this.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Indeed we already see issue in NXP local CI with the previous patch.
Acked-by: Peng Fan <peng.fan@nxp.com>
>
> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-
> composite-8m.c
> index 6883a8199b6c..cbf0d7955a00 100644
> --- a/drivers/clk/imx/clk-composite-8m.c
> +++ b/drivers/clk/imx/clk-composite-8m.c
> @@ -119,17 +119,10 @@ static int
> imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
> return ret;
> }
>
> -static int imx8m_clk_divider_determine_rate(struct clk_hw *hw,
> - struct clk_rate_request *req)
> -{
> - return clk_divider_ops.determine_rate(hw, req);
> -}
> -
> static const struct clk_ops imx8m_clk_composite_divider_ops = {
> .recalc_rate = imx8m_clk_composite_divider_recalc_rate,
> .round_rate = imx8m_clk_composite_divider_round_rate,
> .set_rate = imx8m_clk_composite_divider_set_rate,
> - .determine_rate = imx8m_clk_divider_determine_rate,
> };
>
> static u8 imx8m_clk_composite_mux_get_parent(struct clk_hw *hw)
> --
> 2.39.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate"
2023-04-24 1:43 ` Peng Fan
@ 2023-05-01 16:17 ` Adam Ford
0 siblings, 0 replies; 4+ messages in thread
From: Adam Ford @ 2023-05-01 16:17 UTC (permalink / raw)
To: Peng Fan
Cc: linux-clk@vger.kernel.org, aford@beaconembedded.com, Abel Vesa,
Michael Turquette, Stephen Boyd, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, dl-linux-imx,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
On Sun, Apr 23, 2023 at 8:43 PM Peng Fan <peng.fan@nxp.com> wrote:
>
> > Subject: [PATCH] Revert "clk: imx: composite-8m: Add support to
> > determine_rate"
> >
> > This reverts commit 156e96ff2172518b6f83e97d8f11f677bc668e22.
> >
> > This patch was found to cause some division issues on the i.MX8MP which
> > causes the video clocks to not properly divide when division was greate than
> > 8. This causes video failures on disp1_pix and disp2_pix clocks.
> >
> > Until a better solution is found, we'll have to revert this.
> >
Abel / Stephen,
Is there a way we can get this applied and put in for RC1? When I
originally did this, I only tested with Nano and some brief testing
with Mini, but it wasn't until I tested with Plus that I found
issues.
thanks
adam
> > Signed-off-by: Adam Ford <aford173@gmail.com>
>
> Indeed we already see issue in NXP local CI with the previous patch.
>
> Acked-by: Peng Fan <peng.fan@nxp.com>
>
> >
> > diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-
> > composite-8m.c
> > index 6883a8199b6c..cbf0d7955a00 100644
> > --- a/drivers/clk/imx/clk-composite-8m.c
> > +++ b/drivers/clk/imx/clk-composite-8m.c
> > @@ -119,17 +119,10 @@ static int
> > imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
> > return ret;
> > }
> >
> > -static int imx8m_clk_divider_determine_rate(struct clk_hw *hw,
> > - struct clk_rate_request *req)
> > -{
> > - return clk_divider_ops.determine_rate(hw, req);
> > -}
> > -
> > static const struct clk_ops imx8m_clk_composite_divider_ops = {
> > .recalc_rate = imx8m_clk_composite_divider_recalc_rate,
> > .round_rate = imx8m_clk_composite_divider_round_rate,
> > .set_rate = imx8m_clk_composite_divider_set_rate,
> > - .determine_rate = imx8m_clk_divider_determine_rate,
> > };
> >
> > static u8 imx8m_clk_composite_mux_get_parent(struct clk_hw *hw)
> > --
> > 2.39.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate"
2023-04-23 12:38 [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate" Adam Ford
2023-04-24 1:43 ` Peng Fan
@ 2023-05-03 1:23 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2023-05-03 1:23 UTC (permalink / raw)
To: Adam Ford, linux-clk
Cc: aford, Adam Ford, Abel Vesa, Peng Fan, Michael Turquette,
Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, linux-arm-kernel, linux-kernel
Quoting Adam Ford (2023-04-23 05:38:27)
> This reverts commit 156e96ff2172518b6f83e97d8f11f677bc668e22.
>
> This patch was found to cause some division issues on the i.MX8MP
> which causes the video clocks to not properly divide when division
> was greate than 8. This causes video failures on disp1_pix and
> disp2_pix clocks.
>
> Until a better solution is found, we'll have to revert this.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
> index 6883a8199b6c..cbf0d7955a00 100644
> --- a/drivers/clk/imx/clk-composite-8m.c
Applied to clk-next
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-03 1:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23 12:38 [PATCH] Revert "clk: imx: composite-8m: Add support to determine_rate" Adam Ford
2023-04-24 1:43 ` Peng Fan
2023-05-01 16:17 ` Adam Ford
2023-05-03 1:23 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).