On Thu, Aug 30, 2018 at 10:34:20AM +0800, Jia-Ju Bai wrote:
My static tool DSAC reports many sleep-in-atomic-context bugs involvingHave you actually analyzed the code paths that are really taken here?
regmap_lock_mutex(), so I wonder whether this function is possible to be
executed in atomic context.
Static tools really don't cope very well with the pluggable locking in
regmap. If there are problems I'd suggest reporting them to the authors
of the drivers using them, it's not really anything to do with regmap if
they've messed up their locking.