RE: [EXT] Re: Issue: regmap: use debugfs even when no device

From: Andy Duan
Date: Thu May 30 2019 - 01:00:07 EST


From: Mark Brown <broonie@xxxxxxxxxx> Sent: Wednesday, May 29, 2019 7:16 PM
> To: Andy Duan <fugang.duan@xxxxxxx>
> Cc: david@xxxxxxxxxxxxxx; rafael@xxxxxxxxxx; Robby Cai
> <robby.cai@xxxxxxx>; gregkh@xxxxxxxxxxxxxxxxxxx; linux-kernel
> <linux-kernel@xxxxxxxxxxxxxxx>
> Subject: Re: [EXT] Re: Issue: regmap: use debugfs even when no device
>
> On Wed, May 29, 2019 at 01:33:46AM +0000, Andy Duan wrote:
>
> > Correct, regmap without device also has issue when power if off,
> > because regmap doesn't implement runtime pm for the device, but maybe
> > device driver implement the runtime pm for the device.
>
> > So regmap how to manage the clock and power when access registers by
> debugfs ?
>
> Like I say the basic recommendation is to use a cache.

Got it, thanks.