Re: [PATCH 02/17] spi: cadence_qspi: enable clock

Ralph Siemsen <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <CANp-EDaEsWN2spSbSsd66mLfy9hARpvZOafcsZXnjQOpoKODUA@mail.gmail.com>
On Fri, Jul 31, 2026 at 11:07 PM Kumar, Udit <[email protected]> wrote:
>
> On 7/31/2026 10:03 PM, Ralph Siemsen wrote:
> > --- a/drivers/spi/cadence_qspi.c
> > +++ b/drivers/spi/cadence_qspi.c
> > @@ -253,6 +253,7 @@ static int cadence_spi_probe(struct udevice *bus)
> >                       priv->ref_clk_hz = clk_get_rate(&clk);
> >                       if (IS_ERR_VALUE(priv->ref_clk_hz))
> >                               return priv->ref_clk_hz;
> > +                     clk_enable(&clk);
>
> you should enable clock, before calling get_rate

Good point. I will move it up.

Ralph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.