Re: I2C PM overhaul needed? (Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called)
From: Wolfram Sang
Date: Sat May 05 2018 - 04:33:11 EST
Hi Mark,
> > And maybe this could be used here, too? Introduce this flag for very
> > late/early messages. If they have it, messages are even sent in
> > suspend_noirq() phase with the master_xfer_irqless() callback, otherwise
> > we will have the WARNing printed out.
>
> It feels like it'd be more elegant to have the core select the irqless
> function automatically if called after interrupts have been disabled -
> otherwise we end up with the need to special case through other layers
> of the stack like regmap as well which seems like it'd be error prone.
Yes, I was concerned about thae (i.e. regmap accessors), too.
> OTOH it does mean we might not notice things happening later than they
> should so it's not 100% clear...
What do you mean here?
Thanks,
Wolfram
Attachment:
signature.asc
Description: PGP signature