[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 5 May 2018 10:32:55 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Mark Brown <broonie@...nel.org>
Cc: Grygorii Strashko <grygorii.strashko@...com>,
Baolin Wang <baolin.wang@...aro.org>,
linux-i2c@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: I2C PM overhaul needed? (Re: [PATCH 1/2] i2c: sprd: Prevent i2c
accesses after suspend is called)
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
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists