[PATCH] clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag

Michal Simek-3
fixed-rate driver is not different from clk_fixed_factor and it is required
very early in boot that's why setup flag for it.

Signed-off-by: Michal Simek <[hidden email]>
---

 drivers/clk/clk_fixed_rate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index 2c20eddb0b5c..55e1f8caa520 100644
--- a/drivers/clk/clk_fixed_rate.c
+++ b/drivers/clk/clk_fixed_rate.c
@@ -53,4 +53,5 @@ U_BOOT_DRIVER(clk_fixed_rate) = {
  .ofdata_to_platdata = clk_fixed_rate_ofdata_to_platdata,
  .platdata_auto_alloc_size = sizeof(struct clk_fixed_rate),
  .ops = &clk_fixed_rate_ops,
+ .flags = DM_FLAG_PRE_RELOC,
 };
--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag

Michal Simek-4
st 16. 9. 2020 v 13:40 odesílatel Michal Simek <[hidden email]> napsal:

>
> fixed-rate driver is not different from clk_fixed_factor and it is required
> very early in boot that's why setup flag for it.
>
> Signed-off-by: Michal Simek <[hidden email]>
> ---
>
>  drivers/clk/clk_fixed_rate.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
> index 2c20eddb0b5c..55e1f8caa520 100644
> --- a/drivers/clk/clk_fixed_rate.c
> +++ b/drivers/clk/clk_fixed_rate.c
> @@ -53,4 +53,5 @@ U_BOOT_DRIVER(clk_fixed_rate) = {
>         .ofdata_to_platdata = clk_fixed_rate_ofdata_to_platdata,
>         .platdata_auto_alloc_size = sizeof(struct clk_fixed_rate),
>         .ops = &clk_fixed_rate_ops,
> +       .flags = DM_FLAG_PRE_RELOC,
>  };
> --
> 2.28.0
>

Applied.
M

--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs