Re: [PATCH 3/9] can: rcar_can: Convert to Runtime PM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marc,

On Thu, 14 Aug 2025 at 14:08, Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> wrote:
> On 14.08.2025 14:02:01, Geert Uytterhoeven wrote:
> > The R-Car CAN module is part of a Clock Domain on all supported SoCs.
> > Hence convert its driver from explicit clock management to Runtime PM.
>
> Does kconfig ensure that Runtime PM is selected?

drivers/soc/renesas/Kconfig:

    config ARCH_RCAR_GEN1
            bool
            select PM

    config ARCH_RCAR_GEN2
            bool
            select HAVE_ARM_ARCH_TIMER
            select PM

    config ARCH_RCAR_GEN3
            bool
            select PM

> > --- a/drivers/net/can/rcar/rcar_can.c
> > +++ b/drivers/net/can/rcar/rcar_can.c
> > @@ -506,10 +506,10 @@ static int rcar_can_open(struct net_device *ndev)
> >       struct rcar_can_priv *priv = netdev_priv(ndev);
> >       int err;
> >
> > -     err = clk_prepare_enable(priv->clk);
> > +     err = pm_runtime_resume_and_get(ndev->dev.parent);
> >       if (err) {
> >               netdev_err(ndev,
> > -                        "failed to enable peripheral clock, error %d\n",
> > +                        "pm_runtime_resume_and_get() failed, error %d\n",
>
> Can you convert the errors to %pE?

Sure, will do!
Thanks!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux